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 |
23 |
19 |
1.36 |
1.17 |
| bin-true |
no-host |
636 |
454 |
833 |
836 |
677 |
1.31 |
1.07 |
| configure.cpython |
no-host |
14,257 |
14,509 |
14,054 |
14,224 |
13,673 |
0.99 |
0.96 |
| configure.ocaml |
no-host |
3,775 |
3,738 |
3,871 |
3,829 |
3,803 |
1.03 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
49 |
49 |
44 |
1.06 |
0.95 |
| configure.util-linux |
no-host |
13,092 |
14,005 |
13,245 |
13,203 |
12,804 |
1.01 |
0.98 |
| configure.yash |
no-host |
1,745 |
1,712 |
1,807 |
1,794 |
1,737 |
1.04 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.46 |
1.01 |
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,403 |
1,193 |
3,299 |
3,444 |
2,818 |
1.37 |
1.17 |
| bin-true |
no-host |
101,443 |
49,417 |
135,379 |
130,936 |
111,033 |
1.33 |
1.09 |
| configure.cpython |
no-host |
1,629,880 |
1,635,642 |
1,585,820 |
1,600,425 |
1,523,427 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,227 |
280,676 |
305,513 |
306,530 |
300,820 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,241 |
4,202 |
5,648 |
5,708 |
5,139 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,539,236 |
1,707,022 |
1,500,233 |
1,517,037 |
1,457,022 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,468 |
159,586 |
176,132 |
177,248 |
173,120 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
86 |
389 |
396 |
182 |
2.54 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
833 |
1 |
2 |
3.5 |
8.8 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,054 |
1 |
69 |
14.8 |
34.5 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,245 |
3 |
70 |
21.6 |
39.8 |
2,705,279 |
37,450 |
66,323 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,871 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.0 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,807 |
1 |
2 |
2.7 |
33.5 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
9.3 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
836 |
1 |
2 |
3.5 |
9.2 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,224 |
1 |
70 |
14.8 |
34.5 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,203 |
3 |
70 |
21.6 |
39.7 |
2,705,279 |
37,456 |
66,329 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,829 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.3 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,794 |
1 |
2 |
2.7 |
33.1 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
3.0 |
10.0 |
117,212 |
65,788 |
41,998 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,996 |
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 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
13 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
636 |
301 |
375 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
454 |
279 |
180 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
833 |
301 |
550 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
836 |
312 |
542 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
677 |
308 |
388 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,257 |
7,800 |
6,858 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,509 |
7,865 |
7,063 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
14,054 |
7,457 |
6,874 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,224 |
7,539 |
6,984 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,673 |
7,440 |
6,480 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,775 |
1,521 |
1,296 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,738 |
1,464 |
1,299 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,871 |
1,523 |
1,387 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,829 |
1,518 |
1,354 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,803 |
1,533 |
1,303 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
28 |
19 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
20 |
23 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
25 |
25 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
23 |
22 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,092 |
6,788 |
6,784 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
14,005 |
6,774 |
7,735 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
13,245 |
6,379 |
7,085 |
39.8 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,203 |
6,444 |
6,991 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,804 |
6,414 |
6,623 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,745 |
997 |
757 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,712 |
959 |
754 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,807 |
1,036 |
772 |
33.5 |
osh-native |
| 30 |
no-host |
configure.yash |
1,794 |
984 |
813 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,737 |
970 |
770 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
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 |
0 |
3 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,403 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,193 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,299 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,444 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,818 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
101,443 |
0 |
0 |
0 |
8 |
0 |
1,997 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,417 |
0 |
0 |
0 |
8 |
0 |
2,989 |
62 |
dash |
| 17 |
no-host |
bin-true |
135,379 |
0 |
0 |
0 |
16 |
0 |
1,997 |
78 |
osh-native |
| 25 |
no-host |
bin-true |
130,936 |
0 |
0 |
0 |
16 |
0 |
1,993 |
86 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,033 |
0 |
0 |
0 |
8 |
0 |
1,997 |
52 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,880 |
0 |
0 |
0 |
25,296 |
0 |
14,026 |
1,029 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,642 |
0 |
0 |
0 |
25,272 |
0 |
14,115 |
1,029 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,820 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
859 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,600,425 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
927 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,427 |
0 |
0 |
0 |
25,272 |
0 |
11,303 |
873 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,227 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
280,676 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
191 |
dash |
| 20 |
no-host |
configure.ocaml |
305,513 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,530 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
202 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,820 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
213 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,241 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,202 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,648 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,708 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,139 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,236 |
1 |
0 |
232 |
35,944 |
0 |
18,922 |
1,053 |
bash |
| 11 |
no-host |
configure.util-linux |
1,707,022 |
0 |
0 |
0 |
35,936 |
0 |
17,016 |
1,384 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,233 |
1 |
0 |
0 |
35,952 |
0 |
16,121 |
996 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,517,037 |
4 |
0 |
0 |
35,944 |
0 |
16,128 |
937 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,022 |
4 |
0 |
0 |
35,936 |
0 |
16,181 |
901 |
osh-static |
| 6 |
no-host |
configure.yash |
173,468 |
0 |
0 |
0 |
3,616 |
0 |
878 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,586 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
93 |
dash |
| 22 |
no-host |
configure.yash |
176,132 |
0 |
0 |
0 |
3,624 |
0 |
857 |
109 |
osh-native |
| 30 |
no-host |
configure.yash |
177,248 |
0 |
0 |
0 |
3,624 |
0 |
857 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,120 |
0 |
0 |
0 |
3,616 |
0 |
857 |
154 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
389 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host