1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-21 07:34:08 +00:00

renamed bench targets to make langs more clear

This commit is contained in:
Rene Schallner 2023-08-22 16:45:00 +02:00
parent 49b2762ecb
commit f10b76f229
2 changed files with 6 additions and 5 deletions

View file

@ -14,7 +14,7 @@ if [ "$SUBJECT" = "" ] ; then
exit 1 exit 1
fi fi
if [ "$SUBJECT" = "zig" ] ; then if [ "$SUBJECT" = "zig-zap" ] ; then
zig build -Doptimize=ReleaseFast wrk > /dev/null zig build -Doptimize=ReleaseFast wrk > /dev/null
$TSK_SRV ./zig-out/bin/wrk & $TSK_SRV ./zig-out/bin/wrk &
PID=$! PID=$!
@ -41,7 +41,7 @@ if [ "$SUBJECT" = "python" ] ; then
URL=http://127.0.0.1:8080 URL=http://127.0.0.1:8080
fi fi
if [ "$SUBJECT" = "sanic" ] ; then if [ "$SUBJECT" = "python-sanic" ] ; then
$TSK_SRV python wrk/sanic/sanic-app.py & $TSK_SRV python wrk/sanic/sanic-app.py &
PID=$! PID=$!
URL=http://127.0.0.1:8000 URL=http://127.0.0.1:8000
@ -61,7 +61,7 @@ if [ "$SUBJECT" = "rust-clean" ] ; then
URL=http://127.0.0.1:7878 URL=http://127.0.0.1:7878
fi fi
if [ "$SUBJECT" = "axum" ] ; then if [ "$SUBJECT" = "rust-axum" ] ; then
cd wrk/axum/hello-axum && cargo build --release cd wrk/axum/hello-axum && cargo build --release
$TSK_SRV ./target/release/hello-axum & $TSK_SRV ./target/release/hello-axum &
PID=$! PID=$!

View file

@ -6,13 +6,14 @@ if [ ! -d ".git" ] ; then
exit 1 exit 1
fi fi
SUBJECTS="zig go python sanic rust-bythebook rust-clean axum csharp cpp-beast" SUBJECTS="zig-zap go python python-sanic rust-bythebook rust-clean rust-axum csharp cpp-beast"
rm -f wrk/*.perflog rm -f wrk/*.perflog
for S in $SUBJECTS; do for S in $SUBJECTS; do
L="$S.perflog" L="$S.perflog"
for R in 1 2 3 ; do # for R in 1 2 3 ; do
for R in 1 ; do
./wrk/measure.sh $S | tee -a wrk/$L ./wrk/measure.sh $S | tee -a wrk/$L
done done
done done