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 |
32.76 |
1.38 |
| bin-true |
no-host |
630 |
462 |
2,505 |
817 |
821 |
3.98 |
1.30 |
| configure.cpython |
no-host |
14,025 |
14,133 |
29,684 |
14,936 |
15,085 |
2.12 |
1.06 |
| configure.ocaml |
no-host |
3,735 |
3,662 |
4,697 |
3,786 |
3,766 |
1.26 |
1.01 |
| configure.tcc |
no-host |
47 |
42 |
224 |
51 |
50 |
4.79 |
1.09 |
| configure.util-linux |
no-host |
12,778 |
13,664 |
32,682 |
13,820 |
13,981 |
2.56 |
1.08 |
| configure.yash |
no-host |
1,759 |
1,682 |
2,465 |
1,762 |
1,747 |
1.40 |
1.00 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
47.64 |
2.31 |
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,422 |
1,162 |
24,703 |
3,465 |
3,342 |
10.20 |
1.43 |
| bin-true |
no-host |
99,901 |
49,435 |
831,595 |
134,282 |
134,241 |
8.32 |
1.34 |
| configure.cpython |
no-host |
1,624,874 |
1,647,489 |
5,937,800 |
1,803,095 |
1,784,997 |
3.65 |
1.11 |
| configure.ocaml |
no-host |
298,446 |
280,978 |
554,888 |
316,204 |
316,127 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,218 |
4,186 |
23,755 |
5,957 |
5,900 |
4.55 |
1.14 |
| configure.util-linux |
no-host |
1,532,730 |
1,698,381 |
4,958,671 |
1,715,400 |
1,711,427 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,627 |
159,483 |
314,995 |
179,098 |
178,754 |
1.81 |
1.03 |
| hello-world |
no-host |
150 |
86 |
3,881 |
387 |
378 |
25.87 |
2.58 |
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,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
817 |
1 |
2 |
2.6 |
8.9 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,936 |
1 |
69 |
15.2 |
34.5 |
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,820 |
3 |
62 |
21.4 |
39.7 |
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,786 |
1 |
2 |
2.7 |
28.8 |
149,872 |
12,476 |
6,519 |
7,819 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
51 |
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,762 |
1 |
2 |
2.6 |
33.2 |
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 |
10.0 |
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.4 |
3,824 |
3,824 |
0 |
705 |
1,880 |
1,239 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
821 |
1 |
2 |
2.6 |
8.1 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,085 |
1 |
65 |
15.2 |
34.4 |
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,981 |
3 |
61 |
21.4 |
39.7 |
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,766 |
1 |
2 |
2.7 |
28.7 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
26.2 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,747 |
1 |
2 |
2.6 |
33.1 |
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 |
7 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
530 |
475 |
58 |
22.5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
630 |
321 |
349 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
462 |
283 |
187 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,505 |
944 |
1,831 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
817 |
320 |
516 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
821 |
288 |
551 |
8.1 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,025 |
7,541 |
6,872 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,133 |
7,597 |
6,942 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
29,684 |
16,281 |
15,368 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,936 |
7,455 |
7,793 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,085 |
7,435 |
7,824 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,735 |
1,514 |
1,261 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,662 |
1,478 |
1,207 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,697 |
2,111 |
1,805 |
28.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,786 |
1,500 |
1,327 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,766 |
1,461 |
1,345 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
22 |
26 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
26 |
16 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
224 |
165 |
63 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
28 |
23 |
26.2 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
24 |
26 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,778 |
6,467 |
6,787 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,664 |
6,488 |
7,679 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
32,682 |
20,359 |
13,407 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,820 |
6,236 |
7,831 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,981 |
6,252 |
7,822 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,759 |
934 |
828 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,682 |
943 |
741 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,465 |
1,467 |
1,042 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,762 |
941 |
823 |
33.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,747 |
956 |
794 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
61 |
38 |
24 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
1 |
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,422 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,162 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,703 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,465 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,342 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,901 |
0 |
0 |
0 |
8 |
0 |
1,970 |
112 |
bash |
| 9 |
no-host |
bin-true |
49,435 |
0 |
0 |
0 |
8 |
0 |
2,977 |
55 |
dash |
| 17 |
no-host |
bin-true |
831,595 |
0 |
0 |
0 |
8 |
0 |
1,977 |
350 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,282 |
0 |
0 |
0 |
16 |
0 |
1,984 |
111 |
osh-native |
| 33 |
no-host |
bin-true |
134,241 |
0 |
0 |
0 |
16 |
0 |
1,976 |
97 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,874 |
1 |
0 |
0 |
25,272 |
0 |
14,055 |
1,353 |
bash |
| 10 |
no-host |
configure.cpython |
1,647,489 |
0 |
0 |
0 |
25,272 |
0 |
14,071 |
1,204 |
dash |
| 18 |
no-host |
configure.cpython |
5,937,800 |
0 |
0 |
0 |
25,272 |
0 |
12,874 |
1,197 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,803,095 |
1 |
0 |
0 |
25,280 |
0 |
12,860 |
1,122 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,784,997 |
0 |
0 |
0 |
25,288 |
0 |
12,841 |
1,226 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,446 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
280,978 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
184 |
dash |
| 20 |
no-host |
configure.ocaml |
554,888 |
0 |
0 |
0 |
4,432 |
0 |
1,914 |
195 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,204 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
214 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,127 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
235 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,218 |
0 |
0 |
0 |
80 |
0 |
49 |
6 |
bash |
| 13 |
no-host |
configure.tcc |
4,186 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,755 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,957 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,900 |
0 |
0 |
0 |
96 |
0 |
47 |
14 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,730 |
1 |
0 |
0 |
35,944 |
0 |
18,926 |
1,183 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,381 |
1 |
0 |
0 |
35,936 |
0 |
17,038 |
1,330 |
dash |
| 19 |
no-host |
configure.util-linux |
4,958,671 |
6 |
0 |
0 |
35,960 |
0 |
17,522 |
1,150 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,715,400 |
2 |
0 |
0 |
35,944 |
0 |
17,534 |
1,124 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,711,427 |
3 |
0 |
0 |
35,944 |
0 |
17,536 |
1,033 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,627 |
0 |
0 |
0 |
3,616 |
0 |
886 |
135 |
bash |
| 14 |
no-host |
configure.yash |
159,483 |
0 |
0 |
0 |
3,616 |
0 |
997 |
128 |
dash |
| 22 |
no-host |
configure.yash |
314,995 |
0 |
0 |
0 |
3,616 |
0 |
860 |
139 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,098 |
0 |
0 |
0 |
3,624 |
0 |
854 |
150 |
osh-native |
| 38 |
no-host |
configure.yash |
178,754 |
0 |
0 |
0 |
3,624 |
0 |
857 |
148 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,881 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
387 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host