Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Weichhold committed Jun 15, 2021
1 parent cb0f6bb commit ca91790
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/Miningcore/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,6 @@ public static async Task Main(string[] args)
ConfigureMisc();
ValidateRuntimeEnvironment();

var blobConverted = "0106a2aaafd505583cf50bcc743d04d831d2b119dc94ad88679e359076ee3f18d258ee138b3b42580100a4b1e2f4baf6ab7109071ab59bc52dba740d1de99fa0ae0c4afd6ea9f40c5d87ec01".HexToByteArray();
var buf = new byte[32];
var key = Encoding.UTF8.GetBytes("foo bar");

LibRandomX.CalculateHash(key, blobConverted, buf, null, LibRandomX.randomx_flags.RANDOMX_FLAG_FULL_MEM);

var start = DateTime.Now;

const int count = 10000;
for(var i=0;i<count;i++)
LibRandomX.CalculateHash(key, blobConverted, buf);

Console.WriteLine((DateTime.Now - start).TotalMilliseconds / count);
return;

var hostBuilder = new HostBuilder();

hostBuilder
Expand Down

0 comments on commit ca91790

Please sign in to comment.