-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbench.sh
53 lines (46 loc) · 1.11 KB
/
bench.sh
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
48
49
50
51
52
53
#!/bin/bash
hyperfine \
--runs 2 \
--warmup 2 \
--export-markdown ./bench/parallel.md \
'node ./Target/lib/parallel.js'
hyperfine \
--runs 2 \
--warmup 2 \
--export-markdown ./bench/piscina.md \
'node ./Target/lib/piscina.js'
hyperfine \
--runs 2 \
--warmup 2 \
--export-markdown ./bench/serial.md \
'node ./Target/lib/serial.js'
hyperfine \
--runs 2 \
--warmup 2 \
--export-markdown ./bench/parallel-no-await.md \
'node ./Target/lib/parallel-no-await.js'
hyperfine \
--runs 2 \
--warmup 2 \
--export-markdown ./bench/piscina-no-await.md \
'node ./Target/lib/piscina-no-await.js'
hyperfine \
--runs 2 \
--warmup 2 \
--export-markdown ./bench/serial-no-await.md \
'node ./Target/lib/serial-no-await.js'
{
printf '# parallel-piscina-benchmark\n'
printf '\n## Parallel\n'
cat ./bench/parallel.md
printf '\n## Piscina\n'
cat ./bench/piscina.md
printf '\n## Serial\n'
cat ./bench/serial.md
printf '\n## Parallel No Await\n'
cat ./bench/parallel-no-await.md
printf '\n## Piscina No Await\n'
cat ./bench/piscina-no-await.md
printf '\n## Serial No Await\n'
cat ./bench/serial-no-await.md
} > README.md