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 |
530 |
22 |
21 |
33.42 |
1.38 |
| bin-true |
no-host |
659 |
457 |
2,492 |
817 |
816 |
3.78 |
1.24 |
| configure.cpython |
no-host |
14,223 |
14,024 |
30,062 |
15,006 |
14,887 |
2.11 |
1.06 |
| configure.ocaml |
no-host |
3,734 |
3,681 |
4,751 |
3,788 |
3,751 |
1.27 |
1.01 |
| configure.tcc |
no-host |
46 |
42 |
222 |
50 |
48 |
4.78 |
1.07 |
| configure.util-linux |
no-host |
12,808 |
13,687 |
32,720 |
13,990 |
13,829 |
2.55 |
1.09 |
| configure.yash |
no-host |
1,735 |
1,683 |
2,519 |
1,736 |
1,746 |
1.45 |
1.00 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
46.78 |
2.22 |
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,403 |
1,173 |
24,727 |
3,472 |
3,381 |
10.29 |
1.44 |
| bin-true |
no-host |
100,933 |
49,389 |
829,544 |
133,251 |
133,327 |
8.22 |
1.32 |
| configure.cpython |
no-host |
1,627,167 |
1,640,840 |
5,939,240 |
1,808,798 |
1,789,354 |
3.65 |
1.11 |
| configure.ocaml |
no-host |
299,114 |
281,194 |
554,153 |
317,267 |
316,597 |
1.85 |
1.06 |
| configure.tcc |
no-host |
5,223 |
4,212 |
23,748 |
5,999 |
5,874 |
4.55 |
1.15 |
| configure.util-linux |
no-host |
1,536,407 |
1,699,255 |
4,959,700 |
1,712,504 |
1,704,077 |
3.23 |
1.11 |
| configure.yash |
no-host |
173,471 |
159,536 |
314,883 |
179,668 |
179,268 |
1.82 |
1.04 |
| hello-world |
no-host |
154 |
83 |
3,872 |
384 |
377 |
25.14 |
2.49 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
817 |
1 |
2 |
2.6 |
8.7 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,006 |
1 |
69 |
15.2 |
34.7 |
1,782,988 |
46,101 |
25,356 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,990 |
3 |
64 |
21.4 |
39.6 |
2,707,121 |
126,354 |
66,586 |
113,463 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,788 |
1 |
2 |
2.7 |
28.6 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.2 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,736 |
1 |
2 |
2.6 |
33.4 |
140,016 |
8,080 |
6,714 |
6,526 |
68,347 |
65,143 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.7 |
116,367 |
64,438 |
42,639 |
4,562 |
54,471 |
57,334 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.3 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
816 |
1 |
2 |
2.6 |
8.3 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,887 |
1 |
64 |
15.2 |
34.5 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,829 |
3 |
59 |
21.4 |
39.9 |
2,707,121 |
126,347 |
66,579 |
113,465 |
1,294,567 |
1,299,089 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,751 |
1 |
2 |
2.7 |
28.8 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.1 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,746 |
1 |
2 |
2.6 |
33.4 |
140,016 |
8,069 |
6,703 |
6,528 |
68,347 |
65,141 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
9.0 |
116,366 |
64,433 |
42,634 |
4,563 |
54,471 |
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 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
530 |
470 |
64 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.7 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
659 |
313 |
383 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
457 |
285 |
178 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,492 |
879 |
1,881 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
817 |
301 |
536 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
816 |
306 |
526 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,223 |
7,570 |
7,052 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,024 |
7,517 |
6,913 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
30,062 |
16,339 |
15,727 |
34.3 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,006 |
7,426 |
7,890 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,887 |
7,270 |
7,734 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,734 |
1,463 |
1,311 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,681 |
1,501 |
1,204 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,751 |
2,117 |
1,859 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,788 |
1,473 |
1,357 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,751 |
1,459 |
1,332 |
28.8 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
19 |
28 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
222 |
155 |
71 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
25 |
25 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
24 |
25 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,808 |
6,454 |
6,821 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,687 |
6,517 |
7,674 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
32,720 |
20,334 |
13,470 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,990 |
6,410 |
7,826 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,829 |
6,210 |
7,693 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,735 |
954 |
790 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,683 |
937 |
747 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,519 |
1,501 |
1,062 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,736 |
946 |
793 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,746 |
962 |
787 |
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.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
48 |
13 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
6.3 |
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,403 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,173 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,727 |
0 |
0 |
0 |
8 |
0 |
45 |
3 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,472 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,381 |
0 |
0 |
0 |
16 |
0 |
38 |
3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,933 |
0 |
0 |
0 |
8 |
0 |
1,979 |
95 |
bash |
| 9 |
no-host |
bin-true |
49,389 |
0 |
0 |
0 |
8 |
0 |
2,974 |
64 |
dash |
| 17 |
no-host |
bin-true |
829,544 |
0 |
0 |
0 |
8 |
0 |
1,992 |
391 |
osh-cpython |
| 25 |
no-host |
bin-true |
133,251 |
0 |
0 |
0 |
16 |
0 |
1,986 |
154 |
osh-native |
| 33 |
no-host |
bin-true |
133,327 |
0 |
0 |
0 |
16 |
0 |
1,966 |
103 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,627,167 |
1 |
0 |
0 |
25,272 |
0 |
14,063 |
1,273 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,840 |
1 |
0 |
0 |
25,272 |
0 |
14,062 |
1,237 |
dash |
| 18 |
no-host |
configure.cpython |
5,939,240 |
1 |
0 |
0 |
25,272 |
0 |
12,865 |
1,127 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,808,798 |
0 |
0 |
0 |
25,280 |
0 |
12,863 |
1,319 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,789,354 |
0 |
0 |
0 |
25,280 |
0 |
12,869 |
1,092 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,114 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
244 |
bash |
| 12 |
no-host |
configure.ocaml |
281,194 |
0 |
0 |
0 |
4,432 |
0 |
2,103 |
208 |
dash |
| 20 |
no-host |
configure.ocaml |
554,153 |
0 |
0 |
0 |
4,456 |
0 |
1,910 |
229 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,267 |
0 |
0 |
0 |
4,440 |
0 |
1,993 |
206 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,597 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
226 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,223 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,212 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
23,748 |
0 |
0 |
0 |
88 |
0 |
53 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,999 |
0 |
0 |
0 |
96 |
0 |
47 |
6 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,874 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,536,407 |
0 |
0 |
0 |
35,944 |
0 |
18,941 |
1,234 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,255 |
0 |
0 |
0 |
35,936 |
0 |
16,997 |
1,266 |
dash |
| 19 |
no-host |
configure.util-linux |
4,959,700 |
0 |
0 |
0 |
35,944 |
0 |
17,549 |
1,090 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,712,504 |
2 |
0 |
0 |
35,944 |
0 |
17,541 |
1,036 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,704,077 |
1 |
0 |
0 |
35,944 |
0 |
17,470 |
1,102 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,471 |
0 |
0 |
0 |
3,616 |
0 |
877 |
145 |
bash |
| 14 |
no-host |
configure.yash |
159,536 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
129 |
dash |
| 22 |
no-host |
configure.yash |
314,883 |
0 |
0 |
0 |
3,616 |
0 |
861 |
121 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,668 |
0 |
0 |
0 |
3,624 |
0 |
856 |
127 |
osh-native |
| 38 |
no-host |
configure.yash |
179,268 |
0 |
0 |
0 |
3,624 |
0 |
860 |
180 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,872 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
384 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
377 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host