mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-10 07:08:03 -05:00
fix(js): unsafe coop bench was overwritting mt one
This commit is contained in:
committed by
Nicolas Sarlin
parent
23fffb1443
commit
126a95e929
@@ -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 +
|
||||
|
||||
Reference in New Issue
Block a user