fix(js): unsafe coop bench was overwritting mt one

This commit is contained in:
Nicolas Sarlin
2026-01-08 11:39:58 +01:00
committed by Nicolas Sarlin
parent 23fffb1443
commit 126a95e929

View File

@@ -727,8 +727,15 @@ async function compactPublicKeyZeroKnowledgeBench() {
serialized_size = list.safe_serialize(BigInt(10000000)).length;
}
const mean = timing / bench_loops;
let base_bench_str = "compact_fhe_uint_proven_encryption_";
let supportsThreads = await threads();
if (!supportsThreads) {
base_bench_str += "unsafe_coop_";
}
const common_bench_str =
"compact_fhe_uint_proven_encryption_" +
base_bench_str +
params.zk_scheme +
"_" +
bits_to_encrypt +