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 |
474 |
22 |
22 |
24.64 |
1.16 |
| bin-true |
no-host |
675 |
553 |
2,363 |
821 |
813 |
3.50 |
1.22 |
| configure.cpython |
no-host |
15,393 |
15,432 |
29,637 |
15,667 |
15,782 |
1.93 |
1.02 |
| configure.ocaml |
no-host |
3,952 |
3,869 |
4,751 |
3,901 |
3,874 |
1.20 |
0.99 |
| configure.tcc |
no-host |
49 |
44 |
204 |
50 |
50 |
4.19 |
1.02 |
| configure.util-linux |
no-host |
14,346 |
15,188 |
32,424 |
14,714 |
14,656 |
2.26 |
1.03 |
| configure.yash |
no-host |
1,870 |
1,819 |
2,531 |
1,867 |
1,889 |
1.35 |
1.00 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
41.13 |
1.88 |
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,538 |
1,101 |
23,744 |
3,188 |
3,124 |
9.36 |
1.26 |
| bin-true |
no-host |
104,294 |
66,486 |
768,558 |
127,245 |
125,139 |
7.37 |
1.22 |
| configure.cpython |
no-host |
2,219,305 |
2,239,002 |
6,239,762 |
2,218,746 |
2,210,863 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
410,189 |
391,224 |
648,202 |
413,066 |
412,963 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,558 |
5,480 |
24,137 |
6,987 |
6,924 |
3.68 |
1.07 |
| configure.util-linux |
no-host |
2,099,184 |
2,257,633 |
5,391,457 |
1,996,503 |
1,991,230 |
2.57 |
0.95 |
| configure.yash |
no-host |
255,885 |
243,422 |
388,583 |
258,453 |
258,033 |
1.52 |
1.01 |
| hello-world |
no-host |
149 |
81 |
3,940 |
343 |
338 |
26.44 |
2.30 |
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 |
821 |
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,667 |
1 |
65 |
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,714 |
3 |
64 |
21.2 |
30.1 |
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,901 |
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 |
50 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,518 |
14,641 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,867 |
1 |
2 |
2.5 |
24.4 |
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.8 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
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,782 |
1 |
66 |
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,656 |
3 |
63 |
21.2 |
30.1 |
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,874 |
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.4 |
30,586 |
30,586 |
0 |
1,520 |
14,641 |
14,425 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,889 |
1 |
2 |
2.5 |
24.2 |
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 |
18 |
2 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
9 |
0 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
474 |
423 |
54 |
22.5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
21 |
1 |
9.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
22 |
19 |
3 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
675 |
499 |
208 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
553 |
425 |
138 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,363 |
1,559 |
1,070 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
821 |
596 |
240 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
813 |
596 |
230 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,393 |
9,342 |
6,458 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,432 |
9,093 |
6,758 |
27.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,637 |
17,993 |
13,585 |
27.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,667 |
9,218 |
6,715 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,782 |
9,366 |
6,543 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,952 |
1,683 |
1,294 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,869 |
1,645 |
1,241 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,751 |
2,294 |
1,673 |
20.4 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,901 |
1,650 |
1,291 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,874 |
1,695 |
1,216 |
20.4 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
49 |
28 |
22 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
44 |
31 |
13 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
204 |
150 |
57 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
29 |
21 |
19.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
33 |
17 |
19.4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,346 |
8,991 |
5,837 |
30.4 |
bash |
| 11 |
no-host |
configure.util-linux |
15,188 |
9,278 |
6,401 |
30.0 |
dash |
| 19 |
no-host |
configure.util-linux |
32,424 |
21,659 |
11,898 |
30.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,714 |
8,875 |
6,033 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,656 |
8,979 |
5,864 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,870 |
1,129 |
749 |
24.4 |
bash |
| 14 |
no-host |
configure.yash |
1,819 |
1,094 |
729 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,531 |
1,536 |
1,039 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,867 |
1,067 |
802 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,889 |
1,132 |
760 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
2 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
39 |
23 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
5.8 |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
4 |
bash |
| 15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,744 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,188 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,124 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
104,294 |
0 |
0 |
0 |
8 |
0 |
1,993 |
53 |
bash |
| 9 |
no-host |
bin-true |
66,486 |
0 |
0 |
0 |
8 |
0 |
1,990 |
57 |
dash |
| 17 |
no-host |
bin-true |
768,558 |
0 |
0 |
0 |
8 |
0 |
1,999 |
467 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,245 |
0 |
0 |
0 |
16 |
0 |
1,989 |
116 |
osh-native |
| 33 |
no-host |
bin-true |
125,139 |
0 |
0 |
0 |
16 |
0 |
1,994 |
55 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,219,305 |
1 |
0 |
0 |
32,928 |
0 |
14,552 |
1,025 |
bash |
| 10 |
no-host |
configure.cpython |
2,239,002 |
0 |
0 |
0 |
32,992 |
0 |
14,607 |
975 |
dash |
| 18 |
no-host |
configure.cpython |
6,239,762 |
0 |
0 |
0 |
27,512 |
0 |
13,274 |
1,141 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,218,746 |
0 |
0 |
0 |
27,520 |
0 |
13,195 |
924 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,210,863 |
0 |
0 |
0 |
27,520 |
0 |
13,279 |
984 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,189 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
145 |
bash |
| 12 |
no-host |
configure.ocaml |
391,224 |
0 |
0 |
0 |
5,112 |
0 |
1,877 |
152 |
dash |
| 20 |
no-host |
configure.ocaml |
648,202 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
162 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,066 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
173 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,963 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
162 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,558 |
0 |
0 |
0 |
104 |
0 |
49 |
6 |
bash |
| 13 |
no-host |
configure.tcc |
5,480 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
24,137 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,987 |
0 |
0 |
0 |
104 |
0 |
48 |
6 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,924 |
0 |
0 |
0 |
104 |
0 |
46 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,099,184 |
0 |
0 |
0 |
42,400 |
0 |
18,752 |
934 |
bash |
| 11 |
no-host |
configure.util-linux |
2,257,633 |
1 |
0 |
0 |
42,584 |
0 |
17,492 |
1,213 |
dash |
| 19 |
no-host |
configure.util-linux |
5,391,457 |
9 |
0 |
0 |
39,112 |
0 |
16,921 |
1,269 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,996,503 |
3 |
0 |
0 |
39,120 |
0 |
17,085 |
1,065 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,991,230 |
0 |
0 |
0 |
39,128 |
0 |
16,987 |
1,041 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
255,885 |
0 |
0 |
0 |
4,120 |
0 |
867 |
106 |
bash |
| 14 |
no-host |
configure.yash |
243,422 |
0 |
0 |
0 |
3,720 |
0 |
869 |
75 |
dash |
| 22 |
no-host |
configure.yash |
388,583 |
0 |
0 |
0 |
3,728 |
0 |
855 |
92 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,453 |
0 |
0 |
0 |
3,736 |
0 |
847 |
102 |
osh-native |
| 38 |
no-host |
configure.yash |
258,033 |
0 |
0 |
0 |
3,736 |
0 |
854 |
96 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,940 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
| 24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
338 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host