Reaching Ludicrous Speed
summary
Goal is tenfold throughput jump from 20,000 messages/sec to 200,000 messages/sec for an MQTT broker; achieved by profiling with flame graphs, DTrace and V8 flags (--trace-opt, trace-inlining) and eliminating hot allocations. Built and used reusify and steed (and compared to async, neo-async, fastparallel), moved packet generation to cork/uncork streaming to avoid buffer allocation, and reduced closures so V8 can optimize. Result is a working, order-of-magnitude speedup with concrete benchmarks.
AI-written summary · about
