-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (36 loc) · 1.41 KB
/
Copy pathMakefile
File metadata and controls
47 lines (36 loc) · 1.41 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
47
benchmark-scenarios:
k6 run ./benchmarks/scenarios.js
benchmark-connection:
k6 run --vus 16 --duration 5s ./benchmarks/connection.js > ./results/connection.txt
benchmark-plain-async:
k6 run --vus 16 --duration 5s ./benchmarks/plain-async.js > ./results/plain-async.txt
benchmark-plain-sync:
k6 run --vus 16 --duration 5s ./benchmarks/plain-sync.js > ./results/plain-sync.txt
benchmark-json-async:
k6 run --vus 16 --duration 5s ./benchmarks/json-async.js > ./results/json-async.txt
benchmark-json-sync:
k6 run --vus 16 --duration 5s ./benchmarks/json-sync.js > ./results/json-sync.txt
benchmark-binary-async:
k6 run --vus 16 --duration 5s ./benchmarks/binary-async.js > ./results/binary-async.txt
benchmark-binary-sync:
k6 run --vus 16 --duration 5s ./benchmarks/binary-sync.js > ./results/binary-sync.txt
benchmark-all:
@echo "Running comprehensive benchmarks for all frameworks..."
@chmod +x websocket_benchmark.sh
./websocket_benchmark.sh benchmark
benchmark-individual: \
benchmark-connection \
benchmark-plain-async \
benchmark-plain-sync \
benchmark-json-async \
benchmark-json-sync \
benchmark-binary-async \
benchmark-binary-sync
extract-results:
@echo "Extracting benchmark results..."
@chmod +x websocket_benchmark.sh
./websocket_benchmark.sh extract
benchmark-comprehensive:
@echo "Running comprehensive WebSocket benchmark suite..."
@chmod +x websocket_benchmark.sh
./websocket_benchmark.sh both