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 |
529 |
22 |
21 |
33.08 |
1.39 |
| bin-true |
no-host |
614 |
435 |
2,472 |
803 |
813 |
4.02 |
1.31 |
| configure.cpython |
no-host |
14,168 |
14,292 |
29,745 |
14,863 |
14,817 |
2.10 |
1.05 |
| configure.ocaml |
no-host |
3,766 |
3,670 |
4,644 |
3,774 |
3,732 |
1.23 |
1.00 |
| configure.tcc |
no-host |
47 |
43 |
256 |
50 |
49 |
5.49 |
1.06 |
| configure.util-linux |
no-host |
12,941 |
14,007 |
32,733 |
13,865 |
13,774 |
2.53 |
1.07 |
| configure.yash |
no-host |
1,731 |
1,657 |
2,447 |
1,741 |
1,720 |
1.41 |
1.01 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
50.07 |
2.41 |
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,429 |
1,147 |
24,571 |
3,435 |
3,381 |
10.12 |
1.41 |
| bin-true |
no-host |
101,942 |
49,400 |
830,268 |
136,284 |
138,217 |
8.14 |
1.34 |
| configure.cpython |
no-host |
1,622,860 |
1,645,567 |
5,980,733 |
1,813,956 |
1,790,883 |
3.69 |
1.12 |
| configure.ocaml |
no-host |
298,578 |
280,848 |
555,044 |
317,279 |
316,171 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,233 |
4,212 |
23,796 |
5,961 |
5,882 |
4.55 |
1.14 |
| configure.util-linux |
no-host |
1,528,998 |
1,691,029 |
4,974,925 |
1,723,933 |
1,713,348 |
3.25 |
1.13 |
| configure.yash |
no-host |
173,662 |
159,510 |
315,523 |
178,901 |
179,032 |
1.82 |
1.03 |
| hello-world |
no-host |
150 |
86 |
3,898 |
384 |
377 |
25.99 |
2.56 |
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 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
1 |
2 |
2.6 |
8.5 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,863 |
1 |
70 |
15.2 |
34.4 |
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,865 |
3 |
64 |
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,774 |
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 |
50 |
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,741 |
1 |
2 |
2.6 |
33.1 |
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 |
813 |
1 |
2 |
2.6 |
8.4 |
156,797 |
15,423 |
2,910 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,817 |
1 |
67 |
15.2 |
34.4 |
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,774 |
3 |
61 |
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,732 |
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 |
49 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,720 |
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 |
8 |
9 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
529 |
474 |
58 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
13 |
8 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
614 |
303 |
351 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
435 |
274 |
167 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,472 |
890 |
1,851 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
803 |
309 |
511 |
8.5 |
osh-native |
| 33 |
no-host |
bin-true |
813 |
319 |
510 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,168 |
7,756 |
6,783 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,292 |
7,611 |
7,072 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
29,745 |
16,251 |
15,522 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,863 |
7,405 |
7,767 |
34.4 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,817 |
7,377 |
7,569 |
34.4 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,766 |
1,518 |
1,286 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,670 |
1,507 |
1,188 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,644 |
2,082 |
1,784 |
28.5 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,774 |
1,519 |
1,298 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,732 |
1,496 |
1,278 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
47 |
28 |
19 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
24 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
256 |
177 |
83 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
50 |
22 |
28 |
26.0 |
osh-native |
| 37 |
no-host |
configure.tcc |
49 |
25 |
24 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,941 |
6,692 |
6,706 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
14,007 |
6,810 |
7,681 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
32,733 |
20,517 |
13,328 |
39.9 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,865 |
6,336 |
7,768 |
39.7 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,774 |
6,298 |
7,558 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,731 |
960 |
779 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,657 |
945 |
714 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
2,447 |
1,471 |
1,019 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,741 |
960 |
785 |
33.1 |
osh-native |
| 38 |
no-host |
configure.yash |
1,720 |
944 |
778 |
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.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
40 |
22 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
1 |
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,429 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,147 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,571 |
0 |
0 |
0 |
8 |
0 |
45 |
3 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,435 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,381 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,942 |
0 |
0 |
0 |
8 |
0 |
1,991 |
66 |
bash |
| 9 |
no-host |
bin-true |
49,400 |
0 |
0 |
0 |
8 |
0 |
2,979 |
49 |
dash |
| 17 |
no-host |
bin-true |
830,268 |
0 |
0 |
0 |
8 |
0 |
1,984 |
114 |
osh-cpython |
| 25 |
no-host |
bin-true |
136,284 |
0 |
0 |
0 |
16 |
0 |
1,969 |
91 |
osh-native |
| 33 |
no-host |
bin-true |
138,217 |
0 |
0 |
0 |
16 |
0 |
1,974 |
74 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,622,860 |
0 |
0 |
0 |
25,272 |
0 |
14,033 |
1,037 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,567 |
0 |
0 |
0 |
25,272 |
0 |
14,104 |
1,051 |
dash |
| 18 |
no-host |
configure.cpython |
5,980,733 |
0 |
0 |
0 |
25,272 |
0 |
12,857 |
911 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,813,956 |
0 |
0 |
0 |
25,280 |
0 |
12,904 |
1,074 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,790,883 |
0 |
0 |
0 |
25,280 |
0 |
12,846 |
1,091 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,578 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
184 |
bash |
| 12 |
no-host |
configure.ocaml |
280,848 |
0 |
0 |
0 |
4,432 |
0 |
2,095 |
208 |
dash |
| 20 |
no-host |
configure.ocaml |
555,044 |
0 |
0 |
0 |
4,432 |
0 |
1,913 |
195 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
317,279 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
196 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,171 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
210 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,233 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,212 |
0 |
0 |
0 |
88 |
0 |
53 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,796 |
0 |
0 |
0 |
88 |
0 |
53 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,961 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,882 |
0 |
0 |
0 |
96 |
0 |
46 |
5 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,528,998 |
2 |
0 |
0 |
35,944 |
0 |
18,966 |
1,130 |
bash |
| 11 |
no-host |
configure.util-linux |
1,691,029 |
0 |
0 |
0 |
35,936 |
0 |
16,954 |
1,283 |
dash |
| 19 |
no-host |
configure.util-linux |
4,974,925 |
0 |
0 |
0 |
35,944 |
0 |
17,513 |
852 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,723,933 |
2 |
0 |
0 |
35,944 |
0 |
17,488 |
1,093 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,713,348 |
0 |
0 |
0 |
35,952 |
0 |
17,495 |
1,278 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,662 |
0 |
0 |
0 |
3,616 |
0 |
872 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,510 |
0 |
0 |
0 |
3,616 |
0 |
997 |
106 |
dash |
| 22 |
no-host |
configure.yash |
315,523 |
0 |
0 |
0 |
3,616 |
0 |
858 |
118 |
osh-cpython |
| 30 |
no-host |
configure.yash |
178,901 |
0 |
0 |
0 |
3,624 |
0 |
856 |
104 |
osh-native |
| 38 |
no-host |
configure.yash |
179,032 |
0 |
0 |
0 |
3,624 |
0 |
859 |
107 |
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,898 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
384 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
377 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host