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 |
466 |
22 |
21 |
23.98 |
1.14 |
| bin-true |
no-host |
675 |
551 |
2,278 |
815 |
811 |
3.37 |
1.21 |
| configure.cpython |
no-host |
15,292 |
15,358 |
28,919 |
15,082 |
15,239 |
1.89 |
0.99 |
| configure.ocaml |
no-host |
3,904 |
3,750 |
4,636 |
3,808 |
3,779 |
1.19 |
0.98 |
| configure.tcc |
no-host |
49 |
41 |
202 |
48 |
48 |
4.15 |
0.99 |
| configure.util-linux |
no-host |
14,325 |
14,900 |
31,401 |
14,273 |
14,266 |
2.19 |
1.00 |
| configure.yash |
no-host |
1,871 |
1,774 |
2,451 |
1,810 |
1,826 |
1.31 |
0.97 |
| hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
36.67 |
1.92 |
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,146 |
23,761 |
3,196 |
3,122 |
9.28 |
1.25 |
| bin-true |
no-host |
106,304 |
65,429 |
770,561 |
127,200 |
126,240 |
7.25 |
1.20 |
| configure.cpython |
no-host |
2,225,996 |
2,235,730 |
6,246,571 |
2,218,188 |
2,203,060 |
2.81 |
1.00 |
| configure.ocaml |
no-host |
411,084 |
391,287 |
647,294 |
412,817 |
412,446 |
1.57 |
1.00 |
| configure.tcc |
no-host |
6,538 |
5,496 |
24,118 |
6,964 |
6,926 |
3.69 |
1.07 |
| configure.util-linux |
no-host |
2,104,632 |
2,259,036 |
5,392,965 |
1,999,516 |
1,990,397 |
2.56 |
0.95 |
| configure.yash |
no-host |
256,784 |
244,633 |
388,786 |
257,981 |
257,194 |
1.51 |
1.00 |
| hello-world |
no-host |
153 |
81 |
3,941 |
346 |
337 |
25.76 |
2.26 |
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 |
815 |
1 |
2 |
2.6 |
8.3 |
153,746 |
12,267 |
2,887 |
8,743 |
76,322 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,082 |
1 |
59 |
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,273 |
3 |
59 |
21.2 |
30.3 |
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,808 |
0 |
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 |
48 |
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,810 |
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 |
8.9 |
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 |
811 |
1 |
2 |
2.6 |
7.7 |
153,745 |
12,111 |
2,825 |
8,744 |
76,322 |
68,679 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,239 |
1 |
59 |
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,266 |
3 |
58 |
21.2 |
30.0 |
2,702,513 |
53,693 |
65,649 |
108,693 |
1,290,640 |
1,303,180 |
32,239 |
41 |
131,298 |
1 |
| configure.ocaml |
no-host |
3,779 |
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 |
48 |
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,826 |
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 |
21 |
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 |
12 |
8 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
9 |
2 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
466 |
431 |
38 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
8.9 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
675 |
499 |
209 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
551 |
432 |
128 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,278 |
1,398 |
1,133 |
18.5 |
osh-cpython |
| 25 |
no-host |
bin-true |
815 |
561 |
267 |
8.3 |
osh-native |
| 33 |
no-host |
bin-true |
811 |
568 |
257 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,292 |
9,248 |
6,447 |
27.5 |
bash |
| 10 |
no-host |
configure.cpython |
15,358 |
9,204 |
6,580 |
27.3 |
dash |
| 18 |
no-host |
configure.cpython |
28,919 |
17,588 |
13,200 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,082 |
9,194 |
6,163 |
27.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,239 |
8,963 |
6,378 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,904 |
1,697 |
1,247 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,750 |
1,649 |
1,121 |
20.4 |
dash |
| 20 |
no-host |
configure.ocaml |
4,636 |
2,236 |
1,608 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,808 |
1,630 |
1,216 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,779 |
1,607 |
1,208 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
49 |
31 |
18 |
19.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
17 |
19.3 |
dash |
| 21 |
no-host |
configure.tcc |
202 |
144 |
61 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
26 |
23 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
18 |
30 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,325 |
9,100 |
5,707 |
30.0 |
bash |
| 11 |
no-host |
configure.util-linux |
14,900 |
9,093 |
6,301 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
31,401 |
21,044 |
11,430 |
30.4 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,273 |
8,540 |
5,932 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,266 |
8,548 |
5,909 |
30.0 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,871 |
1,031 |
850 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,774 |
1,033 |
745 |
24.4 |
dash |
| 22 |
no-host |
configure.yash |
2,451 |
1,521 |
972 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,810 |
1,057 |
757 |
24.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,826 |
1,062 |
768 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
56 |
28 |
27 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,561 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,146 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,761 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,196 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,122 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,304 |
0 |
0 |
0 |
8 |
0 |
1,995 |
133 |
bash |
| 9 |
no-host |
bin-true |
65,429 |
0 |
0 |
0 |
8 |
0 |
1,988 |
75 |
dash |
| 17 |
no-host |
bin-true |
770,561 |
0 |
0 |
0 |
8 |
0 |
1,999 |
98 |
osh-cpython |
| 25 |
no-host |
bin-true |
127,200 |
0 |
0 |
0 |
16 |
0 |
1,991 |
53 |
osh-native |
| 33 |
no-host |
bin-true |
126,240 |
0 |
0 |
0 |
16 |
0 |
1,985 |
69 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,225,996 |
0 |
0 |
0 |
32,928 |
0 |
14,492 |
1,024 |
bash |
| 10 |
no-host |
configure.cpython |
2,235,730 |
0 |
0 |
0 |
32,992 |
0 |
14,691 |
1,039 |
dash |
| 18 |
no-host |
configure.cpython |
6,246,571 |
1 |
0 |
0 |
27,512 |
0 |
13,255 |
1,124 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,218,188 |
0 |
0 |
0 |
27,520 |
0 |
13,243 |
955 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,203,060 |
0 |
0 |
0 |
27,520 |
0 |
13,265 |
1,085 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
411,084 |
0 |
0 |
0 |
5,120 |
0 |
1,941 |
187 |
bash |
| 12 |
no-host |
configure.ocaml |
391,287 |
0 |
0 |
0 |
5,112 |
0 |
1,935 |
136 |
dash |
| 20 |
no-host |
configure.ocaml |
647,294 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
190 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
412,817 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
171 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,446 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
149 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,538 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,496 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
24,118 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,964 |
0 |
0 |
0 |
104 |
0 |
47 |
0 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,926 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,104,632 |
2 |
0 |
0 |
42,400 |
0 |
18,579 |
1,133 |
bash |
| 11 |
no-host |
configure.util-linux |
2,259,036 |
0 |
0 |
0 |
42,592 |
0 |
17,471 |
1,084 |
dash |
| 19 |
no-host |
configure.util-linux |
5,392,965 |
10 |
0 |
0 |
39,112 |
0 |
16,908 |
1,225 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,999,516 |
2 |
0 |
0 |
39,120 |
0 |
16,898 |
973 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,990,397 |
4 |
0 |
0 |
39,128 |
0 |
16,952 |
891 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,784 |
0 |
0 |
0 |
4,120 |
0 |
869 |
71 |
bash |
| 14 |
no-host |
configure.yash |
244,633 |
0 |
0 |
0 |
3,720 |
0 |
867 |
80 |
dash |
| 22 |
no-host |
configure.yash |
388,786 |
0 |
0 |
0 |
3,728 |
0 |
857 |
94 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,981 |
0 |
0 |
0 |
3,736 |
0 |
848 |
85 |
osh-native |
| 38 |
no-host |
configure.yash |
257,194 |
0 |
0 |
0 |
3,736 |
0 |
848 |
77 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,941 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
| 24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
2 |
osh-native |
| 32 |
no-host |
hello-world |
337 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host