Skip to content

Commit 9a0ec5a

Browse files
authored
test: reduce elapsed time for benchmark (#115)
1 parent 41a8db7 commit 9a0ec5a

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
@@ -16,10 +16,10 @@ def teardown
1616
@client&.close
1717
end
1818

19-
def bench_ping
19+
def bench_echo
2020
assert_performance_linear do |n|
2121
n.times do
22-
@client.call('PING')
22+
@client.call('ECHO', 'Hello world')
2323
end
2424
end
2525
end
@@ -40,11 +40,11 @@ def bench_get
4040
end
4141
end
4242

43-
def bench_pipeline_ping
43+
def bench_pipeline_echo
4444
assert_performance_linear do |n|
4545
@client.pipelined do |pi|
4646
n.times do
47-
pi.call('PING')
47+
pi.call('ECHO', 'Hello world')
4848
end
4949
end
5050
end

0 commit comments

Comments
 (0)