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 |
17 |
9 |
538 |
28 |
21 |
32.10 |
1.69 |
| bin-true |
no-host |
612 |
442 |
2,431 |
790 |
799 |
3.97 |
1.29 |
| configure.cpython |
no-host |
13,790 |
13,798 |
29,449 |
14,484 |
14,600 |
2.14 |
1.05 |
| configure.ocaml |
no-host |
3,677 |
3,587 |
4,618 |
3,707 |
3,688 |
1.26 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
224 |
48 |
48 |
4.91 |
1.06 |
| configure.util-linux |
no-host |
12,518 |
13,195 |
32,053 |
13,450 |
13,543 |
2.56 |
1.07 |
| configure.yash |
no-host |
1,701 |
1,625 |
2,414 |
1,705 |
1,701 |
1.42 |
1.00 |
| hello-world |
no-host |
1 |
1 |
59 |
3 |
3 |
49.50 |
2.42 |
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,434 |
1,161 |
24,731 |
3,510 |
3,317 |
10.16 |
1.44 |
| bin-true |
no-host |
99,953 |
49,378 |
837,672 |
134,185 |
136,225 |
8.38 |
1.34 |
| configure.cpython |
no-host |
1,625,382 |
1,637,806 |
5,988,276 |
1,804,704 |
1,799,712 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
299,380 |
280,877 |
557,397 |
317,370 |
316,488 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,221 |
4,210 |
23,967 |
5,944 |
5,853 |
4.59 |
1.14 |
| configure.util-linux |
no-host |
1,533,552 |
1,704,542 |
4,990,192 |
1,717,590 |
1,713,632 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,832 |
159,533 |
316,514 |
179,518 |
178,816 |
1.82 |
1.03 |
| hello-world |
no-host |
151 |
85 |
3,877 |
385 |
378 |
25.68 |
2.55 |
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.3 |
6.9 |
3,827 |
3,827 |
0 |
704 |
1,881 |
1,242 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
790 |
1 |
2 |
2.6 |
8.7 |
156,799 |
15,429 |
2,916 |
8,761 |
77,348 |
70,690 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,484 |
1 |
64 |
15.2 |
34.5 |
1,782,990 |
46,102 |
25,357 |
91,622 |
885,112 |
806,256 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,450 |
3 |
58 |
21.4 |
39.6 |
2,707,123 |
126,355 |
66,587 |
113,463 |
1,294,568 |
1,299,092 |
32,539 |
41 |
133,174 |
1 |
| configure.ocaml |
no-host |
3,707 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,477 |
6,520 |
7,819 |
70,840 |
71,215 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.3 |
30,629 |
30,629 |
0 |
1,582 |
14,646 |
14,401 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,705 |
1 |
2 |
2.6 |
33.1 |
140,018 |
8,081 |
6,715 |
6,526 |
68,348 |
65,144 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
28 |
1 |
2 |
2.8 |
9.8 |
116,369 |
64,439 |
42,640 |
4,562 |
54,472 |
57,335 |
277 |
3 |
85,280 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,826 |
3,826 |
0 |
705 |
1,881 |
1,240 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
1 |
2 |
2.6 |
8.3 |
156,798 |
15,424 |
2,911 |
8,762 |
77,348 |
70,688 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,600 |
1 |
62 |
15.2 |
34.5 |
1,782,989 |
46,088 |
25,353 |
91,623 |
885,112 |
806,254 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,543 |
3 |
58 |
21.4 |
39.6 |
2,707,123 |
126,348 |
66,580 |
113,465 |
1,294,568 |
1,299,090 |
32,539 |
41 |
133,160 |
1 |
| configure.ocaml |
no-host |
3,688 |
1 |
2 |
2.7 |
28.7 |
149,874 |
12,471 |
6,514 |
7,821 |
70,840 |
71,213 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.2 |
30,629 |
30,629 |
0 |
1,584 |
14,646 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,701 |
1 |
2 |
2.6 |
33.4 |
140,018 |
8,070 |
6,704 |
6,528 |
68,348 |
65,142 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.3 |
116,368 |
64,434 |
42,635 |
4,563 |
54,472 |
57,333 |
277 |
3 |
85,270 |
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 |
17 |
10 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
538 |
489 |
53 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
28 |
12 |
17 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
10 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
612 |
314 |
334 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
442 |
273 |
175 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,431 |
893 |
1,799 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
790 |
302 |
503 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
799 |
311 |
505 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,790 |
7,385 |
6,772 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,798 |
7,576 |
6,505 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,449 |
16,096 |
15,295 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,484 |
7,302 |
7,455 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,600 |
7,182 |
7,534 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,677 |
1,487 |
1,227 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,587 |
1,432 |
1,177 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,618 |
2,093 |
1,745 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,707 |
1,434 |
1,313 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,688 |
1,450 |
1,278 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
224 |
158 |
69 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
29 |
19 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
24 |
24 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,518 |
6,520 |
6,443 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,195 |
6,293 |
7,374 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,053 |
20,183 |
12,914 |
40.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,450 |
6,223 |
7,449 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,543 |
6,287 |
7,331 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,701 |
973 |
736 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,625 |
915 |
710 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,414 |
1,422 |
1,034 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,705 |
898 |
810 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,701 |
897 |
805 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
59 |
35 |
25 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
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,434 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,731 |
0 |
0 |
0 |
8 |
0 |
45 |
4 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,510 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,317 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,953 |
0 |
0 |
0 |
8 |
0 |
1,990 |
71 |
bash |
| 9 |
no-host |
bin-true |
49,378 |
0 |
0 |
0 |
8 |
0 |
2,990 |
56 |
dash |
| 17 |
no-host |
bin-true |
837,672 |
0 |
0 |
0 |
8 |
0 |
1,995 |
161 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,185 |
0 |
0 |
0 |
16 |
0 |
1,972 |
99 |
osh-native |
| 33 |
no-host |
bin-true |
136,225 |
0 |
0 |
0 |
16 |
0 |
1,977 |
94 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,625,382 |
0 |
0 |
0 |
25,272 |
0 |
14,032 |
1,121 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,806 |
0 |
0 |
0 |
25,272 |
0 |
14,109 |
1,057 |
dash |
| 18 |
no-host |
configure.cpython |
5,988,276 |
0 |
0 |
0 |
25,272 |
0 |
12,882 |
871 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,804,704 |
0 |
0 |
0 |
25,280 |
0 |
12,845 |
1,057 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,799,712 |
0 |
0 |
0 |
25,280 |
0 |
12,847 |
1,035 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,380 |
0 |
0 |
0 |
4,432 |
0 |
2,010 |
191 |
bash |
| 12 |
no-host |
configure.ocaml |
280,877 |
0 |
0 |
0 |
4,432 |
0 |
2,092 |
210 |
dash |
| 20 |
no-host |
configure.ocaml |
557,397 |
0 |
0 |
0 |
4,432 |
0 |
1,921 |
193 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,370 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
204 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,488 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
204 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,221 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,210 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,967 |
0 |
0 |
0 |
88 |
0 |
53 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,944 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,853 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,552 |
1 |
0 |
0 |
35,944 |
0 |
18,980 |
1,037 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,542 |
2 |
0 |
0 |
35,936 |
0 |
17,105 |
1,221 |
dash |
| 19 |
no-host |
configure.util-linux |
4,990,192 |
2 |
0 |
0 |
35,944 |
0 |
17,553 |
960 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,717,590 |
2 |
0 |
0 |
35,944 |
0 |
17,401 |
1,087 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,713,632 |
1 |
0 |
0 |
35,952 |
0 |
17,505 |
1,091 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,832 |
0 |
0 |
0 |
3,616 |
0 |
876 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,533 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
112 |
dash |
| 22 |
no-host |
configure.yash |
316,514 |
0 |
0 |
0 |
3,616 |
0 |
864 |
99 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,518 |
0 |
0 |
0 |
3,624 |
0 |
857 |
99 |
osh-native |
| 38 |
no-host |
configure.yash |
178,816 |
0 |
0 |
0 |
3,624 |
0 |
860 |
103 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,877 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
385 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host