From 036923515ec05b07c381448402fc256d9c564c10 Mon Sep 17 00:00:00 2001 From: Sam Atman Date: Fri, 16 May 2025 13:13:01 -0400 Subject: Remove benchmarks, ziglyph references `ziglyph` is no longer maintained and basically abandoned, there's no need to keep the comparison between them active going forward. --- bench/src/ziglyph_codepoint.zig | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 bench/src/ziglyph_codepoint.zig (limited to 'bench/src/ziglyph_codepoint.zig') diff --git a/bench/src/ziglyph_codepoint.zig b/bench/src/ziglyph_codepoint.zig deleted file mode 100644 index 7fe4028..0000000 --- a/bench/src/ziglyph_codepoint.zig +++ /dev/null @@ -1,27 +0,0 @@ -const std = @import("std"); - -const CodePointIterator = @import("ziglyph").CodePointIterator; - -pub fn main() !void { - var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); - defer arena.deinit(); - const allocator = arena.allocator(); - - var args_iter = try std.process.argsWithAllocator(allocator); - _ = args_iter.skip(); - const in_path = args_iter.next() orelse return error.MissingArg; - - const input = try std.fs.cwd().readFileAlloc( - allocator, - in_path, - std.math.maxInt(u32), - ); - defer allocator.free(input); - - var iter = CodePointIterator{ .bytes = input }; - var result: usize = 0; - var timer = try std.time.Timer.start(); - - while (iter.next()) |_| result += 1; - std.debug.print("Ziglyph CodePointIterator: result: {}, took: {}\n", .{ result, std.fmt.fmtDuration(timer.lap()) }); -} -- cgit v1.2.3