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 |
15 |
9 |
538 |
21 |
20 |
34.83 |
1.37 |
| bin-true |
no-host |
614 |
433 |
2,444 |
799 |
791 |
3.98 |
1.30 |
| configure.cpython |
no-host |
14,188 |
13,951 |
29,368 |
14,506 |
14,838 |
2.07 |
1.02 |
| configure.ocaml |
no-host |
3,675 |
3,693 |
4,666 |
3,685 |
3,677 |
1.27 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
219 |
49 |
48 |
4.80 |
1.06 |
| configure.util-linux |
no-host |
12,657 |
13,659 |
32,267 |
13,540 |
13,523 |
2.55 |
1.07 |
| configure.yash |
no-host |
1,731 |
1,646 |
2,410 |
1,701 |
1,699 |
1.39 |
0.98 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
48.48 |
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,387 |
1,156 |
24,870 |
3,476 |
3,383 |
10.42 |
1.46 |
| bin-true |
no-host |
99,921 |
49,374 |
835,085 |
136,296 |
134,281 |
8.36 |
1.36 |
| configure.cpython |
no-host |
1,615,475 |
1,640,193 |
5,951,185 |
1,803,089 |
1,796,779 |
3.68 |
1.12 |
| configure.ocaml |
no-host |
298,694 |
280,603 |
556,151 |
316,250 |
315,382 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,221 |
4,214 |
23,750 |
5,929 |
5,910 |
4.55 |
1.14 |
| configure.util-linux |
no-host |
1,532,221 |
1,693,035 |
4,966,353 |
1,720,874 |
1,707,947 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,505 |
159,572 |
315,157 |
179,335 |
179,324 |
1.82 |
1.03 |
| hello-world |
no-host |
153 |
86 |
3,873 |
386 |
378 |
25.31 |
2.52 |
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 |
799 |
1 |
2 |
2.6 |
8.7 |
156,798 |
15,428 |
2,915 |
8,761 |
77,348 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,506 |
1 |
65 |
15.2 |
34.5 |
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,540 |
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,685 |
1 |
2 |
2.7 |
28.6 |
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.1 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,701 |
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 |
21 |
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 |
791 |
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,838 |
2 |
65 |
15.2 |
34.5 |
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,523 |
3 |
58 |
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,677 |
1 |
2 |
2.7 |
28.6 |
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.3 |
30,628 |
30,628 |
0 |
1,584 |
14,646 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,699 |
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 |
20 |
1 |
2 |
2.8 |
9.0 |
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 |
15 |
8 |
8 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
538 |
473 |
69 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
14 |
7 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
614 |
309 |
342 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
433 |
284 |
156 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,444 |
894 |
1,819 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
799 |
320 |
494 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
791 |
309 |
499 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,188 |
7,764 |
6,804 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,951 |
7,619 |
6,726 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,368 |
16,169 |
15,131 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,506 |
7,348 |
7,454 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,838 |
7,445 |
7,441 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,675 |
1,447 |
1,266 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,693 |
1,469 |
1,246 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,666 |
2,115 |
1,765 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,685 |
1,462 |
1,259 |
28.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,677 |
1,422 |
1,293 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
150 |
73 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
30 |
20 |
26.1 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
26 |
23 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,657 |
6,561 |
6,525 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,659 |
6,565 |
7,578 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,267 |
20,231 |
13,116 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,540 |
6,311 |
7,456 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,523 |
6,226 |
7,370 |
39.9 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,731 |
942 |
797 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,646 |
948 |
699 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,410 |
1,438 |
1,013 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,701 |
953 |
750 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,699 |
940 |
763 |
33.4 |
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 |
23 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
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,387 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,870 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,476 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,383 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
99,921 |
0 |
0 |
0 |
8 |
0 |
1,989 |
70 |
bash |
| 9 |
no-host |
bin-true |
49,374 |
0 |
0 |
0 |
8 |
0 |
2,990 |
39 |
dash |
| 17 |
no-host |
bin-true |
835,085 |
0 |
0 |
0 |
8 |
0 |
1,988 |
164 |
osh-cpython |
| 25 |
no-host |
bin-true |
136,296 |
0 |
0 |
0 |
16 |
0 |
1,949 |
107 |
osh-native |
| 33 |
no-host |
bin-true |
134,281 |
0 |
0 |
0 |
16 |
0 |
1,978 |
101 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,615,475 |
0 |
0 |
0 |
25,272 |
0 |
14,011 |
1,030 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,193 |
0 |
0 |
0 |
25,272 |
0 |
14,047 |
1,110 |
dash |
| 18 |
no-host |
configure.cpython |
5,951,185 |
0 |
0 |
0 |
25,272 |
0 |
12,876 |
939 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,803,089 |
0 |
0 |
0 |
25,280 |
0 |
12,842 |
1,006 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,796,779 |
0 |
0 |
0 |
25,280 |
0 |
12,840 |
1,070 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,694 |
0 |
0 |
0 |
4,432 |
0 |
2,012 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,603 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
194 |
dash |
| 20 |
no-host |
configure.ocaml |
556,151 |
0 |
0 |
0 |
4,432 |
0 |
1,914 |
191 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,250 |
0 |
0 |
0 |
4,440 |
0 |
1,991 |
231 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,382 |
0 |
0 |
0 |
4,440 |
0 |
1,991 |
219 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,221 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,214 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,750 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,929 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,910 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,532,221 |
0 |
0 |
0 |
35,944 |
0 |
18,939 |
1,024 |
bash |
| 11 |
no-host |
configure.util-linux |
1,693,035 |
0 |
0 |
0 |
35,936 |
0 |
17,068 |
1,212 |
dash |
| 19 |
no-host |
configure.util-linux |
4,966,353 |
1 |
0 |
0 |
35,960 |
0 |
17,504 |
905 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,720,874 |
4 |
0 |
0 |
35,944 |
0 |
17,512 |
1,212 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,707,947 |
0 |
0 |
0 |
35,944 |
0 |
17,402 |
1,036 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,505 |
0 |
0 |
0 |
3,616 |
0 |
875 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,572 |
0 |
0 |
0 |
3,616 |
0 |
998 |
100 |
dash |
| 22 |
no-host |
configure.yash |
315,157 |
0 |
0 |
0 |
3,616 |
0 |
864 |
110 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,335 |
0 |
0 |
0 |
3,624 |
0 |
854 |
100 |
osh-native |
| 38 |
no-host |
configure.yash |
179,324 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
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,873 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
386 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
378 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host