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-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
| abuild-print-help |
no-host |
22 |
10 |
479 |
22 |
21 |
22.24 |
1.03 |
| bin-true |
no-host |
680 |
559 |
2,324 |
811 |
828 |
3.42 |
1.19 |
| configure.cpython |
no-host |
15,937 |
16,123 |
30,193 |
15,647 |
15,869 |
1.89 |
0.98 |
| configure.ocaml |
no-host |
3,989 |
3,894 |
4,772 |
3,935 |
3,936 |
1.20 |
0.99 |
| configure.tcc |
no-host |
50 |
43 |
205 |
53 |
49 |
4.09 |
1.06 |
| configure.util-linux |
no-host |
14,652 |
15,714 |
32,344 |
14,749 |
14,720 |
2.21 |
1.01 |
| configure.yash |
no-host |
1,908 |
1,866 |
2,568 |
1,883 |
1,848 |
1.35 |
0.99 |
| hello-world |
no-host |
1 |
1 |
58 |
3 |
3 |
38.53 |
1.93 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
| abuild-print-help |
no-host |
2,519 |
1,099 |
23,767 |
3,180 |
3,075 |
9.44 |
1.26 |
| bin-true |
no-host |
105,418 |
65,419 |
770,596 |
125,274 |
125,291 |
7.31 |
1.19 |
| configure.cpython |
no-host |
2,222,092 |
2,234,555 |
6,241,917 |
2,222,973 |
2,202,770 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,141 |
391,273 |
647,969 |
411,772 |
412,579 |
1.58 |
1.00 |
| configure.tcc |
no-host |
6,569 |
5,488 |
24,132 |
6,980 |
6,894 |
3.67 |
1.06 |
| configure.util-linux |
no-host |
2,106,314 |
2,261,475 |
5,397,655 |
1,992,917 |
1,990,654 |
2.56 |
0.95 |
| configure.yash |
no-host |
256,869 |
244,692 |
388,909 |
257,310 |
257,300 |
1.51 |
1.00 |
| hello-world |
no-host |
149 |
83 |
3,945 |
340 |
337 |
26.48 |
2.28 |
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.2 |
6.2 |
3,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
811 |
1 |
2 |
2.6 |
8.1 |
153,746 |
12,267 |
2,887 |
8,743 |
76,322 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,647 |
1 |
64 |
14.9 |
27.5 |
1,771,747 |
49,125 |
28,512 |
85,415 |
878,115 |
808,217 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,749 |
3 |
65 |
21.2 |
30.0 |
2,702,513 |
53,766 |
65,691 |
108,691 |
1,290,640 |
1,303,182 |
32,239 |
41 |
131,382 |
1 |
| configure.ocaml |
no-host |
3,935 |
1 |
2 |
2.6 |
20.4 |
150,080 |
11,112 |
5,207 |
7,508 |
70,969 |
71,603 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
53 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,518 |
14,641 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,883 |
1 |
2 |
2.5 |
24.5 |
139,412 |
8,024 |
6,686 |
5,989 |
67,942 |
65,481 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,403 |
42,613 |
4,532 |
54,436 |
57,324 |
277 |
3 |
85,226 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
828 |
1 |
2 |
2.6 |
7.6 |
153,745 |
12,111 |
2,825 |
8,744 |
76,322 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,869 |
1 |
63 |
14.9 |
27.4 |
1,771,746 |
44,577 |
28,450 |
85,416 |
878,115 |
808,215 |
25,733 |
60 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,720 |
3 |
62 |
21.2 |
30.3 |
2,702,513 |
53,693 |
65,629 |
108,693 |
1,290,640 |
1,303,180 |
32,239 |
41 |
131,258 |
1 |
| configure.ocaml |
no-host |
3,936 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,050 |
5,145 |
7,510 |
70,969 |
71,601 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,520 |
14,641 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,848 |
1 |
2 |
2.5 |
24.4 |
139,412 |
7,962 |
6,624 |
5,991 |
67,942 |
65,479 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.5 |
116,291 |
64,341 |
42,551 |
4,533 |
54,436 |
57,322 |
277 |
3 |
85,102 |
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 |
22 |
11 |
10 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
479 |
413 |
69 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
19 |
3 |
8.5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
680 |
511 |
200 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
559 |
420 |
141 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,324 |
1,544 |
1,043 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
811 |
568 |
259 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
828 |
567 |
273 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,937 |
9,440 |
6,867 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
16,123 |
9,486 |
7,039 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
30,193 |
18,266 |
13,872 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,647 |
9,111 |
6,807 |
27.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,869 |
9,257 |
6,729 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,989 |
1,736 |
1,290 |
20.4 |
bash |
| 12 |
no-host |
configure.ocaml |
3,894 |
1,664 |
1,246 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,772 |
2,241 |
1,745 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,935 |
1,710 |
1,262 |
20.4 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,936 |
1,657 |
1,310 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
50 |
31 |
20 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
28 |
16 |
19.0 |
dash |
| 21 |
no-host |
configure.tcc |
205 |
148 |
61 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
53 |
26 |
28 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,652 |
9,061 |
6,058 |
30.1 |
bash |
| 11 |
no-host |
configure.util-linux |
15,714 |
9,508 |
6,684 |
29.9 |
dash |
| 19 |
no-host |
configure.util-linux |
32,344 |
21,301 |
12,158 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,749 |
8,827 |
6,106 |
30.0 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,720 |
8,915 |
5,987 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,908 |
1,069 |
847 |
24.5 |
bash |
| 14 |
no-host |
configure.yash |
1,866 |
960 |
900 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,568 |
1,636 |
976 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,883 |
1,093 |
793 |
24.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,848 |
1,070 |
778 |
24.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
2 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
58 |
33 |
24 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
5.9 |
osh-native-souffle |
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,519 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,767 |
0 |
0 |
0 |
8 |
0 |
45 |
14 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,180 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,075 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
105,418 |
0 |
0 |
0 |
8 |
0 |
1,988 |
49 |
bash |
| 9 |
no-host |
bin-true |
65,419 |
0 |
0 |
0 |
8 |
0 |
1,980 |
43 |
dash |
| 17 |
no-host |
bin-true |
770,596 |
0 |
0 |
0 |
8 |
0 |
1,998 |
279 |
osh-cpython |
| 25 |
no-host |
bin-true |
125,274 |
0 |
0 |
0 |
16 |
0 |
1,985 |
119 |
osh-native |
| 33 |
no-host |
bin-true |
125,291 |
0 |
0 |
0 |
16 |
0 |
1,991 |
59 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,222,092 |
0 |
0 |
0 |
32,928 |
0 |
14,459 |
1,179 |
bash |
| 10 |
no-host |
configure.cpython |
2,234,555 |
0 |
0 |
0 |
32,992 |
0 |
14,605 |
1,032 |
dash |
| 18 |
no-host |
configure.cpython |
6,241,917 |
0 |
0 |
0 |
27,512 |
0 |
13,276 |
1,093 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,222,973 |
1 |
0 |
0 |
27,520 |
0 |
13,190 |
955 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,202,770 |
0 |
0 |
0 |
27,520 |
0 |
13,148 |
1,077 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,141 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
163 |
bash |
| 12 |
no-host |
configure.ocaml |
391,273 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
132 |
dash |
| 20 |
no-host |
configure.ocaml |
647,969 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
157 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
411,772 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
158 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,579 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
143 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,569 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,132 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,980 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,894 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,106,314 |
0 |
0 |
0 |
42,408 |
0 |
18,588 |
1,015 |
bash |
| 11 |
no-host |
configure.util-linux |
2,261,475 |
0 |
0 |
0 |
42,592 |
0 |
17,432 |
1,065 |
dash |
| 19 |
no-host |
configure.util-linux |
5,397,655 |
11 |
0 |
0 |
39,112 |
0 |
16,970 |
1,289 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,992,917 |
0 |
0 |
0 |
39,120 |
0 |
16,841 |
911 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,990,654 |
0 |
0 |
0 |
39,136 |
0 |
16,759 |
951 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,869 |
0 |
0 |
0 |
4,120 |
0 |
868 |
85 |
bash |
| 14 |
no-host |
configure.yash |
244,692 |
0 |
0 |
0 |
3,720 |
0 |
864 |
89 |
dash |
| 22 |
no-host |
configure.yash |
388,909 |
1 |
0 |
0 |
3,728 |
0 |
856 |
92 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,310 |
0 |
0 |
0 |
3,736 |
0 |
846 |
69 |
osh-native |
| 38 |
no-host |
configure.yash |
257,300 |
0 |
0 |
0 |
3,736 |
0 |
845 |
80 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,945 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
| 24 |
no-host |
hello-world |
340 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
337 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host