Skip to content

Commit

Permalink
Add benchmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 24, 2024
1 parent 1da1596 commit fe0da3d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions benchmark/test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
ITERATIONS = ENV.fetch("ITERATIONS", 1000).to_i
TYPE = ENV.fetch("TYPE", "pos")

describe "sus" do
ITERATIONS.times do |n|
case TYPE
when "pos" then
it "pos #{n}" do
expect(1).to be == 1
end
when "neg" then
it "neg #{n}" do
expect(1).to be == 2
end
end
end
end

0 comments on commit fe0da3d

Please sign in to comment.