kkrt-labs / cairo-vm-ts

A typescript implementation of the Cairo VM
Apache License 2.0
18 stars 13 forks source link

feat: add benchmarking against other implementations #88

Closed zmalatrax closed 3 months ago

zmalatrax commented 3 months ago

Add a target which benchmarks the different VM implementations against some benchmark programs

An already existing (& powerful) tool to use is hyperfine.

Currently benchmarking:

The benchmark programs currently are the ones with no hint taken from the benchmarks/ folder of the cairo-vm, namely big_factorial.cairo, big_fibonacci.cairo, builtin_integration.cairo and pedersen.cairo. Those programs might change in the future.

The values have been reduced by 1 or 2 order of magnitude for the typescript & python VM to follow up: