Zig at the top counting words

This is the counting words benchmark @jeang3nie mentioned in his post on learning about Zig. Impressive indeed, Zig is right up there with C in the optimized version and unbeatable in the “normal” version.
Article
Github repo

If you want a fast version in a safe language, I’d recommend Go or Rust.

Even though Zig destroys them both. Sigh.

2 Likes