Promise timers are now packaged by node at least, they allocate about 20% less memory for the 1mil test (on v18).
const { setTimeout } = require('node:timers/promises')
Promise timers are now packaged by node at least, they allocate about 20% less memory for the 1mil test (on v18).
https://nodejs.org/api/timers.html#timers-promises-api