oils.pub
OSH Runtime Performance
Source code: benchmarks/osh-runtime.sh
Raw files
Elapsed Time by Shell (milliseconds)
Some benchmarks call many external tools, while some exercise the shell
interpreter itself.
| workload |
host name |
bash |
dash |
osh-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
16 |
9 |
22 |
22 |
19 |
1.36 |
1.14 |
| bin-true |
no-host |
622 |
454 |
824 |
836 |
666 |
1.32 |
1.07 |
| configure.cpython |
no-host |
13,763 |
14,818 |
14,162 |
13,882 |
14,014 |
1.03 |
1.02 |
| configure.ocaml |
no-host |
3,842 |
3,643 |
3,842 |
3,685 |
3,833 |
1.00 |
1.00 |
| configure.tcc |
no-host |
48 |
42 |
49 |
47 |
45 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
13,395 |
13,911 |
13,474 |
12,664 |
12,992 |
1.01 |
0.97 |
| configure.yash |
no-host |
1,814 |
1,679 |
1,789 |
1,696 |
1,735 |
0.99 |
0.96 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.50 |
1.02 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
2,379 |
1,150 |
3,304 |
3,385 |
2,833 |
1.39 |
1.19 |
| bin-true |
no-host |
100,439 |
49,433 |
133,315 |
135,344 |
112,048 |
1.33 |
1.12 |
| configure.cpython |
no-host |
1,624,988 |
1,642,569 |
1,587,145 |
1,597,293 |
1,518,941 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,052 |
280,825 |
306,374 |
306,966 |
300,141 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,226 |
4,207 |
5,616 |
5,687 |
5,122 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,530,646 |
1,700,678 |
1,510,402 |
1,519,007 |
1,479,311 |
0.99 |
0.97 |
| configure.yash |
no-host |
173,309 |
159,583 |
177,128 |
177,172 |
172,766 |
1.02 |
1.00 |
| hello-world |
no-host |
155 |
88 |
395 |
398 |
184 |
2.55 |
1.19 |
Memory Usage (Max Resident Set Size in MB)
Memory usage is measured in MB (powers of 10), not MiB (powers of 2).
GC Stats
| workload |
host name |
elapsed ms |
max gc millis |
total gc millis |
allocated MB |
max rss MB |
num allocated |
num live |
max survived |
num in heap |
num in pool 1 |
num in pool 2 |
num gc points |
num gc done |
gc threshold |
num growths |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
824 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,162 |
2 |
72 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,474 |
3 |
75 |
21.6 |
39.7 |
2,705,398 |
37,471 |
66,342 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,842 |
1 |
2 |
2.8 |
28.4 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.4 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,789 |
1 |
2 |
2.7 |
33.2 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
9.4 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
836 |
1 |
2 |
3.5 |
9.3 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,882 |
2 |
72 |
14.9 |
34.5 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,664 |
3 |
67 |
21.6 |
39.7 |
2,705,398 |
37,477 |
66,348 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,685 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,696 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,239 |
65,805 |
42,012 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,024 |
1 |
rusage Details
| task id |
host name |
workload |
elapsed ms |
user ms |
sys ms |
max rss MB |
shell label |
| 7 |
no-host |
abuild-print-help |
16 |
10 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
622 |
324 |
337 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
454 |
279 |
180 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
824 |
315 |
525 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
836 |
318 |
536 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
666 |
317 |
370 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,763 |
7,565 |
6,593 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,818 |
8,077 |
7,188 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
14,162 |
7,470 |
6,979 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,882 |
7,433 |
6,746 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
14,014 |
7,659 |
6,614 |
34.8 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,842 |
1,588 |
1,297 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,643 |
1,503 |
1,165 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,842 |
1,514 |
1,372 |
28.4 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,685 |
1,434 |
1,292 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,833 |
1,568 |
1,299 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
30 |
19 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
23 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
29 |
21 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
26 |
22 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
22 |
24 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,395 |
6,987 |
6,902 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,911 |
6,842 |
7,587 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,474 |
6,614 |
7,103 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,664 |
6,311 |
6,583 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,992 |
6,486 |
6,745 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,814 |
998 |
824 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,679 |
959 |
722 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,789 |
993 |
799 |
33.2 |
osh-native |
| 30 |
no-host |
configure.yash |
1,696 |
968 |
732 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,735 |
982 |
755 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
3.4 |
osh-static |
More Details
| task id |
host name |
workload |
minor faults |
major faults |
swaps |
in block |
out block |
signals |
voluntary ctx |
involuntary ctx |
shell label |
| 7 |
no-host |
abuild-print-help |
2,379 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,150 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,304 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,385 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,833 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
100,439 |
0 |
0 |
0 |
8 |
0 |
1,998 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,433 |
0 |
0 |
0 |
8 |
0 |
2,984 |
69 |
dash |
| 17 |
no-host |
bin-true |
133,315 |
0 |
0 |
0 |
16 |
0 |
1,997 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
135,344 |
0 |
0 |
0 |
16 |
0 |
1,996 |
72 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,048 |
0 |
0 |
0 |
8 |
0 |
1,996 |
60 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,988 |
0 |
0 |
0 |
25,272 |
0 |
14,075 |
996 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,569 |
0 |
0 |
0 |
25,272 |
0 |
14,110 |
986 |
dash |
| 18 |
no-host |
configure.cpython |
1,587,145 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
784 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,597,293 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
828 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,941 |
0 |
0 |
0 |
25,272 |
0 |
11,297 |
789 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,052 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,825 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
203 |
dash |
| 20 |
no-host |
configure.ocaml |
306,374 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
197 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,966 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
195 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,141 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
208 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,226 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
52 |
0 |
dash |
| 21 |
no-host |
configure.tcc |
5,616 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,687 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,122 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,530,646 |
0 |
0 |
0 |
35,936 |
0 |
18,963 |
1,035 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,678 |
0 |
0 |
0 |
35,936 |
0 |
17,089 |
1,141 |
dash |
| 19 |
no-host |
configure.util-linux |
1,510,402 |
3 |
0 |
0 |
35,952 |
0 |
16,141 |
911 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,007 |
0 |
0 |
8 |
35,944 |
0 |
16,208 |
892 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,311 |
2 |
0 |
0 |
35,936 |
0 |
16,119 |
880 |
osh-static |
| 6 |
no-host |
configure.yash |
173,309 |
0 |
0 |
0 |
3,616 |
0 |
875 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,583 |
0 |
0 |
0 |
3,616 |
0 |
999 |
109 |
dash |
| 22 |
no-host |
configure.yash |
177,128 |
0 |
0 |
0 |
3,624 |
0 |
854 |
105 |
osh-native |
| 30 |
no-host |
configure.yash |
177,172 |
0 |
0 |
0 |
3,632 |
0 |
858 |
95 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,766 |
0 |
0 |
0 |
3,616 |
0 |
854 |
123 |
osh-static |
| 0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host