r/programming • • Dec 25 '17

Ruby 2.5.0 Released

https://www.ruby-lang.org/en/news/2017/12/25/ruby-2-5-0-released/
172 Upvotes

18 comments sorted by

View all comments

54

u/Sabe Dec 25 '17

About 5-10% performance improvement by removing all trace instructions from overall bytecode (instruction sequences).

really

1

u/slvrsmth Dec 26 '17

I'm seeing a 10% improvement when benchmarking a CPU-bound code path. Do note that the project was running on a old version (2.2.3), this might not be all the doing of 2.5!

2.2.3

user       system     total        real
3.780000   0.150000   3.930000 (  4.934430)
4.500000   0.230000   4.730000 (  5.928588)
3.920000   0.150000   4.070000 (  5.116367)
3.860000   0.150000   4.010000 (  5.043942)
4.020000   0.170000   4.190000 (  5.255805)

2.5.0

user       system     total        real
3.421015   0.158510   3.579525 (  4.640035)
3.250918   0.148298   3.399216 (  4.407600)
3.223697   0.150655   3.374352 (  4.377131)
3.332370   0.162322   3.494692 (  4.527419)
3.206682   0.157384   3.364066 (  4.384227)