bench: increase warmup for verify/ECDH benchmarks
More warmup iterations needed for WINDOW_G=12 (1024-entry table built lazily on first call). Avoids table-build cost contaminating measured iterations. https://claude.ai/code/session_01BhU63WUe9AhikZxRdw3Lpg
This commit is contained in:
+4
-4
@@ -134,8 +134,8 @@ class Secp256k1Benchmark {
|
|||||||
results +=
|
results +=
|
||||||
bench(
|
bench(
|
||||||
name = "verifySchnorr",
|
name = "verifySchnorr",
|
||||||
warmup = 20,
|
warmup = 50,
|
||||||
iterations = 100,
|
iterations = 200,
|
||||||
nativeOp = { native.verifySchnorr(nativeSig, msg32, nativeXOnlyPub) },
|
nativeOp = { native.verifySchnorr(nativeSig, msg32, nativeXOnlyPub) },
|
||||||
kotlinOp = {
|
kotlinOp = {
|
||||||
com.vitorpamplona.quartz.utils.secp256k1.Secp256k1.verifySchnorr(
|
com.vitorpamplona.quartz.utils.secp256k1.Secp256k1.verifySchnorr(
|
||||||
@@ -213,8 +213,8 @@ class Secp256k1Benchmark {
|
|||||||
results +=
|
results +=
|
||||||
bench(
|
bench(
|
||||||
name = "pubKeyTweakMul (ECDH)",
|
name = "pubKeyTweakMul (ECDH)",
|
||||||
warmup = 10,
|
warmup = 30,
|
||||||
iterations = 50,
|
iterations = 100,
|
||||||
nativeOp = { native.pubKeyTweakMul(pubKey2Uncompressed.copyOf(), privKey) },
|
nativeOp = { native.pubKeyTweakMul(pubKey2Uncompressed.copyOf(), privKey) },
|
||||||
kotlinOp = {
|
kotlinOp = {
|
||||||
com.vitorpamplona.quartz.utils.secp256k1.Secp256k1.pubKeyTweakMul(
|
com.vitorpamplona.quartz.utils.secp256k1.Secp256k1.pubKeyTweakMul(
|
||||||
|
|||||||
Reference in New Issue
Block a user