-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-hyperfine.sh
More file actions
executable file
·40 lines (34 loc) · 1.18 KB
/
run-hyperfine.sh
File metadata and controls
executable file
·40 lines (34 loc) · 1.18 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
#!/bin/bash
echo "🔥 Semver Libraries Benchmark Suite"
echo "===================================="
echo "Comparing node-semver vs @vltpkg/semver"
echo ""
echo "📊 Running Parsing Benchmarks..."
hyperfine --warmup 3 --runs 10 \
--export-json results-parsing.json \
--export-markdown results-parsing.md \
'node benchmarks/parsing.js' \
--command-name 'Parsing Operations'
echo ""
echo "⚡ Running Comparison Benchmarks..."
hyperfine --warmup 3 --runs 10 \
--export-json results-comparison.json \
--export-markdown results-comparison.md \
'node benchmarks/comparison.js' \
--command-name 'Comparison Operations'
echo ""
echo "🎯 Running Satisfies Benchmarks..."
hyperfine --warmup 3 --runs 10 \
--export-json results-satisfies.json \
--export-markdown results-satisfies.md \
'node benchmarks/satisfies.js' \
--command-name 'Satisfies Operations'
echo ""
echo "📈 Running Combined Benchmark Suite..."
hyperfine --warmup 3 --runs 5 \
--export-json results-combined.json \
--export-markdown results-combined.md \
'node benchmarks/index.js' \
--command-name 'Full Benchmark Suite'
echo ""
echo "✅ Benchmark completed! Check the results-*.json and results-*.md files."