Created
February 4, 2012 16:33
-
-
Save samflores/1738822 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'application' | |
require 'capybara/dsl' | |
require 'minitest/autorun' | |
Capybara.app = Sinatra::Application | |
set :environment, 'test' | |
describe 'main application' do | |
include Capybara::DSL | |
describe 'GET /' do | |
it "must be succcessful" do | |
visit '/' | |
page.body.must_match /Hello World/ | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
get "/" do | |
"Hello World" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#================================================================= | |
# using rbi 2.0.0 head with JIT | |
$ time rbi -X19 -I. -Ispec spec/store_spec.rb | |
Finished tests in 1.173194s, 0.8524 tests/s, 1.7047 assertions/s. | |
6.33s user 0.12s system 130% cpu 4.957 total | |
Finished tests in 1.184263s, 0.8444 tests/s, 1.6888 assertions/s. | |
6.31s user 0.12s system 130% cpu 4.923 total | |
Finished tests in 1.168855s, 0.8555 tests/s, 1.7111 assertions/s. | |
6.33s user 0.12s system 130% cpu 4.957 total | |
#================================================================= | |
# using rbi 2.0.0 head without JIT | |
$ time rbi -X19 -Xint -I. -Ispec spec/store_spec.rb | |
Finished tests in 1.427137s, 0.7007 tests/s, 1.4014 assertions/s. | |
4.48s user 0.09s system 99% cpu 4.584 total | |
Finished tests in 1.424297s, 0.7021 tests/s, 1.4042 assertions/s. | |
4.44s user 0.09s system 99% cpu 4.543 total | |
Finished tests in 1.417113s, 0.7057 tests/s, 1.4113 assertions/s. | |
4.43s user 0.09s system 99% cpu 4.531 total | |
#================================================================= | |
# using 1.9.3-p0 | |
$ time ruby -I. -Ispec spec/store_spec.rb | |
Finished tests in 0.254037s, 3.9364 tests/s, 7.8729 assertions/s. | |
0.74s user 0.07s system 99% cpu 0.812 total | |
Finished tests in 0.230056s, 4.3468 tests/s, 8.6935 assertions/s. | |
0.72s user 0.07s system 99% cpu 0.790 total | |
Finished tests in 0.238203s, 4.1981 tests/s, 8.3962 assertions/s. | |
0.72s user 0.07s system 99% cpu 0.793 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment