mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
fix(wasm): fix size used for serialization in benches
This commit is contained in:
committed by
Nicolas Sarlin
parent
3b4f0d20f1
commit
7c295947dd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user