Skip to content

Instantly share code, notes, and snippets.

@ShopifyEng
Created May 8, 2020 14:07
Show Gist options
  • Save ShopifyEng/a8c9824538573ae5de0af1fbb82bc8b7 to your computer and use it in GitHub Desktop.
Save ShopifyEng/a8c9824538573ae5de0af1fbb82bc8b7 to your computer and use it in GitHub Desktop.
How to Fix Slow Code in Ruby - scir_compare_benchmark.log
Warming up --------------------------------------
some method 1.000 i/100ms
other method 1.000 i/100ms
Calculating -------------------------------------
some method 0.997 (± 0.0%) i/s - 5.000 in 5.013651s
other method 0.907 (± 0.0%) i/s - 5.000 in 5.513106s
Comparison:
some method: 1.0 i/s
other method: 0.9 i/s - 1.10x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment