From fc908fb3f5ed4ef4f81590f14a5591bdfd72f1e3 Mon Sep 17 00:00:00 2001 From: Benoit Chevallier-Mames Date: Fri, 22 Oct 2021 18:24:47 +0200 Subject: [PATCH] chore(benchmarks): fix the mistake in the change of the benchmark script --- benchmarks/x_plus_42.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/benchmarks/x_plus_42.py b/benchmarks/x_plus_42.py index 1f9075999..9b28ddff3 100644 --- a/benchmarks/x_plus_42.py +++ b/benchmarks/x_plus_42.py @@ -11,13 +11,13 @@ def main(): def function_to_compile(x): return x + 42 - x = hnp.EncryptedScalar(hnp.UnsignedInteger(10)) + x = hnp.EncryptedScalar(hnp.UnsignedInteger(3)) # bench: Measure: Compilation Time (ms) engine = hnp.compile_numpy_function( function_to_compile, {"x": x}, - [(i,) for i in range(2 ** 10)], + [(i,) for i in range(2 ** 3)], compilation_configuration=BENCHMARK_CONFIGURATION, ) # bench: Measure: End @@ -25,7 +25,7 @@ def main(): inputs = [] labels = [] for _ in range(4): - sample_x = random.randint(0, 2 ** 10 - 1) + sample_x = random.randint(0, 2 ** 3 - 1) inputs.append([sample_x]) labels.append(function_to_compile(*inputs[-1]))