Created
November 8, 2011 15:26
-
-
Save samflores/1348029 to your computer and use it in GitHub Desktop.
RSpec comparison
This file contains 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
class Foo | |
def say | |
"Hello" | |
end | |
end |
This file contains 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 'foo' | |
describe Foo do | |
it "should say hello" do | |
Foo.new.say.should == "Hello" | |
end | |
end |
This file contains 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
rbx-2.0.0-dev | |
1.17s user 0.07s system 139% cpu 0.890 total | |
1.18s user 0.07s system 140% cpu 0.890 total | |
1.9.2-p290 | |
0.51s user 0.11s system 99% cpu 0.620 total | |
0.50s user 0.11s system 99% cpu 0.614 total | |
1.9.3-p0 | |
0.15s user 0.04s system 98% cpu 0.192 total | |
0.15s user 0.04s system 98% cpu 0.193 total | |
1.8.7-p352 | |
0.10s user 0.03s system 96% cpu 0.136 total | |
0.09s user 0.04s system 96% cpu 0.134 total |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Na verdade minha intenção inicial não era comparar os diferentes frameworks de testes, mas comparar a execução, ou melhor a carga+execução, de um único framework (RSpec) em diferentes implementações do interpretador (
MRI-{1.8.7,1.9.2,1.9.3}
eRubinius 2.0.0
).