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 |
21 |
22 |
18 |
1.30 |
1.16 |
| bin-true |
no-host |
619 |
449 |
815 |
810 |
663 |
1.32 |
1.07 |
| configure.cpython |
no-host |
14,091 |
14,357 |
13,969 |
14,082 |
13,527 |
0.99 |
0.96 |
| configure.ocaml |
no-host |
3,764 |
3,720 |
3,789 |
3,817 |
3,764 |
1.01 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
48 |
48 |
46 |
1.01 |
0.96 |
| configure.util-linux |
no-host |
13,071 |
13,854 |
12,962 |
13,039 |
12,678 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,766 |
1,700 |
1,736 |
1,764 |
1,725 |
0.98 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.55 |
1.06 |
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,417 |
1,165 |
3,334 |
3,404 |
2,803 |
1.38 |
1.16 |
| bin-true |
no-host |
101,449 |
49,390 |
130,354 |
132,980 |
111,032 |
1.28 |
1.09 |
| configure.cpython |
no-host |
1,629,285 |
1,636,559 |
1,591,058 |
1,607,220 |
1,521,518 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,081 |
280,604 |
305,025 |
307,121 |
300,824 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,205 |
4,194 |
5,560 |
5,644 |
5,151 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,544,451 |
1,702,068 |
1,502,607 |
1,514,495 |
1,457,908 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,337 |
159,433 |
176,925 |
177,245 |
173,053 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
86 |
389 |
398 |
181 |
2.59 |
1.21 |
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 |
815 |
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 |
13,969 |
2 |
70 |
14.8 |
34.7 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,962 |
3 |
68 |
21.6 |
39.7 |
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,789 |
1 |
2 |
2.8 |
28.6 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,736 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
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 |
810 |
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,082 |
1 |
69 |
14.8 |
34.4 |
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,039 |
3 |
68 |
21.6 |
39.5 |
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,817 |
1 |
2 |
2.8 |
28.6 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.1 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,764 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
619 |
313 |
342 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
449 |
283 |
170 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
815 |
294 |
537 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
810 |
311 |
514 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
663 |
316 |
365 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,091 |
7,626 |
6,863 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,357 |
7,839 |
6,937 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,969 |
7,332 |
6,926 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,082 |
7,369 |
7,003 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,527 |
7,480 |
6,297 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,764 |
1,475 |
1,331 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,720 |
1,462 |
1,281 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,789 |
1,510 |
1,319 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,817 |
1,505 |
1,352 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,764 |
1,518 |
1,279 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
23 |
26 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
18 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
28 |
21 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
25 |
24 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
46 |
24 |
22 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,071 |
6,833 |
6,721 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,854 |
6,720 |
7,644 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,962 |
6,476 |
6,720 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,039 |
6,398 |
6,877 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,678 |
6,459 |
6,443 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,766 |
1,001 |
772 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,700 |
976 |
725 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,736 |
960 |
775 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,764 |
1,004 |
762 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,725 |
968 |
758 |
33.1 |
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 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,417 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,165 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,334 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,404 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,803 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,449 |
0 |
0 |
0 |
8 |
0 |
1,998 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,390 |
0 |
0 |
0 |
8 |
0 |
2,994 |
68 |
dash |
| 17 |
no-host |
bin-true |
130,354 |
0 |
0 |
0 |
16 |
0 |
1,999 |
110 |
osh-native |
| 25 |
no-host |
bin-true |
132,980 |
0 |
0 |
0 |
16 |
0 |
1,999 |
94 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,032 |
0 |
0 |
0 |
8 |
0 |
1,999 |
69 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,285 |
0 |
0 |
0 |
25,272 |
0 |
14,074 |
1,012 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,559 |
0 |
0 |
0 |
25,272 |
0 |
14,116 |
1,048 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,058 |
0 |
0 |
0 |
25,280 |
0 |
11,303 |
862 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,607,220 |
0 |
0 |
0 |
25,280 |
0 |
11,300 |
899 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,518 |
0 |
0 |
0 |
25,272 |
0 |
11,296 |
831 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,081 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
280,604 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
202 |
dash |
| 20 |
no-host |
configure.ocaml |
305,025 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
217 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,121 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
208 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,824 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
218 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,205 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,194 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,560 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,644 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,151 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,544,451 |
0 |
0 |
232 |
35,944 |
0 |
19,041 |
1,084 |
bash |
| 11 |
no-host |
configure.util-linux |
1,702,068 |
0 |
0 |
0 |
35,936 |
0 |
17,128 |
1,266 |
dash |
| 19 |
no-host |
configure.util-linux |
1,502,607 |
1 |
0 |
0 |
35,952 |
0 |
16,141 |
883 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,495 |
0 |
0 |
0 |
35,944 |
0 |
16,203 |
953 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,908 |
2 |
0 |
0 |
35,936 |
0 |
16,173 |
974 |
osh-static |
| 6 |
no-host |
configure.yash |
173,337 |
0 |
0 |
0 |
3,616 |
0 |
881 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,433 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
99 |
dash |
| 22 |
no-host |
configure.yash |
176,925 |
0 |
0 |
0 |
3,624 |
0 |
859 |
107 |
osh-native |
| 30 |
no-host |
configure.yash |
177,245 |
0 |
0 |
0 |
3,624 |
0 |
857 |
99 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,053 |
0 |
0 |
0 |
3,616 |
0 |
858 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host