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 |
21 |
9 |
461 |
22 |
21 |
21.58 |
1.04 |
| bin-true |
no-host |
680 |
543 |
2,273 |
805 |
806 |
3.34 |
1.18 |
| configure.cpython |
no-host |
14,841 |
14,840 |
28,656 |
15,216 |
15,380 |
1.93 |
1.03 |
| configure.ocaml |
no-host |
3,794 |
3,689 |
4,664 |
3,812 |
3,870 |
1.23 |
1.00 |
| configure.tcc |
no-host |
47 |
41 |
202 |
49 |
49 |
4.31 |
1.04 |
| configure.util-linux |
no-host |
13,961 |
14,666 |
31,175 |
14,358 |
14,631 |
2.23 |
1.03 |
| configure.yash |
no-host |
1,793 |
1,759 |
2,462 |
1,819 |
1,848 |
1.37 |
1.01 |
| hello-world |
no-host |
2 |
1 |
55 |
3 |
3 |
35.22 |
1.82 |
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,099 |
23,781 |
3,192 |
3,066 |
9.29 |
1.25 |
| bin-true |
no-host |
107,330 |
66,400 |
770,557 |
125,299 |
125,215 |
7.18 |
1.17 |
| configure.cpython |
no-host |
2,219,849 |
2,244,180 |
6,251,091 |
2,219,764 |
2,205,948 |
2.82 |
1.00 |
| configure.ocaml |
no-host |
410,867 |
391,002 |
648,056 |
413,587 |
412,920 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,538 |
5,454 |
24,122 |
6,979 |
6,902 |
3.69 |
1.07 |
| configure.util-linux |
no-host |
2,091,167 |
2,263,553 |
5,400,755 |
1,997,851 |
1,993,845 |
2.58 |
0.96 |
| configure.yash |
no-host |
256,089 |
245,195 |
389,115 |
257,743 |
258,036 |
1.52 |
1.01 |
| hello-world |
no-host |
151 |
82 |
3,938 |
346 |
339 |
26.08 |
2.29 |
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 |
805 |
1 |
2 |
2.6 |
8.0 |
153,746 |
12,267 |
2,887 |
8,743 |
76,322 |
68,681 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,216 |
1 |
62 |
14.9 |
27.3 |
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,358 |
3 |
59 |
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,812 |
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,819 |
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 |
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.8 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
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,380 |
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,631 |
3 |
61 |
21.2 |
30.1 |
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,870 |
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.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.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 |
21 |
13 |
6 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
461 |
420 |
43 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
15 |
8 |
8.9 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
19 |
3 |
8.5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
680 |
506 |
204 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
543 |
412 |
141 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,273 |
1,485 |
1,041 |
18.4 |
osh-cpython |
| 25 |
no-host |
bin-true |
805 |
573 |
250 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
806 |
590 |
232 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,841 |
8,951 |
6,288 |
27.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,840 |
8,941 |
6,310 |
27.5 |
dash |
| 18 |
no-host |
configure.cpython |
28,656 |
17,583 |
12,917 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,216 |
9,175 |
6,305 |
27.3 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,380 |
9,218 |
6,303 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,794 |
1,579 |
1,253 |
20.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,689 |
1,584 |
1,125 |
20.4 |
dash |
| 20 |
no-host |
configure.ocaml |
4,664 |
2,267 |
1,611 |
20.4 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,812 |
1,607 |
1,242 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,870 |
1,630 |
1,274 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
27 |
21 |
19.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
30 |
11 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
202 |
171 |
35 |
19.4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
33 |
16 |
19.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
39 |
10 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,961 |
8,908 |
5,526 |
30.1 |
bash |
| 11 |
no-host |
configure.util-linux |
14,666 |
9,030 |
6,123 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
31,175 |
20,909 |
11,332 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,358 |
8,694 |
5,861 |
30.1 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,631 |
8,619 |
6,192 |
30.1 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,793 |
1,063 |
738 |
24.5 |
bash |
| 14 |
no-host |
configure.yash |
1,759 |
986 |
776 |
24.5 |
dash |
| 22 |
no-host |
configure.yash |
2,462 |
1,548 |
956 |
24.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,819 |
971 |
851 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,848 |
1,032 |
819 |
24.2 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
55 |
36 |
19 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,561 |
0 |
0 |
0 |
16 |
0 |
42 |
3 |
bash |
| 15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
23,781 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,192 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,066 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,330 |
0 |
0 |
0 |
8 |
0 |
1,986 |
166 |
bash |
| 9 |
no-host |
bin-true |
66,400 |
0 |
0 |
0 |
8 |
0 |
1,983 |
44 |
dash |
| 17 |
no-host |
bin-true |
770,557 |
0 |
0 |
0 |
8 |
0 |
1,998 |
203 |
osh-cpython |
| 25 |
no-host |
bin-true |
125,299 |
0 |
0 |
0 |
16 |
0 |
1,985 |
50 |
osh-native |
| 33 |
no-host |
bin-true |
125,215 |
0 |
0 |
0 |
16 |
0 |
1,997 |
117 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,219,849 |
0 |
0 |
0 |
32,928 |
0 |
14,451 |
892 |
bash |
| 10 |
no-host |
configure.cpython |
2,244,180 |
0 |
0 |
0 |
32,992 |
0 |
14,594 |
933 |
dash |
| 18 |
no-host |
configure.cpython |
6,251,091 |
0 |
0 |
0 |
27,512 |
0 |
13,279 |
1,148 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,219,764 |
0 |
0 |
0 |
27,520 |
0 |
13,255 |
1,146 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,205,948 |
2 |
0 |
0 |
27,520 |
0 |
13,234 |
944 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,867 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
214 |
bash |
| 12 |
no-host |
configure.ocaml |
391,002 |
0 |
0 |
0 |
5,112 |
0 |
1,907 |
132 |
dash |
| 20 |
no-host |
configure.ocaml |
648,056 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
175 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,587 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
155 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,920 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
228 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,538 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
5,454 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
24,122 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,979 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,902 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,091,167 |
0 |
0 |
0 |
42,400 |
0 |
18,584 |
951 |
bash |
| 11 |
no-host |
configure.util-linux |
2,263,553 |
0 |
0 |
0 |
42,584 |
0 |
17,473 |
1,007 |
dash |
| 19 |
no-host |
configure.util-linux |
5,400,755 |
5 |
0 |
0 |
39,120 |
0 |
17,063 |
1,171 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,997,851 |
1 |
0 |
0 |
39,120 |
0 |
16,967 |
950 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,993,845 |
0 |
0 |
0 |
39,128 |
0 |
17,089 |
940 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,089 |
0 |
0 |
0 |
4,120 |
0 |
870 |
77 |
bash |
| 14 |
no-host |
configure.yash |
245,195 |
0 |
0 |
0 |
3,720 |
0 |
866 |
94 |
dash |
| 22 |
no-host |
configure.yash |
389,115 |
0 |
0 |
0 |
3,728 |
0 |
854 |
100 |
osh-cpython |
| 30 |
no-host |
configure.yash |
257,743 |
0 |
0 |
0 |
3,736 |
0 |
850 |
68 |
osh-native |
| 38 |
no-host |
configure.yash |
258,036 |
0 |
0 |
0 |
3,736 |
0 |
846 |
87 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,938 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
| 24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host