Skip to content

@luislavena /bench.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
gem "minitest"
require "minitest/autorun"
require "minitest/pride" if ENV["PRIDE"]
describe "my amazing tests" do
10.times do
150.times do |i|
it "must #{i}" do
100.must_equal 100
end
end
10.times do |i|
it "compares #{i} to #{i + 1}" do
i.must_equal i + 1
end
end
5.times do
it "does a diff" do
[1, 2, 3, 4, 5].must_equal %w(a quick brown fox jumped over something!)
end
end
30.times do
it "skips" do
skip "don't care"
end
end
end
end
ruby 2.0.0dev (2012-05-11 trunk 35616) [i386-mingw32]
1950 tests, 1650 assertions, 150 failures, 0 errors, 300 skips
# DEFAULT
Finished tests in 1.348063s, 1446.5199 tests/s, 1223.9784 assertions/s.
# PRIDE
Finished tests in 1.458083s, 1337.3724 tests/s, 1131.6228 assertions/s.
# ANSICON
Finished tests in 1.612092s, 1209.6084 tests/s, 1023.5148 assertions/s.
# With ANSI patch
Fabulous tests in 1.409676s, 1383.2966 tests/s, 1170.4817 assertions/s.
===
Redirected (> output.log)
# DEFAULT
Finished tests in 1.083062s, 1800.4509 tests/s, 1523.4585 assertions/s.
# PRIDE
Finished tests in 1.067061s, 1827.4494 tests/s, 1546.3034 assertions/s.
# ANSICON
Finished tests in 1.216070s, 1603.5261 tests/s, 1356.8298 assertions/s.
# With ANSI patch
Finished tests in 1.060061s, 1839.5168 tests/s, 1556.5142 assertions/s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.