Skip to content

Instantly share code, notes, and snippets.

@tgxworld
Created July 17, 2014 05:47
Show Gist options
  • Save tgxworld/a1ea2fbce08d99f23da9 to your computer and use it in GitHub Desktop.
Save tgxworld/a1ea2fbce08d99f23da9 to your computer and use it in GitHub Desktop.
Comparison of runtime between Controllers and Integration Tests. Duplicated test case 10 times to simulate a larger test suite.
real 7m15.452s
user 6m45.995s
sys 0m19.915s
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rake test:controllers
Run options: --seed 20971
# Running:
....................................................................................................
Finished in 3.312826s, 30.1857 runs/s, 676.1598 assertions/s.
100 runs, 2240 assertions, 0 failures, 0 errors, 0 skips
real 0m4.628s
user 0m4.303s
sys 0m0.233s
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rake test:integration
Run options: --seed 26004
# Running:
....................................................................................................
Finished in 3.830118s, 26.1089 runs/s, 584.8383 assertions/s.
100 runs, 2240 assertions, 0 failures, 0 errors, 0 skips
real 0m5.111s
user 0m4.776s
sys 0m0.241s
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rake test:controllers
Run options: --seed 62995
# Running:
....................................................................................................
Finished in 3.079742s, 32.4703 runs/s, 727.3337 assertions/s.
100 runs, 2240 assertions, 0 failures, 0 errors, 0 skips
real 0m4.385s
user 0m4.087s
sys 0m0.204s
guoxiang@guoxiang-GS60-2PC-Ghost rails-contributors (master) $ time rake test:integration
Run options: --seed 16933
# Running:
....................................................................................................
Finished in 3.516242s, 28.4395 runs/s, 637.0438 assertions/s.
100 runs, 2240 assertions, 0 failures, 0 errors, 0 skips
real 0m4.808s
user 0m4.503s
sys 0m0.209s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment