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 |
526 |
21 |
20 |
34.10 |
1.39 |
| bin-true |
no-host |
603 |
430 |
2,444 |
790 |
804 |
4.06 |
1.31 |
| configure.cpython |
no-host |
13,491 |
13,565 |
28,737 |
14,299 |
14,491 |
2.13 |
1.06 |
| configure.ocaml |
no-host |
3,612 |
3,559 |
4,566 |
3,685 |
3,665 |
1.26 |
1.02 |
| configure.tcc |
no-host |
45 |
40 |
220 |
48 |
48 |
4.89 |
1.07 |
| configure.util-linux |
no-host |
12,299 |
13,129 |
31,526 |
13,296 |
13,457 |
2.56 |
1.08 |
| configure.yash |
no-host |
1,659 |
1,602 |
2,378 |
1,681 |
1,688 |
1.43 |
1.01 |
| hello-world |
no-host |
1 |
1 |
59 |
3 |
3 |
49.48 |
2.38 |
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,406 |
1,154 |
24,873 |
3,453 |
3,286 |
10.34 |
1.44 |
| bin-true |
no-host |
100,930 |
49,451 |
835,034 |
135,204 |
137,284 |
8.27 |
1.34 |
| configure.cpython |
no-host |
1,618,671 |
1,646,236 |
5,949,062 |
1,799,805 |
1,778,834 |
3.68 |
1.11 |
| configure.ocaml |
no-host |
299,211 |
281,234 |
557,186 |
316,710 |
316,615 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,198 |
4,186 |
23,769 |
5,973 |
5,848 |
4.57 |
1.15 |
| configure.util-linux |
no-host |
1,534,297 |
1,694,936 |
4,967,246 |
1,711,348 |
1,708,944 |
3.24 |
1.12 |
| configure.yash |
no-host |
173,650 |
159,555 |
315,382 |
179,879 |
178,689 |
1.82 |
1.04 |
| hello-world |
no-host |
151 |
85 |
3,874 |
387 |
377 |
25.66 |
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 |
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,299 |
1 |
62 |
15.2 |
34.6 |
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,296 |
2 |
57 |
21.4 |
40.0 |
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.8 |
149,873 |
12,476 |
6,519 |
7,819 |
70,840 |
71,214 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
26.3 |
30,628 |
30,628 |
0 |
1,582 |
14,646 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,681 |
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 |
804 |
1 |
2 |
2.6 |
8.4 |
156,797 |
15,423 |
2,910 |
8,762 |
77,348 |
70,687 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,491 |
1 |
60 |
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,457 |
3 |
57 |
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,665 |
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 |
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,688 |
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 |
20 |
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 |
15 |
6 |
10 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
526 |
469 |
60 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
603 |
317 |
321 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
430 |
276 |
159 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,444 |
903 |
1,805 |
18.2 |
osh-cpython |
| 25 |
no-host |
bin-true |
790 |
313 |
492 |
8.7 |
osh-native |
| 33 |
no-host |
bin-true |
804 |
303 |
515 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
13,491 |
7,320 |
6,536 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,565 |
7,435 |
6,518 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
28,737 |
15,768 |
14,876 |
34.5 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,299 |
7,225 |
7,364 |
34.6 |
osh-native |
| 34 |
no-host |
configure.cpython |
14,491 |
7,167 |
7,318 |
34.5 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,612 |
1,434 |
1,215 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,559 |
1,449 |
1,132 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,566 |
2,037 |
1,749 |
28.7 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,685 |
1,479 |
1,246 |
28.8 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,665 |
1,446 |
1,258 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
45 |
23 |
22 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
24 |
16 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
220 |
163 |
61 |
26.3 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
48 |
25 |
24 |
26.3 |
osh-native |
| 37 |
no-host |
configure.tcc |
48 |
20 |
29 |
26.3 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,299 |
6,472 |
6,276 |
39.8 |
bash |
| 11 |
no-host |
configure.util-linux |
13,129 |
6,362 |
7,238 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
31,526 |
19,747 |
12,829 |
39.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,296 |
6,158 |
7,358 |
40.0 |
osh-native |
| 35 |
no-host |
configure.util-linux |
13,457 |
6,164 |
7,355 |
39.6 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,659 |
933 |
735 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,602 |
913 |
692 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
2,378 |
1,414 |
1,006 |
33.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,681 |
908 |
776 |
33.3 |
osh-native |
| 38 |
no-host |
configure.yash |
1,688 |
956 |
735 |
33.3 |
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 |
59 |
39 |
20 |
18.1 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
0 |
3 |
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,406 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,154 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,873 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,453 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,286 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
100,930 |
0 |
0 |
0 |
8 |
0 |
1,981 |
66 |
bash |
| 9 |
no-host |
bin-true |
49,451 |
0 |
0 |
0 |
8 |
0 |
2,972 |
44 |
dash |
| 17 |
no-host |
bin-true |
835,034 |
0 |
0 |
0 |
8 |
0 |
1,991 |
111 |
osh-cpython |
| 25 |
no-host |
bin-true |
135,204 |
0 |
0 |
0 |
16 |
0 |
1,957 |
90 |
osh-native |
| 33 |
no-host |
bin-true |
137,284 |
0 |
0 |
0 |
16 |
0 |
1,969 |
88 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,618,671 |
0 |
0 |
0 |
25,272 |
0 |
14,012 |
1,070 |
bash |
| 10 |
no-host |
configure.cpython |
1,646,236 |
0 |
0 |
0 |
25,272 |
0 |
14,084 |
1,057 |
dash |
| 18 |
no-host |
configure.cpython |
5,949,062 |
0 |
0 |
0 |
25,272 |
0 |
12,867 |
955 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,799,805 |
0 |
0 |
0 |
25,280 |
0 |
12,840 |
1,155 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,778,834 |
0 |
0 |
0 |
25,280 |
0 |
12,834 |
1,029 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,211 |
0 |
0 |
0 |
4,432 |
0 |
2,006 |
201 |
bash |
| 12 |
no-host |
configure.ocaml |
281,234 |
0 |
0 |
0 |
4,432 |
0 |
2,088 |
202 |
dash |
| 20 |
no-host |
configure.ocaml |
557,186 |
0 |
0 |
0 |
4,432 |
0 |
1,908 |
191 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,710 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
219 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,615 |
0 |
0 |
0 |
4,440 |
0 |
1,992 |
379 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,198 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,186 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,769 |
0 |
0 |
0 |
88 |
0 |
52 |
8 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,973 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,848 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,534,297 |
2 |
0 |
0 |
35,944 |
0 |
18,961 |
1,061 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,936 |
1 |
0 |
0 |
35,936 |
0 |
17,036 |
1,196 |
dash |
| 19 |
no-host |
configure.util-linux |
4,967,246 |
0 |
0 |
0 |
35,960 |
0 |
17,503 |
912 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,711,348 |
0 |
0 |
0 |
35,944 |
0 |
17,424 |
1,131 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,708,944 |
1 |
0 |
0 |
35,944 |
0 |
17,492 |
1,092 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,650 |
0 |
0 |
0 |
3,616 |
0 |
874 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,555 |
0 |
0 |
0 |
3,616 |
0 |
997 |
91 |
dash |
| 22 |
no-host |
configure.yash |
315,382 |
0 |
0 |
0 |
3,616 |
0 |
858 |
91 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,879 |
0 |
0 |
0 |
3,624 |
0 |
857 |
88 |
osh-native |
| 38 |
no-host |
configure.yash |
178,689 |
0 |
0 |
0 |
3,624 |
0 |
858 |
95 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,874 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
387 |
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