I remember looking at BSON de/serializers for some perceived performance issue a while back, ruby was only marginally slower than PHP for the same task, which was just pulling big record sets back from the db. Can you elaborate?
Sometimes it's more than 2x faster than before. They now have JIT and are planing to have an intermediate language for even more speed.
Most PHP stdlib code is pure C/C++ so it tends to be very fast, but I'm guessing Ruby is the same.