Zig 0.15: emit bench

pull/9004/head
Mitchell Hashimoto 2025-10-02 15:52:05 -07:00
parent 9ec3b1b152
commit 2af424268a
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 6 additions and 1 deletions

View File

@ -90,12 +90,17 @@ fn mainActionImpl(
const rand = prng.random();
// Our output always goes to stdout.
const writer = std.io.getStdOut().writer();
var buffer: [2048]u8 = undefined;
var stdout_writer = std.fs.File.stdout().writer(&buffer);
const writer = &stdout_writer.interface;
// Create our implementation
const impl = try Impl.create(alloc, opts);
defer impl.destroy(alloc);
try impl.run(writer, rand);
// Always flush
try writer.flush();
}
test {