Skip to content

Commit 201249c

Browse files
authored
chore: fix benchmark (#77)
1 parent 7a9c314 commit 201249c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/bench_command.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def bench_get
4242

4343
def bench_pipeline_set
4444
assert_performance_linear do |n|
45-
n.times do |i|
46-
@client.pipelined do |pi|
45+
@client.pipelined do |pi|
46+
n.times do |i|
4747
pi.call('SET', "key#{i}", i)
4848
end
4949
end
@@ -52,8 +52,8 @@ def bench_pipeline_set
5252

5353
def bench_pipeline_get
5454
assert_performance_linear do |n|
55-
n.times do |i|
56-
@client.pipelined do |pi|
55+
@client.pipelined do |pi|
56+
n.times do |i|
5757
pi.call('GET', "key#{i}")
5858
end
5959
end

0 commit comments

Comments
 (0)