Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-montrose committed Dec 13, 2024
1 parent a5aead9 commit 4d73bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmark/BDN.benchmark/Lua/LuaScriptCacheOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ private void LoadScript(Span<byte> digest)
}
}
}
}
}
2 changes: 1 addition & 1 deletion benchmark/BDN.benchmark/Operations/ScriptOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public override void GlobalSetup()
var smallScriptHash = string.Join("", SHA1.HashData(Encoding.UTF8.GetBytes(SmallScriptText)).Select(static x => x.ToString("x2")));
var evalShaSmallScript = $"*4\r\n$7\r\nEVALSHA\r\n$40\r\n{smallScriptHash}\r\n$1\r\n1\r\n$3\r\nfoo\r\n";
evalShaSmallScriptBuffer = GC.AllocateUninitializedArray<byte>(evalShaSmallScript.Length * batchSize, pinned: true);
for(var i = 0; i < batchSize; i++)
for (var i = 0; i < batchSize; i++)
{
var start = i * evalShaSmallScript.Length;
Encoding.UTF8.GetBytes(evalShaSmallScript, evalShaSmallScriptBuffer.AsSpan().Slice(start, evalShaSmallScript.Length));
Expand Down

0 comments on commit 4d73bce

Please sign in to comment.