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 |
20 |
10 |
475 |
23 |
22 |
24.30 |
1.15 |
| bin-true |
no-host |
680 |
547 |
2,308 |
822 |
805 |
3.39 |
1.21 |
| configure.cpython |
no-host |
15,531 |
15,589 |
30,310 |
15,935 |
15,897 |
1.95 |
1.03 |
| configure.ocaml |
no-host |
3,866 |
3,842 |
4,836 |
3,913 |
3,960 |
1.25 |
1.01 |
| configure.tcc |
no-host |
48 |
42 |
209 |
49 |
51 |
4.33 |
1.02 |
| configure.util-linux |
no-host |
14,454 |
15,276 |
32,989 |
14,863 |
14,772 |
2.28 |
1.03 |
| configure.yash |
no-host |
1,862 |
1,825 |
2,531 |
1,888 |
1,919 |
1.36 |
1.01 |
| hello-world |
no-host |
2 |
1 |
59 |
3 |
3 |
38.48 |
1.85 |
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,545 |
1,120 |
23,740 |
3,172 |
3,093 |
9.33 |
1.25 |
| bin-true |
no-host |
108,404 |
65,453 |
768,520 |
126,267 |
124,227 |
7.09 |
1.16 |
| configure.cpython |
no-host |
2,226,878 |
2,242,354 |
6,244,437 |
2,211,992 |
2,203,451 |
2.80 |
0.99 |
| configure.ocaml |
no-host |
410,750 |
390,366 |
647,291 |
413,288 |
412,556 |
1.58 |
1.01 |
| configure.tcc |
no-host |
6,549 |
5,479 |
24,119 |
6,975 |
6,896 |
3.68 |
1.07 |
| configure.util-linux |
no-host |
2,096,135 |
2,262,060 |
5,400,500 |
1,998,392 |
1,988,845 |
2.58 |
0.95 |
| configure.yash |
no-host |
256,654 |
243,998 |
388,730 |
258,311 |
257,529 |
1.51 |
1.01 |
| hello-world |
no-host |
152 |
80 |
3,939 |
346 |
337 |
25.91 |
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.3 |
3,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
822 |
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,935 |
1 |
66 |
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,863 |
3 |
66 |
21.2 |
30.3 |
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,913 |
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.4 |
30,586 |
30,586 |
0 |
1,518 |
14,641 |
14,427 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,888 |
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 |
23 |
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 |
805 |
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,897 |
1 |
64 |
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,772 |
3 |
64 |
21.2 |
30.0 |
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,960 |
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 |
51 |
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,919 |
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.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 |
20 |
15 |
5 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
475 |
443 |
36 |
22.4 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
8.9 |
osh-native |
| 39 |
no-host |
abuild-print-help |
22 |
13 |
10 |
8.5 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
680 |
509 |
204 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
547 |
412 |
142 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,308 |
1,526 |
1,045 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
822 |
559 |
277 |
8.0 |
osh-native |
| 33 |
no-host |
bin-true |
805 |
587 |
234 |
7.7 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,531 |
9,366 |
6,569 |
27.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,589 |
9,347 |
6,667 |
27.4 |
dash |
| 18 |
no-host |
configure.cpython |
30,310 |
18,245 |
14,071 |
27.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,935 |
9,429 |
6,777 |
27.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,897 |
9,217 |
6,811 |
27.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,866 |
1,702 |
1,206 |
20.4 |
bash |
| 12 |
no-host |
configure.ocaml |
3,842 |
1,703 |
1,153 |
20.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,836 |
2,340 |
1,711 |
20.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,913 |
1,718 |
1,222 |
20.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,960 |
1,700 |
1,298 |
20.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
32 |
17 |
19.4 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
29 |
14 |
19.1 |
dash |
| 21 |
no-host |
configure.tcc |
209 |
162 |
51 |
19.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
31 |
19 |
19.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
51 |
39 |
12 |
19.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,454 |
9,015 |
5,912 |
30.1 |
bash |
| 11 |
no-host |
configure.util-linux |
15,276 |
9,316 |
6,459 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
32,989 |
21,845 |
12,294 |
30.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,863 |
9,007 |
6,042 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,772 |
8,790 |
6,175 |
30.0 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,862 |
1,082 |
789 |
24.2 |
bash |
| 14 |
no-host |
configure.yash |
1,825 |
1,072 |
758 |
24.2 |
dash |
| 22 |
no-host |
configure.yash |
2,531 |
1,533 |
1,043 |
24.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,888 |
1,097 |
795 |
24.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,919 |
1,088 |
835 |
24.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
59 |
32 |
27 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
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,545 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,120 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
23,740 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,172 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,093 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
108,404 |
0 |
0 |
0 |
8 |
0 |
1,993 |
42 |
bash |
| 9 |
no-host |
bin-true |
65,453 |
0 |
0 |
0 |
8 |
0 |
1,987 |
42 |
dash |
| 17 |
no-host |
bin-true |
768,520 |
0 |
0 |
0 |
8 |
0 |
1,995 |
180 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,267 |
0 |
0 |
0 |
16 |
0 |
1,991 |
90 |
osh-native |
| 33 |
no-host |
bin-true |
124,227 |
0 |
0 |
0 |
16 |
0 |
1,988 |
48 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,226,878 |
0 |
0 |
0 |
32,928 |
0 |
14,473 |
1,084 |
bash |
| 10 |
no-host |
configure.cpython |
2,242,354 |
0 |
0 |
0 |
32,992 |
0 |
14,616 |
1,161 |
dash |
| 18 |
no-host |
configure.cpython |
6,244,437 |
1 |
0 |
0 |
27,512 |
0 |
13,164 |
1,247 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,211,992 |
0 |
0 |
0 |
27,520 |
0 |
13,257 |
902 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,203,451 |
0 |
0 |
0 |
27,520 |
0 |
13,267 |
953 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,750 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
158 |
bash |
| 12 |
no-host |
configure.ocaml |
390,366 |
0 |
0 |
0 |
5,112 |
0 |
1,896 |
137 |
dash |
| 20 |
no-host |
configure.ocaml |
647,291 |
0 |
0 |
0 |
5,112 |
0 |
1,868 |
178 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
413,288 |
0 |
0 |
0 |
5,120 |
0 |
1,923 |
181 |
osh-native |
| 36 |
no-host |
configure.ocaml |
412,556 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
169 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,549 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
24,119 |
0 |
0 |
0 |
96 |
0 |
53 |
18 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,975 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,896 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,096,135 |
0 |
0 |
0 |
42,400 |
0 |
18,584 |
1,063 |
bash |
| 11 |
no-host |
configure.util-linux |
2,262,060 |
0 |
0 |
0 |
42,592 |
0 |
17,454 |
1,154 |
dash |
| 19 |
no-host |
configure.util-linux |
5,400,500 |
11 |
0 |
0 |
39,112 |
0 |
16,969 |
1,407 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,998,392 |
0 |
0 |
0 |
39,128 |
0 |
16,972 |
1,045 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,988,845 |
0 |
0 |
0 |
39,136 |
0 |
16,999 |
1,095 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
256,654 |
0 |
0 |
0 |
4,120 |
0 |
865 |
100 |
bash |
| 14 |
no-host |
configure.yash |
243,998 |
0 |
0 |
0 |
3,720 |
0 |
866 |
79 |
dash |
| 22 |
no-host |
configure.yash |
388,730 |
1 |
0 |
0 |
3,728 |
0 |
854 |
102 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,311 |
0 |
0 |
0 |
3,736 |
0 |
851 |
73 |
osh-native |
| 38 |
no-host |
configure.yash |
257,529 |
0 |
0 |
0 |
3,736 |
0 |
850 |
76 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,939 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
| 24 |
no-host |
hello-world |
346 |
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