Vikram Kamble Portfolio
An article comparing the throughput of C++ and Node.js servers using the same HTTP route.
What does it do?
The article implements a simple GET route in C++ Crow and Node.js that accepts a name from the URL and returns a greeting. It tests them with wrk using 12 threads, 400 connections, and a 30-second run. Recorded throughput is 5,470 requests per second for Crow and 12,052 for the built-in Node.js HTTP server. The author explains that the libraries and I/O methods used affect the results and covers uWebSockets as a subsequent experiment.
Key features
- Presents implementations of the same GET route in Crow and Node.js
- Specifies wrk thread count, connection count, and run time
- Records request throughput and average latency for Crow and Node.js
- Introduces a subsequent experiment using uWebSockets