Skip to content

Commit

Permalink
Merge branch 'master' of github.com:rspec/rspec-core
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Nov 19, 2010
2 parents 5a5208d + 846679a commit 913ce19
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Upgrade.markdown
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,6 +11,27 @@ in performance. Using a simple benchmark:


Run using ruby-1.9.2 on Mac OS X w/ 3.06 G Run using ruby-1.9.2 on Mac OS X w/ 3.06 G


* rspec-2.1
* loaded in 0.85 on avg
* ran in 2.61 on avg
* rspec-2.2
* loaded in 0.73 on avg (~15% improvement)
* ran in 0.94 on avg (~64% improvement**)

** this does _not_ mean your suite will be 64% faster, but it does mean that
the overhead incurred by RSpec in your suite should be roughly 64% less.

## FASTER!

Made several small optimizations that all add up to a considerable improvement
in performance. Using a simple benchmark:

generate 5000 example groups,
each with one example,
each with one passing expectation

Run using ruby-1.9.2 on Mac OS X w/ 3.06 G

* rspec-2.1 * rspec-2.1
* loaded in 0.85 on avg * loaded in 0.85 on avg
* ran in 2.61 on avg * ran in 2.61 on avg
Expand Down

0 comments on commit 913ce19

Please sign in to comment.