blockqueue
blockqueue copied to clipboard
perf: optimize sqlite and batch processing (#1)
Problem Statement
During my testing I couldn't get the claimed RPS in my Windows machine using WSL2. So I take a look at what I can do to improve the throughput in this machine. I was thinking this is due to the system specs and configuration. The assumption was right, after improving some codes I got doubled the result on M1 MAC which reach 30K RPS while its resulting 15K RPS in WSL2.
Summary
This PR significantly improves BlockQueue's performance, achieving 15K (wsl2) and 30K (m1) requests per second (RPS) with zero failures under high load.
more detailed description my my thought process can be seen https://github.com/riez/blockqueue/pull/1