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 |
16 |
9 |
524 |
22 |
21 |
32.95 |
1.37 |
| bin-true |
no-host |
633 |
450 |
2,491 |
823 |
822 |
3.93 |
1.30 |
| configure.cpython |
no-host |
13,889 |
13,877 |
29,307 |
14,613 |
14,853 |
2.11 |
1.05 |
| configure.ocaml |
no-host |
3,676 |
3,620 |
4,628 |
3,744 |
3,803 |
1.26 |
1.02 |
| configure.tcc |
no-host |
46 |
42 |
220 |
49 |
49 |
4.74 |
1.07 |
| configure.util-linux |
no-host |
12,597 |
13,402 |
32,109 |
13,665 |
13,852 |
2.55 |
1.08 |
| configure.yash |
no-host |
1,695 |
1,641 |
2,417 |
1,769 |
1,730 |
1.43 |
1.04 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
47.41 |
2.69 |
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,436 |
1,177 |
24,879 |
3,447 |
3,311 |
10.21 |
1.42 |
| bin-true |
no-host |
100,910 |
49,425 |
837,025 |
136,325 |
135,277 |
8.29 |
1.35 |
| configure.cpython |
no-host |
1,620,799 |
1,638,185 |
5,953,555 |
1,803,764 |
1,777,253 |
3.67 |
1.11 |
| configure.ocaml |
no-host |
298,889 |
280,423 |
557,127 |
317,671 |
316,101 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,236 |
4,221 |
23,770 |
5,913 |
5,878 |
4.54 |
1.13 |
| configure.util-linux |
no-host |
1,531,457 |
1,695,131 |
4,965,288 |
1,722,794 |
1,705,566 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,310 |
159,447 |
314,979 |
179,071 |
179,052 |
1.82 |
1.03 |
| hello-world |
no-host |
152 |
86 |
3,872 |
388 |
379 |
25.47 |
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 |
7.1 |
3,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
823 |
1 |
2 |
2.6 |
8.9 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,613 |
1 |
64 |
15.2 |
34.7 |
1,782,989 |
46,101 |
25,356 |
91,622 |
885,112 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,665 |
3 |
60 |
21.4 |
39.5 |
2,707,122 |
126,354 |
66,586 |
113,463 |
1,294,568 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,744 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,769 |
1 |
2 |
2.6 |
33.3 |
140,017 |
8,080 |
6,714 |
6,526 |
68,348 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.8 |
116,368 |
64,438 |
42,639 |
4,562 |
54,472 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.6 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
822 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,853 |
1 |
65 |
15.2 |
34.7 |
1,782,988 |
46,087 |
25,352 |
91,623 |
885,112 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,852 |
3 |
59 |
21.4 |
39.9 |
2,707,122 |
126,347 |
66,579 |
113,465 |
1,294,568 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,803 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,470 |
6,513 |
7,821 |
70,840 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.2 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,730 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,069 |
6,703 |
6,528 |
68,348 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.2 |
116,367 |
64,433 |
42,634 |
4,563 |
54,472 |
57,332 |
277 |
3 |
85,268 |
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 |
16 |
8 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
524 |
466 |
62 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
13 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
8 |
13 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
633 |
318 |
356 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
450 |
278 |
178 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,491 |
931 |
1,823 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
823 |
325 |
515 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
822 |
292 |
546 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,889 |
7,493 |
6,779 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,877 |
7,457 |
6,808 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
29,307 |
15,952 |
15,296 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,613 |
7,248 |
7,665 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,853 |
7,343 |
7,659 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,676 |
1,430 |
1,286 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,620 |
1,415 |
1,227 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,628 |
2,097 |
1,751 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,744 |
1,491 |
1,296 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,803 |
1,463 |
1,381 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
19 |
28 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
22 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
153 |
71 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
25 |
24 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
19 |
30 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,597 |
6,410 |
6,659 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,402 |
6,401 |
7,500 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,109 |
20,035 |
13,141 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,665 |
6,188 |
7,717 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,852 |
6,208 |
7,730 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,695 |
951 |
752 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,641 |
929 |
714 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,417 |
1,437 |
1,021 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,769 |
971 |
798 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,730 |
922 |
810 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
60 |
43 |
17 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
3 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
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,436 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,177 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,879 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,447 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,311 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,910 |
0 |
0 |
0 |
8 |
0 |
1,970 |
111 |
bash |
| 9 |
no-host |
bin-true |
49,425 |
0 |
0 |
0 |
8 |
0 |
2,968 |
63 |
dash |
| 17 |
no-host |
bin-true |
837,025 |
0 |
0 |
0 |
8 |
0 |
1,980 |
271 |
osh-cpython |
| 25 |
no-host |
bin-true |
136,325 |
0 |
0 |
0 |
16 |
0 |
1,973 |
156 |
osh-native |
| 33 |
no-host |
bin-true |
135,277 |
0 |
0 |
0 |
16 |
0 |
1,965 |
163 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,620,799 |
0 |
0 |
0 |
25,272 |
0 |
14,042 |
1,258 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,185 |
0 |
0 |
0 |
25,272 |
0 |
14,086 |
1,174 |
dash |
| 18 |
no-host |
configure.cpython |
5,953,555 |
0 |
0 |
0 |
25,272 |
0 |
12,883 |
1,220 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,803,764 |
0 |
0 |
0 |
25,280 |
0 |
12,894 |
1,328 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,777,253 |
0 |
0 |
0 |
25,280 |
0 |
12,866 |
1,128 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,889 |
0 |
0 |
0 |
4,432 |
0 |
2,010 |
250 |
bash |
| 12 |
no-host |
configure.ocaml |
280,423 |
0 |
0 |
0 |
4,432 |
0 |
2,094 |
227 |
dash |
| 20 |
no-host |
configure.ocaml |
557,127 |
0 |
0 |
0 |
4,432 |
0 |
1,919 |
193 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,671 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
188 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,101 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
219 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,236 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,221 |
0 |
0 |
0 |
88 |
0 |
51 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,770 |
0 |
0 |
0 |
88 |
0 |
52 |
7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,913 |
0 |
0 |
0 |
96 |
0 |
46 |
5 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,878 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,531,457 |
0 |
0 |
0 |
35,944 |
0 |
18,941 |
1,322 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,131 |
1 |
0 |
0 |
35,936 |
0 |
16,959 |
1,398 |
dash |
| 19 |
no-host |
configure.util-linux |
4,965,288 |
4 |
0 |
0 |
35,944 |
0 |
17,528 |
1,187 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,722,794 |
3 |
0 |
0 |
35,944 |
0 |
17,561 |
1,116 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,705,566 |
1 |
0 |
0 |
35,944 |
0 |
17,542 |
1,077 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,310 |
0 |
0 |
0 |
3,616 |
0 |
876 |
142 |
bash |
| 14 |
no-host |
configure.yash |
159,447 |
0 |
0 |
0 |
3,624 |
0 |
994 |
137 |
dash |
| 22 |
no-host |
configure.yash |
314,979 |
0 |
0 |
0 |
3,616 |
0 |
864 |
180 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,071 |
0 |
0 |
0 |
3,624 |
0 |
859 |
151 |
osh-native |
| 38 |
no-host |
configure.yash |
179,052 |
0 |
0 |
0 |
3,624 |
0 |
855 |
138 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
0 |
1 |
dash |
| 16 |
no-host |
hello-world |
3,872 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
388 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
379 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host