also looking at this
Port to latest zig-master
#2
53 files
+1149
-1017
| @@ -26,7 +26,7 @@ pub fn benchmark( | ||
| 26 | 26 | const avg_ns = elapsed_ns / iterations; |
| 27 | 27 | const avg_us = avg_ns / 1000; |
| 28 | 28 | |
| 29 | std.debug.print("{s}: {d} iterations, avg {d}μs per match\n", .{name, iterations, avg_us}); | |
| 29 | std.debug.print("{s}: {d} iterations, avg {d}μs per match\n", .{ name, iterations, avg_us }); | |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | pub fn benchmarkCompile( |
| @@ -47,5 +47,5 @@ pub fn benchmarkCompile( | ||
| 47 | 47 | const avg_ns = elapsed_ns / iterations; |
| 48 | 48 | const avg_us = avg_ns / 1000; |
| 49 | 49 | |
| 50 | std.debug.print("{s}: {d} compilations, avg {d}μs per compile\n", .{name, iterations, avg_us}); | |
| 50 | std.debug.print("{s}: {d} compilations, avg {d}μs per compile\n", .{ name, iterations, avg_us }); | |
| 51 | 51 | } |