diff --git a/script/micro_bench.rb b/script/micro_bench.rb index 741d936428eba..51ea6c89128a1 100644 --- a/script/micro_bench.rb +++ b/script/micro_bench.rb @@ -15,10 +15,14 @@ end b.report("pluck with first") do - User.pluck_first(:name) + User.pluck(:name).first end b.report("pluck with limit") do + User.limit(1).pluck(:name).first + end + + b.report("pluck with pluck_first") do User.pluck_first(:name) end