I have been investigating general performance today and was very pleasantly surprised to see the new version of ruby (2.6.1) both reduces memory usage AND speeds up Discourse.
In particular, looking at Discourse bench:
RSS is reduced from 293332 to 262140 bytes!
Median request time
|route||2.5.3 (ms)||2.6.1 (ms)||change|
It is going to take us a bit of time prior to upgrading to 2.6.1, we will probably switch over in 2-3 months. We also still need to validate these results on rubybench.org. That said these initial results are incredibly promising.
We will be usually expecting 7% improvement however our 1 in 100 requests will suffer a 15-40% slowdown. My interpretation of the results is that the runtime has gotten faster, but the major GC time has become a bit slower.