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 |
10 |
524 |
22 |
21 |
32.32 |
1.39 |
| bin-true |
no-host |
636 |
464 |
2,539 |
839 |
828 |
3.99 |
1.32 |
| configure.cpython |
no-host |
14,424 |
14,563 |
30,714 |
14,922 |
15,264 |
2.13 |
1.03 |
| configure.ocaml |
no-host |
3,814 |
3,741 |
4,738 |
3,887 |
3,821 |
1.24 |
1.02 |
| configure.tcc |
no-host |
50 |
43 |
224 |
51 |
52 |
4.45 |
1.01 |
| configure.util-linux |
no-host |
13,084 |
14,006 |
33,731 |
13,955 |
14,245 |
2.58 |
1.07 |
| configure.yash |
no-host |
1,798 |
1,714 |
2,482 |
1,833 |
1,777 |
1.38 |
1.02 |
| hello-world |
no-host |
1 |
1 |
62 |
3 |
3 |
46.07 |
2.19 |
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,402 |
1,162 |
24,737 |
3,484 |
3,344 |
10.30 |
1.45 |
| bin-true |
no-host |
101,933 |
49,423 |
828,608 |
138,228 |
133,262 |
8.13 |
1.36 |
| configure.cpython |
no-host |
1,618,886 |
1,638,308 |
5,951,095 |
1,810,452 |
1,788,114 |
3.68 |
1.12 |
| configure.ocaml |
no-host |
298,975 |
281,107 |
554,957 |
316,271 |
315,724 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,229 |
4,199 |
23,719 |
5,908 |
5,875 |
4.54 |
1.13 |
| configure.util-linux |
no-host |
1,528,124 |
1,695,409 |
4,959,468 |
1,719,095 |
1,704,372 |
3.25 |
1.12 |
| configure.yash |
no-host |
173,600 |
159,545 |
314,581 |
179,494 |
178,795 |
1.81 |
1.03 |
| hello-world |
no-host |
153 |
86 |
3,880 |
383 |
378 |
25.36 |
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 |
6.8 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
839 |
1 |
2 |
2.6 |
9.0 |
156,797 |
15,428 |
2,915 |
8,761 |
77,347 |
70,689 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,922 |
2 |
70 |
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,955 |
3 |
63 |
21.4 |
39.5 |
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,887 |
1 |
2 |
2.7 |
28.7 |
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.3 |
30,627 |
30,627 |
0 |
1,582 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,833 |
1 |
2 |
2.6 |
33.5 |
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 |
9.8 |
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 |
828 |
1 |
2 |
2.6 |
8.3 |
156,796 |
15,423 |
2,910 |
8,762 |
77,347 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,264 |
2 |
68 |
15.2 |
34.3 |
1,782,987 |
46,087 |
25,352 |
91,623 |
885,111 |
806,253 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,245 |
3 |
64 |
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,821 |
1 |
2 |
2.7 |
28.6 |
149,872 |
12,470 |
6,513 |
7,821 |
70,839 |
71,212 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
52 |
0 |
0 |
1.3 |
26.1 |
30,627 |
30,627 |
0 |
1,584 |
14,645 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,777 |
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.2 |
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 |
6 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
524 |
462 |
65 |
22.8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.2 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
636 |
316 |
362 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
464 |
283 |
187 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
2,539 |
918 |
1,898 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
839 |
310 |
546 |
9.0 |
osh-native |
| 33 |
no-host |
bin-true |
828 |
310 |
537 |
8.3 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,424 |
7,630 |
7,182 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,563 |
7,774 |
7,218 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
30,714 |
16,736 |
16,044 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,922 |
7,333 |
7,905 |
34.5 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,264 |
7,451 |
7,957 |
34.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,814 |
1,533 |
1,317 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,741 |
1,494 |
1,272 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,738 |
2,120 |
1,846 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,887 |
1,508 |
1,422 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,821 |
1,521 |
1,340 |
28.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
50 |
25 |
26 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
23 |
20 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
224 |
148 |
80 |
26.2 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
26 |
25 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
52 |
25 |
27 |
26.1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,084 |
6,651 |
6,916 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
14,006 |
6,575 |
7,943 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
33,731 |
20,966 |
13,908 |
40.0 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,955 |
6,315 |
7,890 |
39.5 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,245 |
6,533 |
7,813 |
39.7 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,798 |
954 |
848 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,714 |
956 |
759 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,482 |
1,482 |
1,044 |
33.1 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,833 |
977 |
857 |
33.5 |
osh-native |
| 38 |
no-host |
configure.yash |
1,777 |
991 |
788 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
62 |
38 |
24 |
18.2 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,402 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,162 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,737 |
0 |
0 |
0 |
8 |
0 |
45 |
3 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,484 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,344 |
0 |
0 |
0 |
16 |
0 |
39 |
6 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,933 |
0 |
0 |
0 |
8 |
0 |
1,987 |
66 |
bash |
| 9 |
no-host |
bin-true |
49,423 |
0 |
0 |
0 |
8 |
0 |
2,963 |
64 |
dash |
| 17 |
no-host |
bin-true |
828,608 |
0 |
0 |
0 |
8 |
0 |
1,966 |
292 |
osh-cpython |
| 25 |
no-host |
bin-true |
138,228 |
0 |
0 |
0 |
16 |
0 |
1,947 |
118 |
osh-native |
| 33 |
no-host |
bin-true |
133,262 |
0 |
0 |
0 |
16 |
0 |
1,980 |
132 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,618,886 |
2 |
0 |
0 |
25,272 |
0 |
14,030 |
1,138 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,308 |
0 |
0 |
0 |
25,272 |
0 |
14,050 |
1,111 |
dash |
| 18 |
no-host |
configure.cpython |
5,951,095 |
0 |
0 |
0 |
25,272 |
0 |
12,887 |
1,031 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,810,452 |
0 |
0 |
0 |
25,280 |
0 |
12,885 |
1,207 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,788,114 |
0 |
0 |
0 |
25,280 |
0 |
12,843 |
1,050 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
298,975 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
201 |
bash |
| 12 |
no-host |
configure.ocaml |
281,107 |
0 |
0 |
0 |
4,432 |
0 |
2,101 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
554,957 |
0 |
0 |
0 |
4,432 |
0 |
1,923 |
216 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,271 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
204 |
osh-native |
| 36 |
no-host |
configure.ocaml |
315,724 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
233 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,229 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
23,719 |
0 |
0 |
0 |
88 |
0 |
53 |
10 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,908 |
0 |
0 |
0 |
96 |
0 |
45 |
11 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,875 |
0 |
0 |
0 |
96 |
0 |
48 |
11 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,528,124 |
1 |
0 |
0 |
35,944 |
0 |
18,948 |
1,198 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,409 |
1 |
0 |
0 |
35,936 |
0 |
17,088 |
1,259 |
dash |
| 19 |
no-host |
configure.util-linux |
4,959,468 |
2 |
0 |
0 |
35,944 |
0 |
17,559 |
1,087 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,719,095 |
5 |
0 |
0 |
35,952 |
0 |
17,518 |
1,089 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,704,372 |
0 |
0 |
0 |
35,952 |
0 |
17,541 |
969 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,600 |
0 |
0 |
0 |
3,616 |
0 |
879 |
143 |
bash |
| 14 |
no-host |
configure.yash |
159,545 |
0 |
0 |
0 |
3,616 |
0 |
998 |
141 |
dash |
| 22 |
no-host |
configure.yash |
314,581 |
0 |
0 |
0 |
3,616 |
0 |
862 |
135 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,494 |
0 |
0 |
0 |
3,624 |
0 |
856 |
144 |
osh-native |
| 38 |
no-host |
configure.yash |
178,795 |
0 |
0 |
0 |
3,624 |
0 |
859 |
169 |
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,880 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
| 24 |
no-host |
hello-world |
383 |
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