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 |
19 |
9 |
492 |
22 |
21 |
25.61 |
1.16 |
| bin-true |
no-host |
675 |
542 |
2,457 |
805 |
812 |
3.64 |
1.19 |
| configure.cpython |
no-host |
15,471 |
15,529 |
30,721 |
15,662 |
15,851 |
1.99 |
1.01 |
| configure.ocaml |
no-host |
3,877 |
3,843 |
4,814 |
3,947 |
3,944 |
1.24 |
1.02 |
| configure.tcc |
no-host |
48 |
41 |
219 |
49 |
50 |
4.60 |
1.03 |
| configure.util-linux |
no-host |
14,295 |
15,186 |
33,674 |
14,900 |
14,811 |
2.36 |
1.04 |
| configure.yash |
no-host |
1,883 |
1,820 |
2,575 |
1,899 |
1,938 |
1.37 |
1.01 |
| hello-world |
no-host |
1 |
1 |
61 |
3 |
3 |
42.61 |
1.97 |
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,517 |
1,088 |
24,453 |
3,195 |
3,101 |
9.72 |
1.27 |
| bin-true |
no-host |
106,299 |
65,419 |
793,162 |
126,206 |
127,216 |
7.46 |
1.19 |
| configure.cpython |
no-host |
1,994,828 |
2,018,031 |
6,114,431 |
2,016,897 |
2,003,970 |
3.07 |
1.01 |
| configure.ocaml |
no-host |
373,052 |
354,164 |
616,413 |
376,642 |
376,559 |
1.65 |
1.01 |
| configure.tcc |
no-host |
6,094 |
4,999 |
23,932 |
6,491 |
6,449 |
3.93 |
1.07 |
| configure.util-linux |
no-host |
1,912,638 |
2,065,672 |
5,318,291 |
1,828,737 |
1,817,235 |
2.78 |
0.96 |
| configure.yash |
no-host |
233,590 |
221,647 |
366,995 |
235,123 |
235,392 |
1.57 |
1.01 |
| hello-world |
no-host |
147 |
75 |
3,978 |
346 |
339 |
27.06 |
2.35 |
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.4 |
3,809 |
3,809 |
0 |
702 |
1,870 |
1,237 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
1 |
2 |
2.6 |
8.1 |
156,776 |
15,415 |
2,902 |
8,754 |
77,337 |
70,685 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,662 |
2 |
75 |
15.2 |
29.0 |
1,785,026 |
49,178 |
25,897 |
91,515 |
886,574 |
806,937 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,900 |
3 |
73 |
21.6 |
30.2 |
2,709,314 |
56,212 |
66,557 |
114,407 |
1,295,060 |
1,299,847 |
32,244 |
42 |
133,114 |
1 |
| configure.ocaml |
no-host |
3,947 |
1 |
2 |
2.6 |
22.6 |
149,878 |
12,466 |
6,509 |
7,749 |
70,874 |
71,255 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.6 |
30,579 |
30,579 |
0 |
1,544 |
14,636 |
14,399 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,899 |
1 |
2 |
2.6 |
26.4 |
139,885 |
8,046 |
6,701 |
6,399 |
68,339 |
65,147 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.2 |
116,339 |
64,421 |
42,626 |
4,546 |
54,461 |
57,332 |
277 |
3 |
85,252 |
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 |
812 |
1 |
2 |
2.6 |
7.6 |
156,775 |
15,410 |
2,897 |
8,755 |
77,337 |
70,683 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
15,851 |
2 |
78 |
15.2 |
29.2 |
1,785,025 |
49,165 |
25,884 |
91,516 |
886,574 |
806,935 |
25,736 |
62 |
50,000 |
0 |
| configure.util-linux |
no-host |
14,811 |
3 |
72 |
21.6 |
30.2 |
2,709,208 |
56,187 |
66,550 |
114,379 |
1,295,026 |
1,299,803 |
32,241 |
42 |
133,100 |
1 |
| configure.ocaml |
no-host |
3,944 |
1 |
2 |
2.6 |
22.5 |
149,878 |
12,460 |
6,503 |
7,751 |
70,874 |
71,253 |
1,695 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.6 |
30,579 |
30,579 |
0 |
1,546 |
14,636 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,938 |
1 |
2 |
2.6 |
26.4 |
139,885 |
8,035 |
6,690 |
6,401 |
68,339 |
65,145 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.8 |
116,338 |
64,416 |
42,621 |
4,547 |
54,461 |
57,330 |
277 |
3 |
85,242 |
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 |
19 |
9 |
10 |
4.3 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.4 |
dash |
| 23 |
no-host |
abuild-print-help |
492 |
434 |
62 |
23.0 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
22 |
8 |
15 |
9.2 |
osh-native |
| 39 |
no-host |
abuild-print-help |
21 |
12 |
10 |
8.8 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
675 |
311 |
388 |
2.9 |
bash |
| 9 |
no-host |
bin-true |
542 |
271 |
277 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
2,457 |
861 |
1,877 |
18.6 |
osh-cpython |
| 25 |
no-host |
bin-true |
805 |
300 |
518 |
8.1 |
osh-native |
| 33 |
no-host |
bin-true |
812 |
289 |
536 |
7.6 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
15,471 |
6,926 |
8,956 |
29.2 |
bash |
| 10 |
no-host |
configure.cpython |
15,529 |
6,962 |
8,982 |
29.2 |
dash |
| 18 |
no-host |
configure.cpython |
30,721 |
15,628 |
17,122 |
29.2 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
15,662 |
7,077 |
8,869 |
29.0 |
osh-native |
| 34 |
no-host |
configure.cpython |
15,851 |
6,972 |
9,032 |
29.2 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
3,877 |
1,375 |
1,542 |
22.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,843 |
1,349 |
1,517 |
22.6 |
dash |
| 20 |
no-host |
configure.ocaml |
4,814 |
1,968 |
2,066 |
22.6 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
3,947 |
1,391 |
1,594 |
22.6 |
osh-native |
| 36 |
no-host |
configure.ocaml |
3,944 |
1,395 |
1,581 |
22.5 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
48 |
28 |
20 |
19.7 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
19 |
22 |
19.4 |
dash |
| 21 |
no-host |
configure.tcc |
219 |
159 |
64 |
19.6 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
49 |
20 |
30 |
19.6 |
osh-native |
| 37 |
no-host |
configure.tcc |
50 |
22 |
29 |
19.6 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
14,295 |
6,127 |
8,673 |
30.3 |
bash |
| 11 |
no-host |
configure.util-linux |
15,186 |
6,205 |
9,505 |
30.1 |
dash |
| 19 |
no-host |
configure.util-linux |
33,674 |
19,255 |
15,560 |
30.3 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
14,900 |
5,929 |
9,168 |
30.2 |
osh-native |
| 35 |
no-host |
configure.util-linux |
14,811 |
5,910 |
9,115 |
30.2 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
1,883 |
963 |
930 |
26.4 |
bash |
| 14 |
no-host |
configure.yash |
1,820 |
965 |
861 |
26.3 |
dash |
| 22 |
no-host |
configure.yash |
2,575 |
1,403 |
1,217 |
26.4 |
osh-cpython |
| 30 |
no-host |
configure.yash |
1,899 |
953 |
950 |
26.4 |
osh-native |
| 38 |
no-host |
configure.yash |
1,938 |
945 |
994 |
26.4 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
61 |
42 |
19 |
18.3 |
osh-cpython |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.4 |
osh-native |
| 32 |
no-host |
hello-world |
3 |
2 |
1 |
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,517 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,088 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
24,453 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
| 31 |
no-host |
abuild-print-help |
3,195 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 39 |
no-host |
abuild-print-help |
3,101 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
| 1 |
no-host |
bin-true |
106,299 |
0 |
0 |
0 |
8 |
0 |
1,990 |
131 |
bash |
| 9 |
no-host |
bin-true |
65,419 |
0 |
0 |
0 |
8 |
0 |
1,988 |
103 |
dash |
| 17 |
no-host |
bin-true |
793,162 |
0 |
0 |
0 |
8 |
0 |
1,997 |
268 |
osh-cpython |
| 25 |
no-host |
bin-true |
126,206 |
0 |
0 |
0 |
16 |
0 |
1,984 |
149 |
osh-native |
| 33 |
no-host |
bin-true |
127,216 |
0 |
0 |
0 |
16 |
0 |
1,984 |
104 |
osh-native-souffle |
| 2 |
no-host |
configure.cpython |
1,994,828 |
0 |
0 |
0 |
32,928 |
0 |
14,230 |
1,125 |
bash |
| 10 |
no-host |
configure.cpython |
2,018,031 |
0 |
0 |
0 |
32,992 |
0 |
14,334 |
1,141 |
dash |
| 18 |
no-host |
configure.cpython |
6,114,431 |
0 |
0 |
0 |
27,512 |
0 |
13,035 |
1,121 |
osh-cpython |
| 26 |
no-host |
configure.cpython |
2,016,897 |
0 |
0 |
0 |
27,520 |
0 |
13,122 |
1,069 |
osh-native |
| 34 |
no-host |
configure.cpython |
2,003,970 |
0 |
0 |
0 |
27,520 |
0 |
13,053 |
980 |
osh-native-souffle |
| 4 |
no-host |
configure.ocaml |
373,052 |
0 |
0 |
0 |
5,120 |
0 |
1,940 |
181 |
bash |
| 12 |
no-host |
configure.ocaml |
354,164 |
0 |
0 |
0 |
5,112 |
0 |
1,934 |
191 |
dash |
| 20 |
no-host |
configure.ocaml |
616,413 |
0 |
0 |
0 |
5,112 |
0 |
1,847 |
198 |
osh-cpython |
| 28 |
no-host |
configure.ocaml |
376,642 |
0 |
0 |
0 |
5,120 |
0 |
1,920 |
219 |
osh-native |
| 36 |
no-host |
configure.ocaml |
376,559 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
193 |
osh-native-souffle |
| 5 |
no-host |
configure.tcc |
6,094 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,999 |
0 |
0 |
0 |
96 |
0 |
46 |
0 |
dash |
| 21 |
no-host |
configure.tcc |
23,932 |
0 |
0 |
0 |
96 |
0 |
52 |
4 |
osh-cpython |
| 29 |
no-host |
configure.tcc |
6,491 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
| 37 |
no-host |
configure.tcc |
6,449 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native-souffle |
| 3 |
no-host |
configure.util-linux |
1,912,638 |
1 |
0 |
0 |
42,400 |
0 |
18,513 |
1,220 |
bash |
| 11 |
no-host |
configure.util-linux |
2,065,672 |
1 |
0 |
0 |
42,592 |
0 |
17,379 |
1,322 |
dash |
| 19 |
no-host |
configure.util-linux |
5,318,291 |
4 |
0 |
0 |
39,120 |
0 |
17,019 |
1,273 |
osh-cpython |
| 27 |
no-host |
configure.util-linux |
1,828,737 |
0 |
0 |
0 |
39,144 |
0 |
16,994 |
1,165 |
osh-native |
| 35 |
no-host |
configure.util-linux |
1,817,235 |
4 |
0 |
0 |
39,136 |
0 |
16,981 |
1,192 |
osh-native-souffle |
| 6 |
no-host |
configure.yash |
233,590 |
0 |
0 |
0 |
4,120 |
0 |
869 |
92 |
bash |
| 14 |
no-host |
configure.yash |
221,647 |
0 |
0 |
0 |
3,720 |
0 |
870 |
88 |
dash |
| 22 |
no-host |
configure.yash |
366,995 |
0 |
0 |
0 |
3,728 |
0 |
853 |
93 |
osh-cpython |
| 30 |
no-host |
configure.yash |
235,123 |
0 |
0 |
0 |
3,736 |
0 |
848 |
88 |
osh-native |
| 38 |
no-host |
configure.yash |
235,392 |
0 |
0 |
0 |
3,736 |
0 |
853 |
87 |
osh-native-souffle |
| 0 |
no-host |
hello-world |
147 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
75 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
3,978 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
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 |
1 |
osh-native-souffle |
Shell and Host