-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_throughput.sh
More file actions
executable file
·46 lines (35 loc) · 1.13 KB
/
run_throughput.sh
File metadata and controls
executable file
·46 lines (35 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Throughput benchmark script for SprayList
# Similar to https://github.com/jkopinsky/SprayList/blob/master/run_throughput.sh
echo "SprayList Throughput Benchmarks"
echo "==============================="
echo ""
# Build the project first
echo "Building project..."
cargo build --release --bench spraylist_bench
if [ $? -ne 0 ]; then
echo "Build failed!"
exit 1
fi
echo ""
echo "Running throughput scaling benchmark..."
echo "Thread counts: 1, 2, 4, 8, 16"
echo ""
# Run the throughput scaling benchmark
cargo bench --bench spraylist_bench -- bench_throughput_scaling --verbose
echo ""
echo "Running mixed workload benchmarks..."
echo "Update percentages: 0%, 25%, 50%, 75%, 100%"
echo ""
# Run mixed workload benchmarks
cargo bench --bench spraylist_bench -- bench_mixed_workloads --verbose
echo ""
echo "Running parameter comparison benchmarks..."
echo ""
# Run parameter benchmarks
cargo bench --bench spraylist_bench -- bench_spray_parameters --verbose
echo ""
echo "Benchmarks complete!"
echo ""
echo "For detailed results, check target/criterion/*/report/index.html"
echo "Raw data is available in target/criterion/"