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

reverted workers back to 4 in zig perf test

This commit is contained in:
Rene Schallner 2023-08-22 20:09:34 +02:00
parent 6562d9ed3e
commit 14f3af7c63
2 changed files with 2 additions and 2 deletions

View file

@ -8,10 +8,10 @@ fi
SUBJECTS="zig-zap go python python-sanic rust-bythebook rust-clean rust-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 for S in $SUBJECTS; do
L="$S.perflog" L="$S.perflog"
rm -f wrk/$L
for R in 1 2 3 ; do for R in 1 2 3 ; do
./wrk/measure.sh $S | tee -a wrk/$L ./wrk/measure.sh $S | tee -a wrk/$L
done done

View file

@ -19,6 +19,6 @@ pub fn main() !void {
// start worker threads // start worker threads
zap.start(.{ zap.start(.{
.threads = 4, .threads = 4,
.workers = 2, // empirical tests: yield best perf on my machine .workers = 4, // empirical tests: yield best perf on my machine
}); });
} }