Created
January 23, 2015 01:21
-
-
Save yorickpeterse/9afce07a1974572bbd81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ruby: {"name"=>"Yorick", "age"=>22, "location"=>"Netherlands", "anger_level"=>9000} | |
CAPI: {"name"=>"Yorick", "age"=>22, "location"=>"Netherlands", "anger_level"=>9000} | |
Racc: {"name"=>"Yorick", "age"=>22, "location"=>"Netherlands", "anger_level"=>9000} | |
Calculating ------------------------------------- | |
Ruby reuse 2.966k i/100ms | |
Ruby new 2.934k i/100ms | |
CAPI reuse 8.044k i/100ms | |
CAPI new 7.212k i/100ms | |
Racc reuse 5.075k i/100ms | |
Racc new 4.376k i/100ms | |
------------------------------------------------- | |
Ruby reuse 30.334k (± 0.8%) i/s - 154.232k | |
Ruby new 29.659k (± 0.7%) i/s - 149.634k | |
CAPI reuse 88.243k (± 0.4%) i/s - 442.420k | |
CAPI new 75.799k (± 6.3%) i/s - 382.236k | |
Racc reuse 54.849k (± 0.6%) i/s - 279.125k | |
Racc new 46.507k (± 0.6%) i/s - 236.304k | |
Comparison: | |
CAPI reuse: 88243.3 i/s | |
CAPI new: 75799.1 i/s - 1.16x slower | |
Racc reuse: 54848.8 i/s - 1.61x slower | |
Racc new: 46507.4 i/s - 1.90x slower | |
Ruby reuse: 30333.8 i/s - 2.91x slower | |
Ruby new: 29659.4 i/s - 2.98x slower |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment