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 |
533 |
22 |
21 |
34.08 |
1.41 |
| bin-true |
no-host |
613 |
434 |
2,437 |
790 |
790 |
3.97 |
1.29 |
| configure.cpython |
no-host |
13,935 |
13,835 |
29,203 |
14,649 |
14,871 |
2.10 |
1.05 |
| configure.ocaml |
no-host |
3,667 |
3,591 |
4,626 |
3,738 |
3,798 |
1.26 |
1.02 |
| configure.tcc |
no-host |
45 |
40 |
220 |
49 |
49 |
4.85 |
1.07 |
| configure.util-linux |
no-host |
12,478 |
13,194 |
31,958 |
13,651 |
13,899 |
2.56 |
1.09 |
| configure.yash |
no-host |
1,708 |
1,628 |
2,414 |
1,756 |
1,746 |
1.41 |
1.03 |
| hello-world |
no-host |
1 |
1 |
60 |
3 |
3 |
48.91 |
2.32 |
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,388 |
1,156 |
24,912 |
3,448 |
3,333 |
10.43 |
1.44 |
| bin-true |
no-host |
100,895 |
49,378 |
835,706 |
134,230 |
135,267 |
8.28 |
1.33 |
| configure.cpython |
no-host |
1,621,766 |
1,641,619 |
6,004,770 |
1,799,244 |
1,799,100 |
3.70 |
1.11 |
| configure.ocaml |
no-host |
299,437 |
280,657 |
557,273 |
317,678 |
316,200 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,225 |
4,195 |
23,868 |
5,915 |
5,903 |
4.57 |
1.13 |
| configure.util-linux |
no-host |
1,533,937 |
1,695,292 |
5,001,116 |
1,715,699 |
1,706,050 |
3.26 |
1.12 |
| configure.yash |
no-host |
173,509 |
159,447 |
316,139 |
179,957 |
178,914 |
1.82 |
1.04 |
| hello-world |
no-host |
155 |
84 |
3,888 |
387 |
375 |
25.08 |
2.50 |
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,826 |
3,826 |
0 |
704 |
1,881 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
790 |
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,649 |
1 |
64 |
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,651 |
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,738 |
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 |
49 |
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,756 |
1 |
2 |
2.6 |
33.4 |
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 |
790 |
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,871 |
1 |
63 |
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,899 |
3 |
60 |
21.4 |
39.6 |
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,798 |
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 |
49 |
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,746 |
1 |
2 |
2.6 |
33.3 |
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 |
10 |
6 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
533 |
477 |
60 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
13 |
9 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
613 |
316 |
334 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
434 |
265 |
173 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,437 |
876 |
1,830 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
790 |
313 |
495 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
790 |
309 |
498 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,935 |
7,680 |
6,638 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,835 |
7,553 |
6,673 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
29,203 |
15,996 |
15,159 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,649 |
7,419 |
7,522 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,871 |
7,347 |
7,597 |
34.7 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,667 |
1,477 |
1,229 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,591 |
1,422 |
1,192 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
4,626 |
2,120 |
1,730 |
28.5 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,738 |
1,512 |
1,268 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,798 |
1,483 |
1,353 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
22 |
24 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
22 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
161 |
62 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
23 |
27 |
26.2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,478 |
6,519 |
6,412 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,194 |
6,424 |
7,248 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
31,958 |
20,040 |
13,000 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,651 |
6,307 |
7,583 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,899 |
6,358 |
7,611 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,708 |
951 |
766 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,628 |
916 |
714 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,414 |
1,444 |
1,012 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,756 |
944 |
815 |
33.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,746 |
944 |
804 |
33.3 |
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 |
60 |
42 |
19 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
1 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
3 |
0 |
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,388 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,912 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,448 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,333 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,895 |
0 |
0 |
0 |
8 |
0 |
1,984 |
56 |
bash |
| 9 |
no-host |
bin-true |
49,378 |
0 |
0 |
0 |
8 |
0 |
2,961 |
58 |
dash |
| 17 |
no-host |
bin-true |
835,706 |
0 |
0 |
0 |
8 |
0 |
1,994 |
138 |
osh-cpython |
| 25 |
no-host |
bin-true |
134,230 |
0 |
0 |
0 |
16 |
0 |
1,987 |
64 |
osh-native |
| 33 |
no-host |
bin-true |
135,267 |
0 |
0 |
0 |
16 |
0 |
1,975 |
99 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,621,766 |
0 |
0 |
0 |
25,272 |
0 |
14,007 |
1,072 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,619 |
0 |
0 |
0 |
25,272 |
0 |
14,070 |
1,180 |
dash |
| 18 |
no-host |
configure.cpython |
6,004,770 |
0 |
0 |
0 |
25,272 |
0 |
12,883 |
886 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,799,244 |
0 |
0 |
0 |
25,280 |
0 |
12,850 |
1,084 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,799,100 |
0 |
0 |
0 |
25,280 |
0 |
12,837 |
1,083 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,437 |
0 |
0 |
0 |
4,432 |
0 |
2,009 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,657 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
557,273 |
0 |
0 |
0 |
4,432 |
0 |
1,912 |
179 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,678 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
185 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,200 |
0 |
0 |
0 |
4,440 |
0 |
1,994 |
200 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,225 |
0 |
0 |
0 |
80 |
0 |
48 |
5 |
bash |
| 13 |
no-host |
configure.tcc |
4,195 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,868 |
0 |
0 |
0 |
88 |
0 |
53 |
2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,915 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,903 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,533,937 |
0 |
0 |
0 |
35,944 |
0 |
18,954 |
1,064 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,292 |
0 |
0 |
0 |
35,936 |
0 |
17,032 |
1,083 |
dash |
| 19 |
no-host |
configure.util-linux |
5,001,116 |
0 |
0 |
0 |
35,960 |
0 |
17,563 |
881 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,715,699 |
2 |
0 |
0 |
35,944 |
0 |
17,516 |
1,156 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,706,050 |
1 |
0 |
0 |
35,944 |
0 |
17,522 |
1,039 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,509 |
0 |
0 |
0 |
3,616 |
0 |
873 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,447 |
0 |
0 |
0 |
3,616 |
0 |
998 |
93 |
dash |
| 22 |
no-host |
configure.yash |
316,139 |
0 |
0 |
0 |
3,616 |
0 |
859 |
110 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,957 |
0 |
0 |
0 |
3,624 |
0 |
856 |
101 |
osh-native |
| 38 |
no-host |
configure.yash |
178,914 |
0 |
0 |
0 |
3,624 |
0 |
855 |
99 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,888 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
387 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
375 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host