create table names (
id serial primary key,
name text
);
Install wrk and run perf test.
wrk -t 6 -c100 -d20s -s post.lua -H "Content-Type: application/json" http://localhost:8080/add
Running 20s test @ http://localhost:8080/add
6 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 7.41ms 7.46ms 142.38ms 91.14%
Req/Sec 2.62k 317.10 5.67k 92.68%
314096 requests in 20.08s, 19.17MB read
Requests/sec: 15638.87
Transfer/sec: 0.95MB