Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Last active December 15, 2015 23:49
Show Gist options
  • Select an option

  • Save kenmazaika/5342857 to your computer and use it in GitHub Desktop.

Select an option

Save kenmazaika/5342857 to your computer and use it in GitHub Desktop.

Step 2 - Use a performance tweaked verison of ruby

Follow Funny Falcon's guides to performance improvements.

Before Change

Units:       Finished tests in 391.271548s, 3.5474 tests/s, 10.7342 assertions/s.
Functionals: Finished tests in 307.495845s, 2.2602 tests/s, 6.9692 assertions/s.

Before: 698.767 seconds

After using 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.

After: 650.336 seconds

48.430 seconds faster.

  • ~ 6.5% =====

~ 26.5% Total Win

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
@kenmazaika
Copy link
Author

Note: test ran against this particular patch.

@kenmazaika
Copy link
Author

🐱 ☎️ 🍌 ⭕

Profiled Results: Before Optimization / After Optimization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment