1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14: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
fi
if [ "$SUBJECT" = "zig" ] ; then
if [ "$SUBJECT" = "zig-zap" ] ; then
zig build -Doptimize=ReleaseFast wrk > /dev/null
$TSK_SRV ./zig-out/bin/wrk &
PID=$!
@ -41,7 +41,7 @@ if [ "$SUBJECT" = "python" ] ; then
URL=http://127.0.0.1:8080
fi
if [ "$SUBJECT" = "sanic" ] ; then
if [ "$SUBJECT" = "python-sanic" ] ; then
$TSK_SRV python wrk/sanic/sanic-app.py &
PID=$!
URL=http://127.0.0.1:8000
@ -61,7 +61,7 @@ if [ "$SUBJECT" = "rust-clean" ] ; then
URL=http://127.0.0.1:7878
fi
if [ "$SUBJECT" = "axum" ] ; then
if [ "$SUBJECT" = "rust-axum" ] ; then
cd wrk/axum/hello-axum && cargo build --release
$TSK_SRV ./target/release/hello-axum &
PID=$!

View file

@ -6,13 +6,14 @@ if [ ! -d ".git" ] ; then
exit 1
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
for S in $SUBJECTS; do
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
done
done