-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.optimizationstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.
Milestone
Description
Zig Version
0.10.1
Steps to Reproduce and Observed Behavior
See https://github.com/matklad/benchmarks/tree/1caed4cfdd2285f2f1946f592fc1d492fd9ed836/blake3 for a reproducible Rust vs Zig benchmark. The representative Result is
Rust
time = 1.62s
MiB/s = 3859
Zig + ReleaseFast
time = 6.074s
MiB/S = 1028
(this is pure Rust impl, assembly/C impls is a little bit further faster than that)
Zig results are approximately the same between 0.10.1 and 0.11.0-dev.2680+a1aa55ebe
This is relatively important for us at TigerBeetle.
Expected Behavior
Be as fast as Rust. Ideally, be as fast as asm.
jorangreef, scheibo, lin72h and ghishadowmarler8997, kprotty and ghishadow
Metadata
Metadata
Assignees
Labels
contributor friendlyThis issue is limited in scope and/or knowledge of Zig internals.This issue is limited in scope and/or knowledge of Zig internals.optimizationstandard libraryThis issue involves writing Zig code for the standard library.This issue involves writing Zig code for the standard library.