v/vlib/vanilla_http_server/CONTRIBUTING.md
2025-06-01 03:21:33 +03:00

549 B

Contributing

Rules

  • Don't slow down performance
  • Always try to keep abstraction to a minimum
  • Don't complicate it

Benchmarking & Testing

CURL

curl -X GET --verbose http://localhost:3000/ &&
curl -X POST --verbose http://localhost:3000/user &&
curl -X GET --verbose http://localhost:3000/user/1

WRK

wrk  -H 'Connection: "keep-alive"' --connection 512 --threads 16 --duration 10s http://localhost:3000

Valgrind

# Race condition check
v -prod -gc none .
valgrind --tool=helgrind ./vanilla