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 |
19 |
10 |
458 |
22 |
22 |
23.98 |
1.17 |
| bin-true |
no-host |
673 |
541 |
2,300 |
816 |
815 |
3.41 |
1.21 |
| configure.cpython |
no-host |
14,896 |
15,088 |
28,811 |
15,103 |
15,525 |
1.93 |
1.01 |
| configure.ocaml |
no-host |
3,772 |
3,811 |
4,663 |
3,854 |
3,925 |
1.24 |
1.02 |
| configure.tcc |
no-host |
48 |
42 |
207 |
49 |
50 |
4.34 |
1.04 |
| configure.util-linux |
no-host |
13,942 |
14,869 |
31,151 |
14,284 |
14,740 |
2.23 |
1.02 |
| configure.yash |
no-host |
1,818 |
1,801 |
2,466 |
1,828 |
1,887 |
1.36 |
1.01 |
| hello-world |
no-host |
1 |
1 |
59 |
3 |
3 |
41.45 |
2.01 |
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,561 |
1,103 |
23,775 |
3,208 |
3,073 |
9.28 |
1.25 |
| bin-true |
no-host |
107,317 |
65,442 |
771,552 |
126,216 |
126,192 |
7.19 |
1.18 |
| configure.cpython |
no-host |
2,227,366 |
2,245,674 |
6,244,064 |
2,215,916 |
2,206,362 |
2.80 |
0.99 |
| configure.ocaml |
no-host |
410,561 |
391,392 |
647,591 |
412,702 |
412,470 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,551 |
5,471 |
24,146 |
6,936 |
6,913 |
3.69 |
1.06 |
| configure.util-linux |
no-host |
2,101,669 |
2,261,000 |
5,401,573 |
1,992,905 |
1,991,163 |
2.57 |
0.95 |
| configure.yash |
no-host |
256,511 |
245,072 |
389,353 |
257,721 |
258,229 |
1.52 |
1.00 |
| hello-world |
no-host |
153 |
83 |
3,947 |
344 |
337 |
25.80 |
2.25 |
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.3 |
3,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
816 |
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,103 |
1 |
58 |
14.9 |
27.4 |
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,284 |
3 |
58 |
21.2 |
30.1 |
2,702,513 |
45,898 |
65,711 |
108,691 |
1,290,640 |
1,303,182 |
32,239 |
41 |
131,422 |
1 |
| configure.ocaml |
no-host |
3,854 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,112 |
5,207 |
7,508 |
70,969 |
71,603 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
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,828 |
1 |
2 |
2.5 |
24.2 |
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.2 |
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 |
815 |
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,525 |
1 |
61 |
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,740 |
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,925 |
1 |
2 |
2.6 |
20.4 |
150,080 |
11,050 |
5,145 |
7,510 |
70,969 |
71,601 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
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,887 |
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 |
22 |
1 |
2 |
2.8 |
8.7 |
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 |
19 |
14 |
5 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
458 |
421 |
40 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
22 |
15 |
7 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
673 |
480 |
225 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
541 |
417 |
132 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,300 |
1,534 |
1,028 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
816 |
582 |
248 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
815 |
584 |
245 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,896 |
8,945 |
6,356 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,088 |
8,951 |
6,564 |
27.3 |
dash |
| 18 |
no-host |
configure.cpython |
28,811 |
17,699 |
12,994 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,103 |
8,779 |
6,593 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,525 |
9,121 |
6,532 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,772 |
1,542 |
1,269 |
20.4 |
bash |
| 12 |
no-host |
configure.ocaml |
3,811 |
1,662 |
1,169 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,663 |
2,265 |
1,617 |
20.4 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,854 |
1,602 |
1,292 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,925 |
1,674 |
1,289 |
20.4 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
25 |
23 |
19.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
207 |
155 |
56 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
26 |
24 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
23 |
27 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,942 |
8,724 |
5,696 |
30.1 |
bash |
| 11 |
no-host |
configure.util-linux |
14,869 |
9,178 |
6,190 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
31,151 |
20,718 |
11,514 |
30.1 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,284 |
8,692 |
5,785 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,740 |
8,889 |
5,979 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,818 |
1,068 |
759 |
24.5 |
bash |
| 14 |
no-host |
configure.yash |
1,801 |
1,082 |
719 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,466 |
1,566 |
941 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,828 |
1,078 |
754 |
24.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,887 |
1,073 |
817 |
24.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
59 |
35 |
23 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,561 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
bash |
| 15 |
no-host |
abuild-print-help |
1,103 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,775 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,208 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,073 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,317 |
0 |
0 |
0 |
8 |
0 |
1,995 |
75 |
bash |
| 9 |
no-host |
bin-true |
65,442 |
0 |
0 |
0 |
8 |
0 |
1,992 |
42 |
dash |
| 17 |
no-host |
bin-true |
771,552 |
0 |
0 |
0 |
8 |
0 |
1,994 |
140 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,216 |
0 |
0 |
0 |
16 |
0 |
1,987 |
81 |
osh-native |
| 33 |
no-host |
bin-true |
126,192 |
0 |
0 |
0 |
16 |
0 |
1,989 |
86 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,227,366 |
0 |
0 |
0 |
32,928 |
0 |
14,523 |
938 |
bash |
| 10 |
no-host |
configure.cpython |
2,245,674 |
0 |
0 |
0 |
32,992 |
0 |
14,679 |
869 |
dash |
| 18 |
no-host |
configure.cpython |
6,244,064 |
0 |
0 |
0 |
27,512 |
0 |
13,291 |
1,223 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,215,916 |
0 |
0 |
0 |
27,520 |
0 |
13,285 |
981 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,206,362 |
3 |
0 |
0 |
27,520 |
0 |
13,184 |
977 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,561 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
156 |
bash |
| 12 |
no-host |
configure.ocaml |
391,392 |
0 |
0 |
0 |
5,112 |
0 |
1,912 |
137 |
dash |
| 20 |
no-host |
configure.ocaml |
647,591 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
196 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,702 |
0 |
0 |
0 |
5,120 |
0 |
1,922 |
181 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,470 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
140 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,551 |
0 |
0 |
0 |
104 |
0 |
49 |
10 |
bash |
| 13 |
no-host |
configure.tcc |
5,471 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
| 21 |
no-host |
configure.tcc |
24,146 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,936 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,913 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,101,669 |
0 |
0 |
0 |
42,400 |
0 |
18,693 |
1,182 |
bash |
| 11 |
no-host |
configure.util-linux |
2,261,000 |
1 |
0 |
0 |
42,592 |
0 |
17,498 |
1,012 |
dash |
| 19 |
no-host |
configure.util-linux |
5,401,573 |
14 |
0 |
0 |
39,120 |
0 |
16,972 |
1,129 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,992,905 |
0 |
0 |
0 |
39,128 |
0 |
16,959 |
960 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,991,163 |
0 |
0 |
0 |
39,136 |
0 |
16,978 |
1,041 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,511 |
0 |
0 |
0 |
4,120 |
0 |
868 |
62 |
bash |
| 14 |
no-host |
configure.yash |
245,072 |
0 |
0 |
0 |
3,720 |
0 |
871 |
71 |
dash |
| 22 |
no-host |
configure.yash |
389,353 |
0 |
0 |
0 |
3,728 |
0 |
854 |
103 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,721 |
0 |
0 |
0 |
3,736 |
0 |
848 |
78 |
osh-native |
| 38 |
no-host |
configure.yash |
258,229 |
0 |
0 |
0 |
3,736 |
0 |
847 |
84 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,947 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
| 24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
337 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host