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 |
532 |
22 |
21 |
34.06 |
1.38 |
| bin-true |
no-host |
607 |
433 |
2,454 |
813 |
805 |
4.04 |
1.34 |
| configure.cpython |
no-host |
13,792 |
13,837 |
29,493 |
14,682 |
14,825 |
2.14 |
1.06 |
| configure.ocaml |
no-host |
3,656 |
3,619 |
4,660 |
3,715 |
3,715 |
1.27 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
220 |
48 |
48 |
4.79 |
1.06 |
| configure.util-linux |
no-host |
12,560 |
13,281 |
31,997 |
13,556 |
13,697 |
2.55 |
1.08 |
| configure.yash |
no-host |
1,703 |
1,644 |
2,421 |
1,719 |
1,724 |
1.42 |
1.01 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
50.25 |
2.33 |
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,397 |
1,160 |
24,857 |
3,457 |
3,334 |
10.37 |
1.44 |
| bin-true |
no-host |
99,962 |
49,375 |
835,030 |
138,278 |
137,291 |
8.35 |
1.38 |
| configure.cpython |
no-host |
1,633,766 |
1,644,640 |
5,966,730 |
1,812,974 |
1,788,151 |
3.65 |
1.11 |
| configure.ocaml |
no-host |
299,002 |
280,687 |
555,463 |
316,132 |
315,556 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,209 |
4,200 |
23,824 |
5,954 |
5,885 |
4.57 |
1.14 |
| configure.util-linux |
no-host |
1,531,719 |
1,693,684 |
4,964,658 |
1,712,328 |
1,710,276 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,577 |
159,501 |
315,572 |
179,185 |
178,819 |
1.82 |
1.03 |
| hello-world |
no-host |
150 |
85 |
3,872 |
383 |
376 |
25.81 |
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,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,682 |
1 |
65 |
15.2 |
34.4 |
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,556 |
3 |
59 |
21.4 |
39.7 |
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,715 |
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 |
48 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,719 |
1 |
2 |
2.6 |
33.2 |
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.4 |
3,825 |
3,825 |
0 |
705 |
1,881 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
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,825 |
1 |
64 |
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,697 |
3 |
60 |
21.4 |
39.5 |
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,715 |
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 |
48 |
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,724 |
1 |
2 |
2.6 |
33.5 |
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.3 |
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 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
532 |
479 |
57 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
607 |
310 |
334 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
433 |
278 |
161 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,454 |
887 |
1,834 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
813 |
303 |
519 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
805 |
319 |
500 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,792 |
7,450 |
6,715 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,837 |
7,500 |
6,712 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,493 |
16,131 |
15,334 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,682 |
7,309 |
7,663 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,825 |
7,347 |
7,552 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,656 |
1,459 |
1,235 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,619 |
1,446 |
1,183 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,660 |
2,075 |
1,800 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,715 |
1,482 |
1,273 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,715 |
1,495 |
1,258 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
32 |
15 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
158 |
65 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
26 |
23 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,560 |
6,571 |
6,385 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,281 |
6,451 |
7,300 |
39.4 |
dash |
| 19 |
no-host |
configure.util-linux |
31,997 |
19,896 |
13,165 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,556 |
6,343 |
7,436 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,697 |
6,199 |
7,556 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,703 |
978 |
733 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,644 |
942 |
699 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
2,421 |
1,466 |
996 |
33.2 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,719 |
958 |
763 |
33.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,724 |
951 |
775 |
33.5 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
41 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,397 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,160 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,857 |
0 |
0 |
0 |
8 |
0 |
45 |
4 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,457 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,334 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,962 |
0 |
0 |
0 |
8 |
0 |
1,992 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,375 |
0 |
0 |
0 |
8 |
0 |
2,984 |
43 |
dash |
| 17 |
no-host |
bin-true |
835,030 |
0 |
0 |
0 |
8 |
0 |
1,996 |
147 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,278 |
0 |
0 |
0 |
16 |
0 |
1,967 |
97 |
osh-native |
| 33 |
no-host |
bin-true |
137,291 |
0 |
0 |
0 |
16 |
0 |
1,963 |
100 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,633,766 |
0 |
0 |
0 |
25,272 |
0 |
14,023 |
1,055 |
bash |
| 10 |
no-host |
configure.cpython |
1,644,640 |
0 |
0 |
0 |
25,272 |
0 |
14,066 |
1,059 |
dash |
| 18 |
no-host |
configure.cpython |
5,966,730 |
0 |
0 |
0 |
25,272 |
0 |
12,864 |
860 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,812,974 |
0 |
0 |
0 |
25,280 |
0 |
12,864 |
1,051 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,788,151 |
0 |
0 |
0 |
25,280 |
0 |
12,845 |
1,125 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,002 |
0 |
0 |
0 |
4,432 |
0 |
2,007 |
216 |
bash |
| 12 |
no-host |
configure.ocaml |
280,687 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
200 |
dash |
| 20 |
no-host |
configure.ocaml |
555,463 |
0 |
0 |
0 |
4,432 |
0 |
1,906 |
197 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,132 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
195 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,556 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
208 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,209 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,200 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,824 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,954 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,885 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,531,719 |
1 |
0 |
0 |
35,944 |
0 |
18,937 |
1,032 |
bash |
| 11 |
no-host |
configure.util-linux |
1,693,684 |
0 |
0 |
0 |
35,936 |
0 |
17,046 |
1,238 |
dash |
| 19 |
no-host |
configure.util-linux |
4,964,658 |
1 |
0 |
0 |
35,944 |
0 |
17,498 |
901 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,712,328 |
0 |
0 |
0 |
35,952 |
0 |
17,428 |
1,051 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,710,276 |
2 |
0 |
0 |
35,952 |
0 |
17,509 |
1,103 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,577 |
0 |
0 |
0 |
3,616 |
0 |
874 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,501 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
96 |
dash |
| 22 |
no-host |
configure.yash |
315,572 |
0 |
0 |
0 |
3,616 |
0 |
860 |
107 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,185 |
0 |
0 |
0 |
3,624 |
0 |
856 |
96 |
osh-native |
| 38 |
no-host |
configure.yash |
178,819 |
0 |
0 |
0 |
3,624 |
0 |
857 |
94 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
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,872 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
383 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
376 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host