diff --git a/benchmarks/sequel/benchmark.rb b/benchmarks/sequel/benchmark.rb index 8300c1eb..1251d522 100644 --- a/benchmarks/sequel/benchmark.rb +++ b/benchmarks/sequel/benchmark.rb @@ -55,11 +55,11 @@ class Post < Sequel::Model } # heat any caches -Post.where(id: 1).first.title +Post[1].title run_benchmark(10) do 1.upto(1000) do |i| - post = Post.where(id: i).first + post = Post[i] "#{post.title}\n#{post.body}" \ "type: #{post.type_name}, votes: #{post.upvotes}, updated on: #{post.updated_at}" end