keep-starknet-strange / ziggy-starkdust

⚡ Cairo VM in Zig ⚡
https://keep-starknet-strange.github.io/ziggy-starkdust/
MIT License
72 stars 37 forks source link

perf: Try to improve perfomance of poseidon_integration_benchmark #520

Closed StringNick closed 5 days ago

StringNick commented 3 weeks ago

Try to improve poseidon_integration_benchmark, currently i have this benchmark results: m1 pro

Benchmark 2: cairo-vm (Zig)
  Time (mean ± σ):     642.9 ms ±  18.0 ms    [User: 585.2 ms, System: 44.7 ms]
  Range (min … max):   631.4 ms … 691.5 ms    10 runs

some linux pc with intel

Benchmark 2: cairo-vm (Zig)
  Time (mean ± σ):      2.362 s ±  0.061 s    [User: 2.026 s, System: 0.335 s]
  Range (min … max):    2.327 s …  2.532 s    10 runs

Rust currently faster ±1.20x times