From 0a9015554fe35581fd6d11e2d6872aadc2a2f03d Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Wed, 4 Oct 2023 10:34:36 -0300 Subject: [PATCH] bench: improve formatting Signed-off-by: Ignacio Hagopian --- src/bench.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bench.zig b/src/bench.zig index 25c5450..6f1da51 100644 --- a/src/bench.zig +++ b/src/bench.zig @@ -70,6 +70,8 @@ fn benchFields() !void { fps[i % set_size] = Fp.add(fps[i % set_size], fps[(i + 1) % set_size]); } std.debug.print("takes {}ns\n", .{@divTrunc((std.time.nanoTimestamp() - startNano), (N))}); + + std.debug.print("\n", .{}); } fn benchPedersenHash() !void { @@ -107,6 +109,7 @@ fn benchPedersenHash() !void { } std.debug.print("takes {}µs\n", .{@divTrunc((std.time.microTimestamp() - start), (N))}); } + std.debug.print("\n", .{}); } fn benchIPAs() !void { @@ -166,6 +169,7 @@ fn benchIPAs() !void { @divTrunc((accum_verifier), (N)), }, ); + std.debug.print("\n", .{}); } fn benchMultiproofs() !void { @@ -250,6 +254,7 @@ fn benchMultiproofs() !void { }, ); } + std.debug.print("\n", .{}); } fn genBaseFieldElements(comptime N: usize) [N]Fp { @@ -338,4 +343,5 @@ fn analyzePedersenHashConfigs() !void { } } } + std.debug.print("\n", .{}); }