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 |
18 |
9 |
472 |
22 |
20 |
25.67 |
1.18 |
| bin-true |
no-host |
637 |
514 |
2,357 |
787 |
778 |
3.70 |
1.24 |
| configure.cpython |
no-host |
14,460 |
14,541 |
29,947 |
14,958 |
15,159 |
2.07 |
1.03 |
| configure.ocaml |
no-host |
3,720 |
3,662 |
4,605 |
3,741 |
3,741 |
1.24 |
1.01 |
| configure.tcc |
no-host |
46 |
40 |
205 |
47 |
46 |
4.48 |
1.02 |
| configure.util-linux |
no-host |
13,461 |
14,231 |
32,677 |
13,927 |
14,149 |
2.43 |
1.03 |
| configure.yash |
no-host |
1,799 |
1,721 |
2,447 |
1,786 |
1,778 |
1.36 |
0.99 |
| hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
43.99 |
2.13 |
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,511 |
1,148 |
24,389 |
3,189 |
3,086 |
9.71 |
1.27 |
| bin-true |
no-host |
106,351 |
65,409 |
807,914 |
133,160 |
133,254 |
7.60 |
1.25 |
| configure.cpython |
no-host |
1,994,255 |
2,016,785 |
6,797,827 |
2,023,071 |
2,019,805 |
3.41 |
1.01 |
| configure.ocaml |
no-host |
373,023 |
353,879 |
623,771 |
376,424 |
375,699 |
1.67 |
1.01 |
| configure.tcc |
no-host |
6,083 |
5,006 |
24,148 |
6,505 |
6,473 |
3.97 |
1.07 |
| configure.util-linux |
no-host |
1,916,239 |
2,068,554 |
6,088,290 |
1,831,833 |
1,824,492 |
3.18 |
0.96 |
| configure.yash |
no-host |
233,967 |
222,237 |
374,133 |
235,284 |
235,659 |
1.60 |
1.01 |
| hello-world |
no-host |
146 |
78 |
3,981 |
346 |
339 |
27.27 |
2.37 |
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.2 |
3,809 |
3,809 |
0 |
702 |
1,870 |
1,237 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
787 |
1 |
3 |
2.6 |
8.4 |
156,800 |
37,848 |
13,859 |
8,777 |
77,337 |
70,686 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,958 |
5 |
160 |
17.2 |
29.2 |
1,785,047 |
74,719 |
69,163 |
91,536 |
886,574 |
806,937 |
25,736 |
67 |
114,984 |
2 |
| configure.util-linux |
no-host |
13,927 |
6 |
114 |
22.2 |
30.2 |
2,709,230 |
138,179 |
81,265 |
114,399 |
1,295,026 |
1,299,805 |
32,241 |
49 |
162,530 |
2 |
| configure.ocaml |
no-host |
3,741 |
1 |
2 |
2.7 |
22.6 |
149,884 |
20,457 |
10,096 |
7,755 |
70,874 |
71,255 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.3 |
19.6 |
30,585 |
30,585 |
0 |
1,549 |
14,636 |
14,400 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,786 |
1 |
2 |
2.6 |
26.4 |
139,903 |
13,746 |
8,684 |
6,416 |
68,339 |
65,148 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.2 |
116,345 |
64,500 |
42,705 |
4,551 |
54,461 |
57,333 |
277 |
3 |
85,410 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
5.9 |
3,808 |
3,808 |
0 |
703 |
1,870 |
1,235 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
778 |
1 |
3 |
2.6 |
7.9 |
156,799 |
37,768 |
13,855 |
8,778 |
77,337 |
70,684 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,159 |
5 |
157 |
17.1 |
29.3 |
1,785,046 |
99,583 |
67,086 |
91,537 |
886,574 |
806,935 |
25,736 |
66 |
113,170 |
2 |
| configure.util-linux |
no-host |
14,149 |
6 |
117 |
22.2 |
30.3 |
2,709,230 |
138,172 |
81,258 |
114,401 |
1,295,026 |
1,299,803 |
32,241 |
49 |
162,516 |
2 |
| configure.ocaml |
no-host |
3,741 |
1 |
2 |
2.7 |
22.6 |
149,884 |
20,451 |
10,090 |
7,757 |
70,874 |
71,253 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.3 |
19.6 |
30,585 |
30,585 |
0 |
1,551 |
14,636 |
14,398 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,778 |
1 |
2 |
2.6 |
26.4 |
139,903 |
13,741 |
8,679 |
6,418 |
68,339 |
65,146 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
2.8 |
8.7 |
116,344 |
64,495 |
42,700 |
4,552 |
54,461 |
57,331 |
277 |
3 |
85,400 |
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 |
18 |
7 |
12 |
4.5 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.5 |
dash |
| 23 |
no-host |
abuild-print-help |
472 |
418 |
58 |
22.9 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
20 |
10 |
10 |
8.7 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
637 |
294 |
379 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
514 |
279 |
246 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,357 |
822 |
1,796 |
24.1 |
osh-cpython |
| 25 |
no-host |
bin-true |
787 |
308 |
499 |
8.4 |
osh-native |
| 33 |
no-host |
bin-true |
778 |
281 |
520 |
7.9 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
14,460 |
6,631 |
8,231 |
29.3 |
bash |
| 10 |
no-host |
configure.cpython |
14,541 |
6,571 |
8,382 |
29.3 |
dash |
| 18 |
no-host |
configure.cpython |
29,947 |
14,517 |
17,338 |
37.8 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
14,958 |
6,624 |
8,627 |
29.2 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,159 |
6,648 |
8,632 |
29.3 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,720 |
1,279 |
1,481 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,662 |
1,295 |
1,388 |
22.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,605 |
1,875 |
1,945 |
22.5 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,741 |
1,319 |
1,463 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,741 |
1,280 |
1,498 |
22.6 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
46 |
22 |
25 |
19.7 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
18 |
23 |
19.8 |
dash |
| 21 |
no-host |
configure.tcc |
205 |
132 |
77 |
19.7 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
47 |
18 |
30 |
19.6 |
osh-native |
| 37 |
no-host |
configure.tcc |
46 |
19 |
27 |
19.6 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
13,461 |
5,768 |
8,167 |
30.2 |
bash |
| 11 |
no-host |
configure.util-linux |
14,231 |
5,834 |
8,908 |
30.2 |
dash |
| 19 |
no-host |
configure.util-linux |
32,677 |
18,274 |
15,467 |
38.6 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
13,927 |
5,732 |
8,418 |
30.2 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,149 |
5,630 |
8,582 |
30.3 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,799 |
926 |
880 |
26.3 |
bash |
| 14 |
no-host |
configure.yash |
1,721 |
885 |
840 |
26.3 |
dash |
| 22 |
no-host |
configure.yash |
2,447 |
1,337 |
1,155 |
26.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,786 |
885 |
899 |
26.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,778 |
921 |
862 |
26.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
2.9 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
56 |
32 |
24 |
18.4 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
1 |
1 |
6.2 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
1 |
2 |
5.9 |
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,511 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,148 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,389 |
0 |
0 |
0 |
8 |
0 |
45 |
5 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,189 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,086 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,351 |
0 |
0 |
0 |
8 |
0 |
1,990 |
151 |
bash |
| 9 |
no-host |
bin-true |
65,409 |
0 |
0 |
0 |
8 |
0 |
1,978 |
68 |
dash |
| 17 |
no-host |
bin-true |
807,914 |
0 |
0 |
0 |
8 |
0 |
1,987 |
327 |
osh-cpython |
| 25 |
no-host |
bin-true |
133,160 |
0 |
0 |
0 |
16 |
0 |
1,984 |
322 |
osh-native |
| 33 |
no-host |
bin-true |
133,254 |
0 |
0 |
0 |
16 |
0 |
1,985 |
141 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,994,255 |
0 |
0 |
0 |
32,928 |
0 |
14,225 |
1,221 |
bash |
| 10 |
no-host |
configure.cpython |
2,016,785 |
0 |
0 |
0 |
32,992 |
0 |
14,343 |
1,314 |
dash |
| 18 |
no-host |
configure.cpython |
6,797,827 |
1 |
0 |
0 |
27,512 |
0 |
13,059 |
1,354 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,023,071 |
1 |
0 |
0 |
27,520 |
0 |
13,130 |
1,167 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,019,805 |
0 |
0 |
0 |
27,520 |
0 |
13,201 |
1,165 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,023 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
211 |
bash |
| 12 |
no-host |
configure.ocaml |
353,879 |
0 |
0 |
0 |
5,112 |
0 |
1,936 |
185 |
dash |
| 20 |
no-host |
configure.ocaml |
623,771 |
1 |
0 |
0 |
5,112 |
0 |
1,846 |
186 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
376,424 |
0 |
0 |
0 |
5,120 |
0 |
1,919 |
223 |
osh-native |
| 36 |
no-host |
configure.ocaml |
375,699 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
176 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,083 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
5,006 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
24,148 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,505 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,473 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,916,239 |
0 |
0 |
0 |
42,400 |
0 |
18,458 |
1,417 |
bash |
| 11 |
no-host |
configure.util-linux |
2,068,554 |
1 |
0 |
0 |
42,584 |
0 |
17,351 |
1,266 |
dash |
| 19 |
no-host |
configure.util-linux |
6,088,290 |
1 |
0 |
0 |
39,136 |
0 |
17,083 |
1,211 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,831,833 |
1 |
0 |
0 |
39,120 |
0 |
16,991 |
1,291 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,824,492 |
1 |
0 |
0 |
39,136 |
0 |
16,919 |
1,334 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,967 |
0 |
0 |
0 |
4,120 |
0 |
881 |
91 |
bash |
| 14 |
no-host |
configure.yash |
222,237 |
0 |
0 |
0 |
3,720 |
0 |
867 |
97 |
dash |
| 22 |
no-host |
configure.yash |
374,133 |
0 |
0 |
0 |
3,728 |
0 |
852 |
92 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,284 |
0 |
0 |
0 |
3,736 |
0 |
850 |
125 |
osh-native |
| 38 |
no-host |
configure.yash |
235,659 |
0 |
0 |
0 |
3,736 |
0 |
853 |
111 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
146 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,981 |
0 |
0 |
0 |
8 |
0 |
7 |
1 |
osh-cpython |
| 24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 32 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host