Skip to content

Commit

Permalink
Merge pull request #46 from OudomMunint/feature
Browse files Browse the repository at this point in the history
Feature => Master
  • Loading branch information
OudomMunint authored Apr 13, 2024
2 parents 2dc4f6a + 665d44b commit 2cbe0c0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/bin/Debug/net7.0/Benchmark.dll",
"program": "${workspaceFolder}/bin/Debug/net8.0/Benchmark.dll",
"args": [],
"cwd": "${workspaceFolder}",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
Expand Down
8 changes: 4 additions & 4 deletions MyBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ private static void DoWork(int index)

public class Program
{
public static void Main(string[] args)
{
_ = BenchmarkRunner.Run<MultithreadingBenchmark>();
}
// public static void Main(string[] args)
// {
// _ = BenchmarkRunner.Run<MultithreadingBenchmark>();
// }
}
}
6 changes: 2 additions & 4 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
Console.WriteLine(line);
}
}

process.WaitForExit();
}

else
Expand Down Expand Up @@ -340,6 +338,7 @@
{
Console.WriteLine("An error occurred while retrieving GPU information: " + ex.Message);
}
}

Console.ForegroundColor = ConsoleColor.White;
Console.Write("Continue to benchmark? (y/n): ");
Expand Down Expand Up @@ -376,5 +375,4 @@
{
Console.WriteLine("Invalid choice.");
}
}
}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- You can run a Hashing benchmark with MD5, SHA256 and SHA512.
- Or a single thread and multi thread benchmark.
- Or a encrypt/decrypt benchmark (May need admin privileges)
- Using <a href="https://github.com/dotnet/BenchmarkDotNet"> `BenchmarkDotNet` </a> and SharpDX.
- Using <a href="https://github.com/dotnet/BenchmarkDotNet"> `BenchmarkDotNet` </a>, `SharpDX` and `NvAPIWrapper`.

# Maintenance

Expand Down Expand Up @@ -53,8 +53,8 @@
<td> <h3>MacOS Ventura</h3> </td>
</tr>
<tr>
<td> <img src="results.png" height=500 width=900/> </td>
<td> <img src="macos.png"/> </td>
<td> <img src="results.png"/> </td>
<td> <img src="macos.png" width="700"/> </td>
</tr>
</table>

Expand Down
Binary file modified macos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed macresults.png
Binary file not shown.
Binary file modified results.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2cbe0c0

Please sign in to comment.