Skip to content

Commit fe0da3d

Browse files
committed
Add benchmark.
1 parent 1da1596 commit fe0da3d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

benchmark/test.rb

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
ITERATIONS = ENV.fetch("ITERATIONS", 1000).to_i
2+
TYPE = ENV.fetch("TYPE", "pos")
3+
4+
describe "sus" do
5+
ITERATIONS.times do |n|
6+
case TYPE
7+
when "pos" then
8+
it "pos #{n}" do
9+
expect(1).to be == 1
10+
end
11+
when "neg" then
12+
it "neg #{n}" do
13+
expect(1).to be == 2
14+
end
15+
end
16+
end
17+
end

0 commit comments

Comments
 (0)