Skip to content

Instantly share code, notes, and snippets.

@ShopifyEng
Created May 8, 2020 14:15
Show Gist options
  • Save ShopifyEng/ae5e160c41fe19064b73c1a96659ccad to your computer and use it in GitHub Desktop.
Save ShopifyEng/ae5e160c41fe19064b73c1a96659ccad to your computer and use it in GitHub Desktop.
How to Fix Slow Code in Ruby - scir_example_benchmark.log
Warming up --------------------------------------
before 166.000 i/100ms
after 9.376k i/100ms
Calculating -------------------------------------
before 1.797k (± 5.1%) i/s - 8.964k in 5.001974s
after 96.136k (± 8.0%) i/s - 478.176k in 5.010413s
Comparison:
after: 96135.8 i/s
before: 1796.9 i/s - 53.50x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment