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:
Claude
2026-04-06 15:09:33 +00:00
parent 47c92eb209
commit cb78f1a34e
@@ -134,8 +134,8 @@ class Secp256k1Benchmark {
results +=
bench(
name = "verifySchnorr",
warmup = 20,
iterations = 100,
warmup = 50,
iterations = 200,
nativeOp = { native.verifySchnorr(nativeSig, msg32, nativeXOnlyPub) },
kotlinOp = {
com.vitorpamplona.quartz.utils.secp256k1.Secp256k1.verifySchnorr(
@@ -213,8 +213,8 @@ class Secp256k1Benchmark {
results +=
bench(
name = "pubKeyTweakMul (ECDH)",
warmup = 10,
iterations = 50,
warmup = 30,
iterations = 100,
nativeOp = { native.pubKeyTweakMul(pubKey2Uncompressed.copyOf(), privKey) },
kotlinOp = {
com.vitorpamplona.quartz.utils.secp256k1.Secp256k1.pubKeyTweakMul(