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:
parent
6562d9ed3e
commit
14f3af7c63
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue