Thrift / Benchmarking

Thrift / Benchmarking

Benchmark Load in node.js

benschmaus/nodeload Benchmark.js

Sphere Consulting Inc Blog — Benchmarking for Node.JS / Socket.IO sites

pgriess/wsbench Benchmarking Web Socket servers with wsbench | Peter Griess’s Blog

Performance benchmarking 0.8.7, 0.7.11 and 0.6.17 and Node’s native TCP « Mixu’s tech blog


Easy way with bash and xargs

An easy way to run many tasks in parallel The Art of Parallelization with GNU xargs and pssh

50 parallel processes:

seq 1 1000 | xargs --max-args=1 --max-procs=50 php Client.php

Coount active processes:

ps -eaf | grep -c 'php Client.php'

Time elapsed:

/usr/bin/time --format=%e ...

And disable output, so final is:

n=1000; p=1; s1=$SECONDS; \
echo -n "Executing (total of $n requests, per $p in parallel) ..."; \
seq 1 $n | xargs --max-args=1 --max-procs=$p php Client.php > /dev/null 2>&1; \
s2=$(($SECONDS-$s1)); \
echo Total $s1 seconds or $(($n/$d)) requests per second;

n=100;s=$SECONDS; seq 1 $n | xargs –max-args=1 –max-procs=50 php Client.php > /dev/null 2>&1 ; echo $(($n/($SECONDS-$s))


date 01. Jan 0001 | modified 28. May 2021
filename: Thrift - Benchmarking