During my recent debugging of a `Future`-related memory leak issue, I had occasion to swap a program from using `Future::XS`, to the pure-perl `Future::PP` implementation instead.
As the program runs a very flat stable CPU load, such a change made it easy to see the performance different such a change made.
#perl
This entry was edited (2 days ago)

Paul Evans
in reply to Paul Evans • • •In absolute terms it's tiny because this program does very little CPU work - it's just a monitoring bridge between a serial port and an HTTP prometheus "metrics" exporter.
But still - a drop from 0.24% with the pureperl to 0.20% with XS, means the XS module does speed the program up by about 16%.
It's nice to be able to so easily see on a graph such a performance improvement by using the XS version, which might otherwise be somewhat hard to measure.