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 |
8 |
387 |
20 |
19 |
23.32 |
1.22 |
| bin-true |
no-host |
507 |
483 |
1,990 |
640 |
735 |
3.93 |
1.26 |
| configure.cpython |
no-host |
11,768 |
12,059 |
26,168 |
11,860 |
12,679 |
2.22 |
1.01 |
| configure.ocaml |
no-host |
3,438 |
3,185 |
3,935 |
3,752 |
3,842 |
1.14 |
1.09 |
| configure.tcc |
no-host |
42 |
32 |
159 |
39 |
40 |
3.77 |
0.93 |
| configure.util-linux |
no-host |
10,981 |
12,257 |
25,717 |
10,611 |
12,530 |
2.34 |
0.97 |
| configure.yash |
no-host |
1,705 |
1,354 |
2,022 |
1,815 |
1,912 |
1.19 |
1.06 |
| hello-world |
no-host |
1 |
1 |
42 |
2 |
2 |
39.09 |
2.04 |
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,576 |
1,113 |
25,195 |
3,188 |
3,130 |
9.78 |
1.24 |
| bin-true |
no-host |
107,364 |
66,428 |
809,397 |
129,985 |
128,980 |
7.54 |
1.21 |
| configure.cpython |
no-host |
2,231,067 |
2,243,508 |
6,337,189 |
2,240,625 |
2,226,011 |
2.84 |
1.00 |
| configure.ocaml |
no-host |
410,593 |
391,494 |
654,199 |
414,756 |
414,383 |
1.59 |
1.01 |
| configure.tcc |
no-host |
6,528 |
5,483 |
24,501 |
7,014 |
6,967 |
3.75 |
1.07 |
| configure.util-linux |
no-host |
2,105,546 |
2,256,580 |
5,487,970 |
2,012,273 |
1,997,207 |
2.61 |
0.96 |
| configure.yash |
no-host |
257,080 |
244,306 |
393,107 |
258,221 |
258,502 |
1.53 |
1.00 |
| hello-world |
no-host |
155 |
82 |
3,985 |
346 |
344 |
25.71 |
2.23 |
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 |
2 |
0 |
0 |
0.3 |
6.4 |
3,817 |
3,817 |
0 |
702 |
1,878 |
1,237 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
640 |
1 |
2 |
2.6 |
8.4 |
156,784 |
15,421 |
2,908 |
8,754 |
77,345 |
70,685 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,860 |
2 |
64 |
15.5 |
27.5 |
1,785,025 |
30,567 |
28,534 |
91,507 |
886,582 |
806,936 |
25,736 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,611 |
2 |
57 |
21.6 |
30.3 |
2,709,224 |
53,768 |
65,732 |
114,374 |
1,295,044 |
1,299,806 |
32,241 |
41 |
131,464 |
1 |
| configure.ocaml |
no-host |
3,752 |
1 |
2 |
2.6 |
20.7 |
149,871 |
11,186 |
5,229 |
7,735 |
70,882 |
71,254 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
39 |
0 |
0 |
1.3 |
19.5 |
30,587 |
30,587 |
0 |
1,544 |
14,644 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,815 |
1 |
2 |
2.6 |
24.6 |
139,893 |
8,052 |
6,707 |
6,399 |
68,347 |
65,147 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
9.2 |
116,347 |
64,424 |
42,632 |
4,545 |
54,469 |
57,333 |
277 |
3 |
85,264 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
6.0 |
3,816 |
3,816 |
0 |
703 |
1,878 |
1,235 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
735 |
1 |
2 |
2.6 |
7.9 |
156,783 |
15,416 |
2,903 |
8,755 |
77,345 |
70,683 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,679 |
2 |
70 |
15.5 |
27.6 |
1,785,024 |
30,553 |
28,528 |
91,508 |
886,582 |
806,934 |
25,736 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,530 |
4 |
74 |
21.6 |
30.3 |
2,709,224 |
53,743 |
65,705 |
114,376 |
1,295,044 |
1,299,804 |
32,241 |
41 |
131,410 |
1 |
| configure.ocaml |
no-host |
3,842 |
1 |
2 |
2.6 |
20.7 |
149,871 |
11,180 |
5,223 |
7,737 |
70,882 |
71,252 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
40 |
0 |
0 |
1.3 |
19.6 |
30,587 |
30,587 |
0 |
1,546 |
14,644 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,912 |
1 |
3 |
2.6 |
24.5 |
139,893 |
8,041 |
6,696 |
6,401 |
68,347 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
0 |
2 |
2.8 |
8.7 |
116,346 |
64,419 |
42,627 |
4,546 |
54,469 |
57,331 |
277 |
3 |
85,254 |
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 |
13 |
4 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
8 |
7 |
1 |
3.7 |
dash |
| 23 |
no-host |
abuild-print-help |
387 |
353 |
37 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
20 |
15 |
6 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
19 |
11 |
8 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
507 |
391 |
137 |
3.0 |
bash |
| 9 |
no-host |
bin-true |
483 |
376 |
109 |
1.5 |
dash |
| 17 |
no-host |
bin-true |
1,990 |
1,126 |
1,096 |
18.8 |
osh-cpython |
| 25 |
no-host |
bin-true |
640 |
456 |
192 |
8.4 |
osh-native |
| 33 |
no-host |
bin-true |
735 |
494 |
249 |
7.9 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
11,768 |
7,548 |
4,517 |
27.5 |
bash |
| 10 |
no-host |
configure.cpython |
12,059 |
7,883 |
4,480 |
27.6 |
dash |
| 18 |
no-host |
configure.cpython |
26,168 |
15,709 |
12,368 |
27.6 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
11,860 |
7,523 |
4,543 |
27.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
12,679 |
7,894 |
5,038 |
27.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,438 |
1,522 |
944 |
20.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,185 |
1,361 |
835 |
20.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,935 |
1,942 |
1,151 |
20.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,752 |
1,640 |
1,151 |
20.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,842 |
1,667 |
1,218 |
20.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
42 |
19 |
23 |
19.5 |
bash |
| 13 |
no-host |
configure.tcc |
32 |
17 |
16 |
19.5 |
dash |
| 21 |
no-host |
configure.tcc |
159 |
113 |
49 |
19.5 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
39 |
27 |
13 |
19.5 |
osh-native |
| 37 |
no-host |
configure.tcc |
40 |
20 |
20 |
19.6 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
10,981 |
7,381 |
3,939 |
30.2 |
bash |
| 11 |
no-host |
configure.util-linux |
12,257 |
7,856 |
4,755 |
30.3 |
dash |
| 19 |
no-host |
configure.util-linux |
25,717 |
17,131 |
9,513 |
30.4 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
10,611 |
7,021 |
3,750 |
30.3 |
osh-native |
| 35 |
no-host |
configure.util-linux |
12,530 |
7,670 |
5,013 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,705 |
1,113 |
600 |
24.5 |
bash |
| 14 |
no-host |
configure.yash |
1,354 |
801 |
554 |
24.5 |
dash |
| 22 |
no-host |
configure.yash |
2,022 |
1,228 |
832 |
24.5 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,815 |
1,053 |
766 |
24.6 |
osh-native |
| 38 |
no-host |
configure.yash |
1,912 |
1,163 |
752 |
24.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
42 |
29 |
12 |
18.6 |
osh-cpython |
| 24 |
no-host |
hello-world |
2 |
2 |
0 |
6.4 |
osh-native |
| 32 |
no-host |
hello-world |
2 |
2 |
0 |
6.0 |
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,576 |
2 |
0 |
88 |
16 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,113 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
25,195 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,188 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,130 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
107,364 |
2 |
0 |
72 |
8 |
0 |
2,002 |
50 |
bash |
| 9 |
no-host |
bin-true |
66,428 |
0 |
0 |
0 |
8 |
0 |
1,996 |
58 |
dash |
| 17 |
no-host |
bin-true |
809,397 |
0 |
0 |
0 |
8 |
0 |
2,008 |
225 |
osh-cpython |
| 25 |
no-host |
bin-true |
129,985 |
0 |
0 |
0 |
16 |
0 |
2,000 |
54 |
osh-native |
| 33 |
no-host |
bin-true |
128,980 |
0 |
0 |
0 |
16 |
0 |
2,000 |
55 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
2,231,067 |
28 |
0 |
3,272 |
32,928 |
0 |
15,508 |
2,144 |
bash |
| 10 |
no-host |
configure.cpython |
2,243,508 |
0 |
0 |
0 |
32,992 |
0 |
14,166 |
1,479 |
dash |
| 18 |
no-host |
configure.cpython |
6,337,189 |
0 |
0 |
0 |
27,512 |
0 |
13,334 |
2,100 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,240,625 |
0 |
0 |
0 |
27,520 |
0 |
13,171 |
1,305 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,226,011 |
0 |
0 |
0 |
27,520 |
0 |
13,046 |
1,444 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
410,593 |
2 |
0 |
256 |
5,120 |
0 |
1,924 |
260 |
bash |
| 12 |
no-host |
configure.ocaml |
391,494 |
0 |
0 |
0 |
5,112 |
0 |
1,920 |
219 |
dash |
| 20 |
no-host |
configure.ocaml |
654,199 |
0 |
0 |
0 |
5,112 |
0 |
1,866 |
247 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
414,756 |
0 |
0 |
0 |
5,120 |
0 |
1,877 |
268 |
osh-native |
| 36 |
no-host |
configure.ocaml |
414,383 |
0 |
0 |
0 |
5,120 |
0 |
1,886 |
271 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,528 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
5,483 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
24,501 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
7,014 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,967 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
2,105,546 |
22 |
0 |
4,320 |
42,400 |
0 |
18,485 |
1,692 |
bash |
| 11 |
no-host |
configure.util-linux |
2,256,580 |
0 |
0 |
0 |
42,584 |
0 |
17,226 |
1,671 |
dash |
| 19 |
no-host |
configure.util-linux |
5,487,970 |
1 |
0 |
0 |
39,120 |
0 |
17,022 |
1,845 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
2,012,273 |
11 |
0 |
0 |
39,120 |
0 |
17,174 |
1,206 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,997,207 |
0 |
0 |
0 |
39,136 |
0 |
16,995 |
1,314 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
257,080 |
3 |
0 |
384 |
4,120 |
0 |
876 |
73 |
bash |
| 14 |
no-host |
configure.yash |
244,306 |
0 |
0 |
0 |
3,728 |
0 |
871 |
73 |
dash |
| 22 |
no-host |
configure.yash |
393,107 |
0 |
0 |
0 |
3,728 |
0 |
855 |
98 |
osh-cpython |
| 30 |
no-host |
configure.yash |
258,221 |
0 |
0 |
0 |
3,736 |
0 |
851 |
83 |
osh-native |
| 38 |
no-host |
configure.yash |
258,502 |
0 |
0 |
0 |
3,736 |
0 |
851 |
103 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
155 |
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,985 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
| 24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host