Browser-Based Engine Architecture
1. Sub-10ms Latency (Ping Engine)
Standard HTTP fetches include DNS resolution, TCP handshakes, and browser HTTP stack setup overhead, artificially inflating ping to 15-25ms. Velocity uses a warmed XHR connection and measures Time-To-First-Byte (TTFB) deltas with microsecond precision (`performance.now()`), isolating true network round-trip latency (<10ms).
2. TCP Slow-Start Warmup Filter (Download Engine)
When starting a download stream, TCP algorithms gradually ramp up window size (slow start), which skews naive speed calculations. Velocity runs 6 parallel Web Worker streams and discards the first 1.5 seconds of warmup buffer before computing the top 80th-percentile sustained throughput.
3. High-Performance Multi-Threaded Blob Workers (Upload Engine)
To avoid freezing the main UI thread during heavy Gigabit upload bursts, Velocity instantiates inline Blob Web Workers (`URL.createObjectURL`). These background threads generate random entropy byte chunks in memory and upload via chunked `XMLHttpRequest` progress streams.