Skip to content

Instantly share code, notes, and snippets.

@havenwood
Created September 8, 2018 17:55
Show Gist options
  • Save havenwood/bc858d4e948aeb4cdaa1daa8daea29af to your computer and use it in GitHub Desktop.
Save havenwood/bc858d4e948aeb4cdaa1daa8daea29af to your computer and use it in GitHub Desktop.
Warming up --------------------------------------
String.new 895.000 i/100ms
'' 1.713k i/100ms
Calculating -------------------------------------
String.new 8.488k (± 3.8%) i/s - 42.960k in 5.068907s
'' 15.859k (± 3.5%) i/s - 80.511k in 5.082812s
Comparison:
'': 15858.6 i/s
String.new: 8488.0 i/s - 1.87x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment