kadena-io / pact-5

The New Pact
BSD 3-Clause "New" or "Revised" License
9 stars 7 forks source link

Gas tweaks for mainnet release #250

Closed jmcardon closed 1 month ago

jmcardon commented 1 month ago

PR checklist:

Additionally, please justify why you should or should not do the following:

benchmarking Pact Core Benchmarks/Pure Code/Factorial 1000
time                 157.5 μs   (157.3 μs .. 157.9 μs)
                     1.000 R²   (1.000 R² .. 1.000 R²)
mean                 157.8 μs   (157.5 μs .. 158.2 μs)
std dev              1.039 μs   (660.0 ns .. 1.557 μs)

benchmarking Pact Core Benchmarks/Pure Code/Let 100
time                 23.25 μs   (22.87 μs .. 23.69 μs)
                     0.995 R²   (0.986 R² .. 0.999 R²)
mean                 23.53 μs   (22.92 μs .. 25.19 μs)
std dev              2.173 μs   (532.9 ns .. 4.068 μs)
variance introduced by outliers: 80% (severely inflated)

benchmarking Pact Core Benchmarks/Pure Code/Let 1000
time                 241.5 μs   (238.9 μs .. 244.2 μs)
                     0.999 R²   (0.999 R² .. 1.000 R²)
mean                 242.5 μs   (240.2 μs .. 244.7 μs)
std dev              4.845 μs   (3.723 μs .. 6.369 μs)
variance introduced by outliers: 10% (moderately inflated)