Last active
December 13, 2015 18:18
-
-
Save kenmazaika/4954282 to your computer and use it in GitHub Desktop.
Benchmarks on tests when doing optimizations
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 rbenv and: https://gist.github.com/burke/1688857?utm_source=rubyweekly&utm_medium=email | |
| GC Collection + Patched Version of Ruby | |
| Finished tests in 378.267123s, 3.5768 tests/s, 10.8918 assertions/s. | |
| Finished tests in 272.069772s, 2.5545 tests/s, 7.8767 assertions/s. | |
| Total: 650.336895 | |
| Shaves off: 48.43049799999994 seconds from GC'ed version. | |
| Total Savings with both: 234.41349000000002seconds, 3.9068915000000004 minutes, 26.5% | |
| http://ken.ht/unit-test-profiles-optimized-gc-patched-ruby |
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
| Unoptimized: http://ken.ht/unit-test-profiles | |
| Test Optimization: Run Rake with GC flag optimizations stolen from 37 signals. | |
| RUBY_HEAP_MIN_SLOTS=600000 RUBY_GC_MALLOC_LIMIT=59000000 RUBY_HEAP_FREE_MIN=100000 | |
| No Optimization | |
| Units: Finished tests in 439.690378s, 3.1568 tests/s, 9.5522 assertions/s. | |
| Functionals: Finished tests in 445.060007s, 1.5616 tests/s, 4.8151 assertions/s. | |
| = before: 884.750385 | |
| GC Optimizations no profiling: | |
| Finished tests in 391.271548s, 3.5474 tests/s, 10.7342 assertions/s. | |
| Finished tests in 307.495845s, 2.2602 tests/s, 6.9692 assertions/s. | |
| = after: 698.767393 | |
| http://ken.ht/unit-test-profiles-optimized-gc | |
| 185.98299200000008s faster, 3.0997165333333347 minutes | |
| 20% faster |
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
| http://ken.ht/unit-test-profiles-optimized-gc-patched-ruby-jamis-patch | |
| GC Collection + Patched Version of Ruby + Jamis Clearing ivars | |
| Finished tests in 348.303864s, 3.8845 tests/s, 0.0000 assertions/s. | |
| Finished tests in 251.224342s, 2.7665 tests/s, 0.0000 assertions/s. | |
| Total: 599.528206s, 9.992136766666667 minutes | |
| Shaves off: 50.80868900000007 seconds from previous best | |
| Total savings with all: 285.2221790000001, 4.75 minutes, %32.237587441117654 | |
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
| https://gist.github.com/BugRoger/4524945 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment