-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Blake3 implementation in std is slow #15375
Copy link
Copy link
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
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.
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
(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.