Skip to content

daescha/multi-threaded-webserver-comparisons

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •