Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

Performance of Zig vs Rust vs C

Things to know

My Rust binary is still pretty small compared to normal Rust binaries, check the Cargo.toml file for more info.

But it could be much smaller, see this repo.

All binaries are statically linked, striped and optimized for speed.

  • C -> 716Kb
  • Rust -> 1.2MB
  • Zig -> 16Kb!!!

C and Rust appear to link to libc while Zig doesn't, maybe thats why it's so much smaller.

Results on AMD 9950X:

image

How to run

./run.sh

About

Performance of Zig vs Rust vs C

Resources

Stars

4 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages