Skip to content

Commit

Permalink
bench: improve formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Oct 4, 2023
1 parent 15e3836 commit 0a90155
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/bench.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -166,6 +169,7 @@ fn benchIPAs() !void {
@divTrunc((accum_verifier), (N)),
},
);
std.debug.print("\n", .{});
}

fn benchMultiproofs() !void {
Expand Down Expand Up @@ -250,6 +254,7 @@ fn benchMultiproofs() !void {
},
);
}
std.debug.print("\n", .{});
}

fn genBaseFieldElements(comptime N: usize) [N]Fp {
Expand Down Expand Up @@ -338,4 +343,5 @@ fn analyzePedersenHashConfigs() !void {
}
}
}
std.debug.print("\n", .{});
}

0 comments on commit 0a90155

Please sign in to comment.