Last active
August 29, 2015 14:04
-
-
Save tgxworld/75f75d659c83e2c87e53 to your computer and use it in GitHub Desktop.
Comparison of runtime between Controllers and Integration Tests. (Rspec included)
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
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rspec spec/controllers | |
.............................................................................................................. | |
Finished in 3.34 seconds | |
110 examples, 0 failures | |
Randomized with seed 12942 | |
real 0m4.700s | |
user 0m4.391s | |
sys 0m0.200s | |
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rspec spec/requests | |
.............................................................................................................. | |
Finished in 3.94 seconds | |
110 examples, 0 failures | |
Randomized with seed 8149 | |
real 0m5.292s | |
user 0m4.971s | |
sys 0m0.210s | |
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rake test:controllers | |
Run options: --seed 59931 | |
# Running: | |
.............................................................................................................. | |
Finished in 3.715078s, 29.6091 runs/s, 663.2432 assertions/s. | |
110 runs, 2464 assertions, 0 failures, 0 errors, 0 skips | |
real 0m5.018s | |
user 0m4.676s | |
sys 0m0.239s | |
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rake test:integration | |
Run options: --seed 28574 | |
# Running: | |
.............................................................................................................. | |
Finished in 4.183619s, 26.2930 runs/s, 588.9638 assertions/s. | |
110 runs, 2464 assertions, 0 failures, 0 errors, 0 skips | |
real 0m5.468s | |
user 0m5.110s | |
sys 0m0.254s |
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
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rspec spec/controllers | |
.............................................................................................................. | |
Finished in 3.35 seconds | |
110 examples, 0 failures | |
Randomized with seed 34359 | |
real 0m4.747s | |
user 0m4.442s | |
sys 0m0.203s | |
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rspec spec/requests | |
.............................................................................................................. | |
Finished in 3.77 seconds | |
110 examples, 0 failures | |
Randomized with seed 61043 | |
real 0m5.130s | |
user 0m4.825s | |
sys 0m0.209s | |
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rake test:controllers | |
Run options: --seed 41318 | |
# Running: | |
.............................................................................................................. | |
Finished in 3.360679s, 32.7315 runs/s, 733.1852 assertions/s. | |
110 runs, 2464 assertions, 0 failures, 0 errors, 0 skips | |
real 0m4.683s | |
user 0m4.365s | |
sys 0m0.210s | |
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rake test:integration | |
Run options: --seed 22128 | |
# Running: | |
.............................................................................................................. | |
Finished in 3.803654s, 28.9196 runs/s, 647.7981 assertions/s. | |
110 runs, 2464 assertions, 0 failures, 0 errors, 0 skips | |
real 0m5.090s | |
user 0m4.773s | |
sys 0m0.213s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment