Skip to content

Instantly share code, notes, and snippets.

@imtayadeway
Created May 9, 2015 07:41
Show Gist options
  • Save imtayadeway/009d95cf8deaaf2762b2 to your computer and use it in GitHub Desktop.
Save imtayadeway/009d95cf8deaaf2762b2 to your computer and use it in GitHub Desktop.
gem_time.rb
ruby 2.2.0 -- 461 specs and 461 mspecs
Calculating -------------------------------------
eval 1.000 i/100ms
marshal 1.000 i/100ms
-------------------------------------------------
eval 6.274 (± 0.0%) i/s - 63.000
marshal 12.235 (± 0.0%) i/s - 123.000
Comparison:
marshal: 12.2 i/s
eval: 6.3 i/s - 1.95x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment