We copied libxev's code for the timer heap implementation in Bun for setTimeout & setInterval, and it was a ~6x throughput improvement[0] on Linux compared to our previous implementation.
[0]: https://twitter.com/jarredsumner/status/1736741811039899871