From eb09518679b9eff97cb1964e7005a56b96d2b9f6 Mon Sep 17 00:00:00 2001 From: Nicolas Sarlin Date: Tue, 22 Oct 2024 14:48:51 +0200 Subject: [PATCH] fix(wasm): fix size used for serialization in benches --- tfhe/web_wasm_parallel_tests/worker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tfhe/web_wasm_parallel_tests/worker.js b/tfhe/web_wasm_parallel_tests/worker.js index 3a4b06a3c5..8806d3b63f 100644 --- a/tfhe/web_wasm_parallel_tests/worker.js +++ b/tfhe/web_wasm_parallel_tests/worker.js @@ -603,13 +603,13 @@ async function compressedServerKeyBenchConfig(config) { bench_results["compressed_server_key_gen_mean"] = timing_1; let serverKey = TfheCompressedServerKey.new(clientKey); - let serialized_key = serverKey.safe_serialize(BigInt(10000000)); + let serialized_key = serverKey.safe_serialize(BigInt(1000000000)); console.log("Serialized ServerKey size: ", serialized_key.length); // Bench the serialization for bench_loops iterations start = performance.now(); for (let i = 0; i < bench_loops; i++) { - let _ = serverKey.safe_serialize(BigInt(10000000)); + let _ = serverKey.safe_serialize(BigInt(1000000000)); } end = performance.now(); const timing_2 = (end - start) / bench_loops;