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 |
564 |
22 |
21 |
35.84 |
1.42 |
| bin-true |
no-host |
630 |
432 |
2,519 |
834 |
811 |
4.00 |
1.32 |
| configure.cpython |
no-host |
14,230 |
14,322 |
31,354 |
15,509 |
15,666 |
2.20 |
1.09 |
| configure.ocaml |
no-host |
3,695 |
3,753 |
4,919 |
3,875 |
3,884 |
1.33 |
1.05 |
| configure.tcc |
no-host |
46 |
42 |
226 |
51 |
50 |
4.92 |
1.11 |
| configure.util-linux |
no-host |
12,632 |
13,971 |
33,592 |
14,313 |
14,469 |
2.66 |
1.13 |
| configure.yash |
no-host |
1,698 |
1,692 |
2,587 |
1,811 |
1,797 |
1.52 |
1.07 |
| hello-world |
no-host |
1 |
1 |
64 |
3 |
3 |
51.68 |
2.45 |
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,407 |
1,148 |
24,641 |
3,413 |
3,351 |
10.24 |
1.42 |
| bin-true |
no-host |
101,942 |
49,390 |
830,098 |
137,205 |
136,258 |
8.14 |
1.35 |
| configure.cpython |
no-host |
1,624,865 |
1,640,753 |
5,989,358 |
1,801,598 |
1,795,842 |
3.69 |
1.11 |
| configure.ocaml |
no-host |
299,184 |
280,683 |
555,889 |
316,789 |
316,220 |
1.86 |
1.06 |
| configure.tcc |
no-host |
5,204 |
4,188 |
23,827 |
5,969 |
5,901 |
4.58 |
1.15 |
| configure.util-linux |
no-host |
1,527,123 |
1,697,127 |
4,979,111 |
1,712,417 |
1,714,505 |
3.26 |
1.12 |
| configure.yash |
no-host |
173,252 |
159,485 |
316,266 |
179,261 |
179,278 |
1.83 |
1.03 |
| hello-world |
no-host |
153 |
87 |
3,888 |
387 |
381 |
25.41 |
2.53 |
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 |
703 |
1,880 |
1,243 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
834 |
1 |
2 |
2.6 |
8.8 |
156,798 |
15,428 |
2,915 |
8,760 |
77,347 |
70,691 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,509 |
1 |
71 |
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 |
14,313 |
3 |
65 |
21.4 |
39.6 |
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,875 |
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 |
51 |
0 |
0 |
1.3 |
26.4 |
30,628 |
30,628 |
0 |
1,581 |
14,645 |
14,402 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,811 |
1 |
2 |
2.6 |
33.2 |
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.6 |
3,825 |
3,825 |
0 |
704 |
1,880 |
1,241 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
811 |
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 |
15,666 |
1 |
69 |
15.2 |
34.6 |
1,782,988 |
46,087 |
25,352 |
91,622 |
885,111 |
806,255 |
25,789 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,469 |
3 |
66 |
21.4 |
39.5 |
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,884 |
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 |
50 |
0 |
0 |
1.3 |
26.0 |
30,628 |
30,628 |
0 |
1,583 |
14,645 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,797 |
1 |
2 |
2.6 |
33.1 |
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 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
564 |
503 |
64 |
22.7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.8 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.3 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
630 |
331 |
339 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
432 |
278 |
161 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
2,519 |
922 |
1,882 |
18.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
834 |
326 |
525 |
8.8 |
osh-native |
| 33 |
no-host |
bin-true |
811 |
299 |
530 |
8.4 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,230 |
7,772 |
6,840 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,322 |
7,740 |
6,968 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
31,354 |
17,193 |
16,288 |
34.4 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,509 |
7,723 |
8,091 |
34.7 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,666 |
7,662 |
7,970 |
34.6 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,695 |
1,482 |
1,249 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,753 |
1,551 |
1,223 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
4,919 |
2,190 |
1,967 |
28.8 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,875 |
1,543 |
1,373 |
28.7 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,884 |
1,548 |
1,375 |
28.7 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
19 |
23 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
226 |
170 |
59 |
26.1 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
51 |
32 |
20 |
26.4 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
23 |
27 |
26.0 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
12,632 |
6,548 |
6,532 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,971 |
6,720 |
7,735 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
33,592 |
20,985 |
13,719 |
39.7 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,313 |
6,694 |
7,833 |
39.6 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,469 |
6,605 |
7,940 |
39.5 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,698 |
968 |
738 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,692 |
969 |
724 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
2,587 |
1,533 |
1,098 |
33.3 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,811 |
974 |
839 |
33.2 |
osh-native |
| 38 |
no-host |
configure.yash |
1,797 |
939 |
859 |
33.1 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
64 |
36 |
28 |
17.9 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
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,407 |
0 |
0 |
0 |
8 |
0 |
41 |
3 |
bash |
| 15 |
no-host |
abuild-print-help |
1,148 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,641 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,413 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,351 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
101,942 |
0 |
0 |
0 |
8 |
0 |
1,990 |
65 |
bash |
| 9 |
no-host |
bin-true |
49,390 |
0 |
0 |
0 |
8 |
0 |
2,982 |
45 |
dash |
| 17 |
no-host |
bin-true |
830,098 |
0 |
0 |
0 |
8 |
0 |
1,989 |
142 |
osh-cpython |
| 25 |
no-host |
bin-true |
137,205 |
0 |
0 |
0 |
16 |
0 |
1,966 |
109 |
osh-native |
| 33 |
no-host |
bin-true |
136,258 |
0 |
0 |
0 |
16 |
0 |
1,980 |
96 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,624,865 |
0 |
0 |
0 |
25,272 |
0 |
14,048 |
1,042 |
bash |
| 10 |
no-host |
configure.cpython |
1,640,753 |
0 |
0 |
0 |
25,272 |
0 |
14,111 |
1,049 |
dash |
| 18 |
no-host |
configure.cpython |
5,989,358 |
0 |
0 |
0 |
25,272 |
0 |
12,872 |
900 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
1,801,598 |
0 |
0 |
0 |
25,280 |
0 |
12,838 |
1,062 |
osh-native |
| 34 |
no-host |
configure.cpython |
1,795,842 |
0 |
0 |
0 |
25,280 |
0 |
12,820 |
1,108 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
299,184 |
0 |
0 |
0 |
4,432 |
0 |
2,009 |
200 |
bash |
| 12 |
no-host |
configure.ocaml |
280,683 |
0 |
0 |
0 |
4,432 |
0 |
2,088 |
185 |
dash |
| 20 |
no-host |
configure.ocaml |
555,889 |
1 |
0 |
0 |
4,432 |
0 |
1,919 |
183 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
316,789 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
205 |
osh-native |
| 36 |
no-host |
configure.ocaml |
316,220 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
197 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
5,204 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,188 |
0 |
0 |
0 |
88 |
0 |
51 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
23,827 |
0 |
0 |
0 |
88 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
5,969 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
5,901 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,527,123 |
0 |
0 |
0 |
35,944 |
0 |
18,988 |
1,081 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,127 |
2 |
0 |
0 |
35,936 |
0 |
17,098 |
1,297 |
dash |
| 19 |
no-host |
configure.util-linux |
4,979,111 |
1 |
0 |
0 |
35,960 |
0 |
17,518 |
891 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,712,417 |
0 |
0 |
0 |
35,952 |
0 |
17,518 |
1,036 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,714,505 |
2 |
0 |
0 |
35,952 |
0 |
17,484 |
1,144 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
173,252 |
0 |
0 |
0 |
3,616 |
0 |
876 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,485 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
120 |
dash |
| 22 |
no-host |
configure.yash |
316,266 |
0 |
0 |
0 |
3,616 |
0 |
860 |
114 |
osh-cpython |
| 30 |
no-host |
configure.yash |
179,261 |
0 |
0 |
0 |
3,624 |
0 |
852 |
101 |
osh-native |
| 38 |
no-host |
configure.yash |
179,278 |
0 |
0 |
0 |
3,624 |
0 |
858 |
109 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,888 |
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 |
381 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host