Created
August 1, 2016 20:43
-
-
Save jaimerson/e96ac2ef5285666a1df7a0fd50759300 to your computer and use it in GitHub Desktop.
Benchmark of naive vs AR+SQL
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
Benchmark.bm do |x| | |
x.report(:naive) { BikesReport::NaiveApproach.new.to_a } | |
x.report(:ar_and_sql) { BikesReport::ActiveRecordSqlApproach.new.to_a } | |
end | |
# user system total real | |
# 9.600000 0.790000 10.390000 ( 10.639153) | |
# 0.020000 0.000000 0.020000 ( 0.137610) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment