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 |
536 |
22 |
21 |
34.15 |
1.38 |
| bin-true |
no-host |
626 |
438 |
2,477 |
806 |
786 |
3.96 |
1.29 |
| configure.cpython |
no-host |
14,185 |
13,882 |
29,703 |
14,727 |
14,785 |
2.09 |
1.04 |
| configure.ocaml |
no-host |
3,646 |
3,665 |
4,672 |
3,731 |
3,730 |
1.28 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
223 |
49 |
48 |
4.84 |
1.05 |
| configure.util-linux |
no-host |
12,473 |
13,483 |
32,424 |
13,605 |
13,700 |
2.60 |
1.09 |
| configure.yash |
no-host |
1,732 |
1,667 |
2,443 |
1,724 |
1,759 |
1.41 |
1.00 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
48.62 |
2.34 |
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,408 |
1,173 |
24,628 |
3,414 |
3,381 |
10.23 |
1.42 |
| bin-true |
no-host |
101,914 |
49,368 |
833,663 |
138,326 |
132,301 |
8.18 |
1.36 |
| configure.cpython |
no-host |
1,622,893 |
1,636,285 |
5,995,506 |
1,817,505 |
1,769,634 |
3.69 |
1.12 |
| configure.ocaml |
no-host |
298,728 |
280,632 |
556,881 |
317,512 |
315,314 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,208 |
4,195 |
23,876 |
5,968 |
5,862 |
4.58 |
1.15 |
| configure.util-linux |
no-host |
1,533,785 |
1,697,678 |
4,990,363 |
1,722,605 |
1,708,852 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,668 |
159,537 |
316,646 |
179,633 |
179,062 |
1.82 |
1.03 |
| hello-world |
no-host |
153 |
82 |
3,900 |
384 |
376 |
25.49 |
2.51 |
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.8 |
3,826 |
3,826 |
0 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
2.6 |
8.9 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,727 |
1 |
66 |
15.2 |
34.7 |
1,782,989 |
46,101 |
25,356 |
91,621 |
885,111 |
806,257 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,605 |
3 |
60 |
21.4 |
39.7 |
2,707,122 |
126,354 |
66,586 |
113,462 |
1,294,567 |
1,299,093 |
32,539 |
41 |
133,172 |
1 |
| configure.ocaml |
no-host |
3,731 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,476 |
6,519 |
7,818 |
70,839 |
71,216 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,581 |
14,645 |
14,402 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,724 |
1 |
2 |
2.6 |
33.5 |
140,017 |
8,080 |
6,714 |
6,525 |
68,347 |
65,145 |
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,561 |
54,471 |
57,336 |
277 |
3 |
85,278 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.4 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
786 |
1 |
2 |
2.6 |
8.3 |
156,797 |
15,423 |
2,910 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,785 |
1 |
67 |
15.2 |
34.3 |
1,782,988 |
46,087 |
25,352 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,700 |
3 |
62 |
21.4 |
39.6 |
2,707,122 |
126,347 |
66,579 |
113,464 |
1,294,567 |
1,299,091 |
32,539 |
41 |
133,158 |
1 |
| configure.ocaml |
no-host |
3,730 |
1 |
2 |
2.7 |
28.7 |
149,873 |
12,470 |
6,513 |
7,820 |
70,839 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.1 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,759 |
1 |
2 |
2.6 |
33.4 |
140,017 |
8,069 |
6,703 |
6,527 |
68,347 |
65,143 |
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,562 |
54,471 |
57,334 |
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 |
5 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
536 |
471 |
69 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
626 |
308 |
357 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
271 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,477 |
917 |
1,833 |
18.3 |
osh-cpython |
| 25 |
no-host |
bin-true |
806 |
315 |
507 |
8.9 |
osh-native |
| 33 |
no-host |
bin-true |
786 |
309 |
495 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,185 |
7,655 |
6,900 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,882 |
7,541 |
6,735 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,703 |
16,396 |
15,308 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,727 |
7,421 |
7,607 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,785 |
7,366 |
7,515 |
34.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,646 |
1,460 |
1,223 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,665 |
1,452 |
1,235 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
4,672 |
2,104 |
1,793 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,731 |
1,470 |
1,302 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,730 |
1,481 |
1,287 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
22 |
25 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
223 |
156 |
71 |
25.9 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
23 |
25 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,473 |
6,486 |
6,441 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,483 |
6,445 |
7,530 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
32,424 |
20,348 |
13,177 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,605 |
6,325 |
7,511 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,700 |
6,305 |
7,470 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,732 |
954 |
778 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,667 |
945 |
720 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,443 |
1,440 |
1,046 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,724 |
946 |
780 |
33.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,759 |
962 |
799 |
33.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
41 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.8 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
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,408 |
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,628 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,414 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,381 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,914 |
0 |
0 |
0 |
8 |
0 |
1,983 |
68 |
bash |
| 9 |
no-host |
bin-true |
49,368 |
0 |
0 |
0 |
8 |
0 |
2,979 |
48 |
dash |
| 17 |
no-host |
bin-true |
833,663 |
0 |
0 |
0 |
8 |
0 |
1,990 |
108 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,326 |
0 |
0 |
0 |
16 |
0 |
1,972 |
80 |
osh-native |
| 33 |
no-host |
bin-true |
132,301 |
0 |
0 |
0 |
16 |
0 |
1,989 |
57 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,622,893 |
0 |
0 |
0 |
25,272 |
0 |
14,021 |
1,083 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,285 |
0 |
0 |
0 |
25,272 |
0 |
14,081 |
1,066 |
dash |
| 18 |
no-host |
configure.cpython |
5,995,506 |
0 |
0 |
0 |
25,272 |
0 |
12,858 |
917 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,817,505 |
0 |
0 |
0 |
25,280 |
0 |
12,854 |
1,134 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,769,634 |
0 |
0 |
0 |
25,280 |
0 |
12,839 |
1,059 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,728 |
0 |
0 |
0 |
4,432 |
0 |
2,012 |
342 |
bash |
| 12 |
no-host |
configure.ocaml |
280,632 |
0 |
0 |
0 |
4,432 |
0 |
2,093 |
205 |
dash |
| 20 |
no-host |
configure.ocaml |
556,881 |
0 |
0 |
0 |
4,432 |
0 |
1,915 |
176 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,512 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
228 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,314 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
196 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,208 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,195 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,876 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,968 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,862 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,785 |
1 |
0 |
0 |
35,944 |
0 |
18,981 |
1,016 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,678 |
1 |
0 |
0 |
35,936 |
0 |
17,058 |
1,306 |
dash |
| 19 |
no-host |
configure.util-linux |
4,990,363 |
0 |
0 |
0 |
35,952 |
0 |
17,506 |
859 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,722,605 |
1 |
0 |
0 |
35,952 |
0 |
17,437 |
1,105 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,708,852 |
0 |
0 |
0 |
35,952 |
0 |
17,362 |
1,165 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,668 |
0 |
0 |
0 |
3,616 |
0 |
881 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,537 |
0 |
0 |
0 |
3,616 |
0 |
994 |
103 |
dash |
| 22 |
no-host |
configure.yash |
316,646 |
0 |
0 |
0 |
3,616 |
0 |
855 |
103 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,633 |
0 |
0 |
0 |
3,624 |
0 |
858 |
116 |
osh-native |
| 38 |
no-host |
configure.yash |
179,062 |
0 |
0 |
0 |
3,632 |
0 |
856 |
102 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,900 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
384 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 32 |
no-host |
hello-world |
376 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host