Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.27 KB

File metadata and controls

36 lines (29 loc) · 1.27 KB

multi-threaded-webserver-comparisons

  • install apache bench (apache lounge, includes bench, for windows dl link: link)
  • extract zip; run executable Apache24/bin/ab
  • specific command I use, for the go code:
.\ab -n 10000 -c 100 localhost/ > go/ab.txt
"====================================================" >> go/ab.txt
.\ab -n 10000 -c 200 localhost/ >> go/ab.txt
  • for drill:
drill --benchmark benchmark-1000.yml --stats -q > rust/drill.txt
"====================================================" >> rust/drill.txt
drill --benchmark benchmark-2000.yml --stats -q >> rust/drill.txt

whole thing on linux (set dir first):

dir="
ab -n 10000 -c 100 localhost/ > $dir/ab.txt
echo "====================================================" >> $dir/ab.txt
ab -n 10000 -c 200 localhost/ >> $dir/ab.txt
drill --benchmark benchmark-1000.yml --stats -q > $dir/drill.txt
echo "====================================================" >> $dir/drill.txt
drill --benchmark benchmark-2000.yml --stats -q >> $dir/drill.txt
wrk -t8 -c500 -d30s http://localhost > $dir/wrk.txt

g++ -o webserver webserver.cpp -I$BOOST_ROOT -I. -L$BOOST_ROOT/stage/lib -lboost_system -pthread