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-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
16 |
9 |
21 |
22 |
18 |
1.30 |
1.13 |
| bin-true |
no-host |
618 |
447 |
801 |
814 |
658 |
1.30 |
1.06 |
| configure.cpython |
no-host |
14,106 |
14,100 |
13,811 |
13,798 |
13,247 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,711 |
3,674 |
3,754 |
3,773 |
3,708 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
49 |
48 |
43 |
1.05 |
0.93 |
| configure.util-linux |
no-host |
12,806 |
13,516 |
12,758 |
12,893 |
12,396 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,737 |
1,689 |
1,732 |
1,752 |
1,702 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.00 |
Minor Page Faults
| workload |
host name |
bash |
dash |
osh-native |
osh-nosouffle |
osh-static |
osh bash ratio |
static bash ratio |
| abuild-print-help |
no-host |
2,426 |
1,178 |
3,310 |
3,386 |
2,802 |
1.36 |
1.15 |
| bin-true |
no-host |
99,497 |
49,405 |
130,354 |
131,950 |
110,041 |
1.31 |
1.11 |
| configure.cpython |
no-host |
1,620,234 |
1,643,143 |
1,592,873 |
1,609,939 |
1,523,509 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,177 |
280,657 |
305,222 |
306,279 |
300,937 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,222 |
4,206 |
5,604 |
5,656 |
5,143 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,535,885 |
1,705,772 |
1,498,519 |
1,517,974 |
1,457,753 |
0.98 |
0.95 |
| configure.yash |
no-host |
173,270 |
159,549 |
176,470 |
177,208 |
173,071 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
84 |
393 |
400 |
181 |
2.60 |
1.20 |
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.7 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
1 |
2 |
3.5 |
8.8 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,811 |
1 |
69 |
14.8 |
34.4 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,758 |
3 |
67 |
21.6 |
39.5 |
2,705,279 |
37,450 |
66,323 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,754 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.1 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,732 |
1 |
2 |
2.7 |
33.2 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
814 |
1 |
2 |
3.5 |
9.0 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,798 |
1 |
68 |
14.8 |
34.6 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,893 |
3 |
68 |
21.6 |
39.5 |
2,705,279 |
37,456 |
66,329 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,773 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.1 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,752 |
1 |
2 |
2.7 |
33.3 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,212 |
65,788 |
41,998 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,996 |
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 |
8 |
8 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
13 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
8 |
10 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
618 |
319 |
337 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
447 |
274 |
178 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
801 |
316 |
507 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
814 |
308 |
524 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
658 |
323 |
352 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,106 |
7,782 |
6,718 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,100 |
7,681 |
6,831 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,811 |
7,285 |
6,811 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,798 |
7,264 |
6,830 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,247 |
7,298 |
6,198 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,711 |
1,468 |
1,284 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,674 |
1,507 |
1,192 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,754 |
1,510 |
1,282 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,773 |
1,531 |
1,282 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,708 |
1,523 |
1,217 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
20 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
25 |
25 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
23 |
25 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
23 |
21 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,806 |
6,685 |
6,585 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,516 |
6,639 |
7,380 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,758 |
6,309 |
6,677 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,893 |
6,324 |
6,801 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,396 |
6,321 |
6,299 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,737 |
974 |
771 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,689 |
964 |
726 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,732 |
974 |
760 |
33.2 |
osh-native |
| 30 |
no-host |
configure.yash |
1,752 |
961 |
793 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,702 |
928 |
776 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
3.4 |
osh-static |
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,426 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,178 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,310 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,386 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,802 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,497 |
0 |
0 |
0 |
8 |
0 |
2,000 |
64 |
bash |
| 9 |
no-host |
bin-true |
49,405 |
0 |
0 |
0 |
8 |
0 |
2,996 |
46 |
dash |
| 17 |
no-host |
bin-true |
130,354 |
0 |
0 |
0 |
16 |
0 |
2,000 |
72 |
osh-native |
| 25 |
no-host |
bin-true |
131,950 |
0 |
0 |
0 |
16 |
0 |
2,001 |
82 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,041 |
0 |
0 |
0 |
8 |
0 |
2,000 |
77 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,234 |
0 |
0 |
0 |
25,272 |
0 |
14,068 |
1,013 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,143 |
0 |
0 |
0 |
25,272 |
0 |
14,109 |
1,072 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,873 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
845 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,609,939 |
0 |
0 |
0 |
25,280 |
0 |
11,322 |
864 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,509 |
0 |
0 |
0 |
25,272 |
0 |
11,306 |
854 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,177 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
280,657 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
195 |
dash |
| 20 |
no-host |
configure.ocaml |
305,222 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
235 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,279 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
203 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,937 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
195 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,222 |
0 |
0 |
0 |
80 |
0 |
48 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,206 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,604 |
0 |
0 |
0 |
96 |
0 |
44 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,656 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,143 |
0 |
0 |
0 |
88 |
0 |
44 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,885 |
0 |
0 |
232 |
35,944 |
0 |
19,007 |
1,018 |
bash |
| 11 |
no-host |
configure.util-linux |
1,705,772 |
2 |
0 |
0 |
35,936 |
0 |
17,046 |
1,169 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,519 |
0 |
0 |
0 |
35,952 |
0 |
16,186 |
932 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,517,974 |
1 |
0 |
0 |
35,944 |
0 |
16,190 |
969 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,753 |
1 |
0 |
0 |
35,936 |
0 |
16,183 |
892 |
osh-static |
| 6 |
no-host |
configure.yash |
173,270 |
0 |
0 |
0 |
3,616 |
0 |
875 |
112 |
bash |
| 14 |
no-host |
configure.yash |
159,549 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
107 |
dash |
| 22 |
no-host |
configure.yash |
176,470 |
0 |
0 |
0 |
3,624 |
0 |
856 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
177,208 |
0 |
0 |
0 |
3,624 |
0 |
856 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,071 |
0 |
0 |
0 |
3,616 |
0 |
856 |
100 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host