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.32 |
1.16 |
| bin-true |
no-host |
627 |
444 |
811 |
808 |
658 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,884 |
13,830 |
13,524 |
13,634 |
13,023 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,664 |
3,644 |
3,708 |
3,736 |
3,652 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
44 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,521 |
13,326 |
12,468 |
12,588 |
12,082 |
1.00 |
0.96 |
| configure.yash |
no-host |
1,735 |
1,695 |
1,698 |
1,696 |
1,673 |
0.98 |
0.96 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.43 |
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,368 |
1,186 |
3,308 |
3,431 |
2,846 |
1.40 |
1.20 |
| bin-true |
no-host |
100,421 |
49,335 |
134,940 |
133,336 |
111,646 |
1.34 |
1.11 |
| configure.cpython |
no-host |
1,626,761 |
1,637,359 |
1,595,425 |
1,601,591 |
1,524,977 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,568 |
280,526 |
306,246 |
306,709 |
300,336 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,246 |
4,217 |
5,633 |
5,705 |
5,148 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,543,885 |
1,704,284 |
1,485,871 |
1,515,053 |
1,452,706 |
0.96 |
0.94 |
| configure.yash |
no-host |
173,413 |
159,510 |
177,006 |
177,264 |
172,850 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
86 |
390 |
399 |
183 |
2.55 |
1.20 |
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.4 |
3,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
811 |
1 |
2 |
3.5 |
8.9 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,524 |
1 |
67 |
14.8 |
34.5 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,468 |
3 |
66 |
21.6 |
39.7 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,708 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.0 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,698 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
1 |
2 |
3.5 |
9.3 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,634 |
2 |
69 |
14.8 |
34.3 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,588 |
3 |
67 |
21.6 |
39.6 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,736 |
1 |
2 |
2.8 |
28.6 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,696 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
627 |
309 |
359 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
444 |
271 |
179 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
811 |
312 |
516 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
808 |
305 |
519 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
658 |
320 |
354 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,884 |
7,607 |
6,674 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,830 |
7,537 |
6,700 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,524 |
7,085 |
6,715 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,634 |
7,180 |
6,748 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,023 |
7,119 |
6,147 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,664 |
1,494 |
1,211 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,644 |
1,469 |
1,200 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,708 |
1,504 |
1,244 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,736 |
1,500 |
1,277 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,652 |
1,484 |
1,200 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
25 |
21 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
20 |
22 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
25 |
22 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
29 |
18 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
21 |
23 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,521 |
6,581 |
6,412 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,326 |
6,432 |
7,395 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,468 |
6,152 |
6,539 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,588 |
6,209 |
6,602 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,082 |
6,233 |
6,066 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,735 |
983 |
762 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,695 |
943 |
754 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,698 |
952 |
749 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,696 |
955 |
743 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,673 |
966 |
710 |
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 |
2 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,368 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,186 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,308 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,431 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,846 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,421 |
0 |
0 |
0 |
8 |
0 |
1,994 |
57 |
bash |
| 9 |
no-host |
bin-true |
49,335 |
0 |
0 |
0 |
8 |
0 |
2,993 |
49 |
dash |
| 17 |
no-host |
bin-true |
134,940 |
0 |
0 |
0 |
16 |
0 |
1,999 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
133,336 |
0 |
0 |
0 |
16 |
0 |
1,999 |
81 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,646 |
0 |
0 |
0 |
8 |
0 |
2,001 |
73 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,761 |
0 |
0 |
0 |
25,272 |
0 |
14,082 |
1,018 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,359 |
0 |
0 |
0 |
25,272 |
0 |
14,134 |
1,052 |
dash |
| 18 |
no-host |
configure.cpython |
1,595,425 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
840 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,601,591 |
0 |
0 |
0 |
25,280 |
0 |
11,314 |
849 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,977 |
1 |
0 |
0 |
25,272 |
0 |
11,306 |
884 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,568 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,526 |
0 |
0 |
0 |
4,432 |
0 |
2,091 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
306,246 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
228 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,709 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
211 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,336 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
235 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,246 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,217 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,633 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,705 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,148 |
0 |
0 |
0 |
88 |
0 |
45 |
4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,543,885 |
0 |
0 |
0 |
35,944 |
0 |
18,981 |
1,036 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,284 |
0 |
0 |
496 |
35,936 |
0 |
17,079 |
1,302 |
dash |
| 19 |
no-host |
configure.util-linux |
1,485,871 |
3 |
0 |
0 |
35,952 |
0 |
16,135 |
867 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,053 |
0 |
0 |
0 |
35,952 |
0 |
16,172 |
963 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,452,706 |
3 |
0 |
0 |
35,944 |
0 |
16,139 |
923 |
osh-static |
| 6 |
no-host |
configure.yash |
173,413 |
0 |
0 |
0 |
3,616 |
0 |
878 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,510 |
0 |
0 |
0 |
3,616 |
0 |
999 |
106 |
dash |
| 22 |
no-host |
configure.yash |
177,006 |
0 |
0 |
0 |
3,632 |
0 |
857 |
97 |
osh-native |
| 30 |
no-host |
configure.yash |
177,264 |
0 |
0 |
0 |
3,624 |
0 |
858 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,850 |
0 |
0 |
0 |
3,616 |
0 |
858 |
103 |
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 |
390 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host