@@ -4,9 +4,9 @@ use benchmark::params::{
44 benchmark_compression_parameters, benchmark_parameters, multi_bit_benchmark_parameters,
55} ;
66use benchmark:: utilities:: {
7- get_bench_type, get_param_type, write_to_json, BenchmarkType , CryptoParametersRecord ,
8- OperatorType , ParamType ,
7+ get_param_type, write_to_json_unchecked, CryptoParametersRecord , OperatorType , ParamType ,
98} ;
9+ use benchmark_spec:: { get_bench_type, BenchmarkType } ;
1010use criterion:: { black_box, Criterion , Throughput } ;
1111use itertools:: Itertools ;
1212use rayon:: prelude:: * ;
@@ -146,7 +146,7 @@ fn keyswitch<Scalar: UnsignedTorus + CastInto<usize> + Serialize>(
146146 } ;
147147
148148 let bit_size = ( params. message_modulus . unwrap_or ( 2 ) as u32 ) . ilog2 ( ) ;
149- write_to_json (
149+ write_to_json_unchecked (
150150 & bench_id,
151151 * params,
152152 name,
@@ -330,7 +330,7 @@ fn packing_keyswitch<Scalar, F>(
330330 } ;
331331
332332 let bit_size = ( params. message_modulus . unwrap_or ( 2 ) as u32 ) . ilog2 ( ) ;
333- write_to_json (
333+ write_to_json_unchecked (
334334 & bench_id,
335335 * params,
336336 name,
@@ -347,8 +347,8 @@ mod cuda {
347347 use benchmark:: params:: { benchmark_parameters, multi_bit_benchmark_parameters} ;
348348 use benchmark:: utilities:: {
349349 cuda_local_keys_core, cuda_local_streams_core, get_bench_type, throughput_num_threads,
350- write_to_json , BenchmarkType , CpuKeys , CpuKeysBuilder , CryptoParametersRecord , CudaIndexes ,
351- CudaLocalKeys , OperatorType ,
350+ write_to_json_unchecked , BenchmarkType , CpuKeys , CpuKeysBuilder , CryptoParametersRecord ,
351+ CudaIndexes , CudaLocalKeys , OperatorType ,
352352 } ;
353353 use criterion:: { black_box, Criterion , Throughput } ;
354354 use itertools:: Itertools ;
@@ -496,7 +496,7 @@ mod cuda {
496496 }
497497
498498 let bit_size = ( params. message_modulus . unwrap_or ( 2 ) as u32 ) . ilog2 ( ) ;
499- write_to_json (
499+ write_to_json_unchecked (
500500 & bench_id,
501501 * params,
502502 name,
@@ -630,7 +630,7 @@ mod cuda {
630630 } ) ;
631631
632632 let bit_size = ( params. message_modulus . unwrap_or ( 2 ) as u32 ) . ilog2 ( ) ;
633- write_to_json (
633+ write_to_json_unchecked (
634634 & bench_id,
635635 * params,
636636 name,
@@ -873,7 +873,7 @@ mod cuda {
873873 } ;
874874
875875 let bit_size = ( params. message_modulus . unwrap_or ( 2 ) as u32 ) . ilog2 ( ) ;
876- write_to_json (
876+ write_to_json_unchecked (
877877 & bench_id,
878878 * params,
879879 name,
0 commit comments