Created
February 11, 2016 22:22
-
-
Save ianks/7c61f7ce767663a9560a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
=== Benchmarking resource with associations ====== | |
Calculating ------------------------------------- | |
attributes 442.000 i/100ms | |
json 367.000 i/100ms | |
json_api 248.000 i/100ms | |
------------------------------------------------- | |
attributes 4.614k (± 0.9%) i/s - 23.426k | |
json 3.811k (± 0.7%) i/s - 19.084k | |
json_api 2.534k (± 0.8%) i/s - 12.896k | |
Comparison: | |
attributes: 4614.0 i/s | |
json: 3811.0 i/s - 1.21x slower | |
json_api: 2534.3 i/s - 1.82x slower | |
=== Benchmarking resource without associations === | |
Calculating ------------------------------------- | |
attributes 1.278k i/100ms | |
json 803.000 i/100ms | |
json_api 405.000 i/100ms | |
------------------------------------------------- | |
attributes 14.407k (± 0.8%) i/s - 72.846k | |
json 8.710k (± 0.7%) i/s - 44.165k | |
json_api 4.212k (± 0.6%) i/s - 21.060k | |
Comparison: | |
attributes: 14406.7 i/s | |
json: 8709.6 i/s - 1.65x slower | |
json_api: 4212.3 i/s - 3.42x slower |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment