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.33 |
1.15 |
| bin-true |
no-host |
623 |
455 |
807 |
812 |
652 |
1.30 |
1.05 |
| configure.cpython |
no-host |
13,742 |
13,806 |
13,539 |
13,540 |
12,972 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
3,660 |
3,602 |
3,701 |
3,704 |
3,644 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
42 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,487 |
13,292 |
12,498 |
12,545 |
12,089 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,687 |
1,636 |
1,692 |
1,690 |
1,657 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
1.01 |
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,378 |
1,177 |
3,341 |
3,437 |
2,811 |
1.40 |
1.18 |
| bin-true |
no-host |
103,481 |
49,420 |
137,557 |
136,540 |
111,314 |
1.33 |
1.08 |
| configure.cpython |
no-host |
1,626,844 |
1,637,658 |
1,589,870 |
1,611,513 |
1,521,518 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,654 |
280,615 |
305,716 |
307,334 |
299,748 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,204 |
4,211 |
5,563 |
5,705 |
5,115 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,535,627 |
1,698,273 |
1,506,472 |
1,514,143 |
1,449,952 |
0.98 |
0.94 |
| configure.yash |
no-host |
173,633 |
159,572 |
176,837 |
177,451 |
172,777 |
1.02 |
1.00 |
| hello-world |
no-host |
149 |
86 |
390 |
398 |
181 |
2.62 |
1.21 |
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.6 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
807 |
1 |
2 |
3.5 |
8.8 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,539 |
1 |
69 |
14.8 |
34.7 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,498 |
3 |
67 |
21.6 |
39.6 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,701 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.0 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,692 |
1 |
2 |
2.7 |
33.3 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,251 |
65,784 |
41,994 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
1 |
2 |
3.5 |
8.8 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,540 |
1 |
68 |
14.9 |
34.5 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,545 |
3 |
65 |
21.6 |
39.5 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,704 |
1 |
2 |
2.8 |
28.5 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.1 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,690 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,251 |
65,788 |
41,998 |
4,969 |
54,631 |
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 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
623 |
313 |
346 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
455 |
275 |
186 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
807 |
316 |
508 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
812 |
312 |
518 |
8.8 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
652 |
308 |
360 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,742 |
7,616 |
6,512 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,806 |
7,647 |
6,558 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,539 |
7,184 |
6,632 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,540 |
7,191 |
6,635 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,972 |
7,100 |
6,107 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,660 |
1,463 |
1,239 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,602 |
1,436 |
1,190 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,701 |
1,470 |
1,269 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,704 |
1,501 |
1,244 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,644 |
1,455 |
1,220 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
21 |
25 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
19 |
28 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
24 |
18 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,487 |
6,584 |
6,370 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,292 |
6,524 |
7,259 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,498 |
6,185 |
6,536 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,545 |
6,186 |
6,581 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,089 |
6,200 |
6,103 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,687 |
938 |
758 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,636 |
944 |
693 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,692 |
947 |
747 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,690 |
933 |
759 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,657 |
949 |
711 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,378 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,177 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,341 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,437 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,811 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,481 |
0 |
0 |
0 |
8 |
0 |
1,998 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,420 |
0 |
0 |
0 |
8 |
0 |
2,998 |
41 |
dash |
| 17 |
no-host |
bin-true |
137,557 |
0 |
0 |
0 |
16 |
0 |
1,999 |
60 |
osh-native |
| 25 |
no-host |
bin-true |
136,540 |
0 |
0 |
0 |
16 |
0 |
1,997 |
76 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,314 |
0 |
0 |
0 |
8 |
0 |
1,998 |
69 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,626,844 |
0 |
0 |
0 |
25,272 |
0 |
14,073 |
997 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,658 |
0 |
0 |
0 |
25,272 |
0 |
14,139 |
1,040 |
dash |
| 18 |
no-host |
configure.cpython |
1,589,870 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
857 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,611,513 |
0 |
0 |
0 |
25,280 |
0 |
11,269 |
843 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,518 |
1 |
0 |
0 |
25,272 |
0 |
11,265 |
934 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,654 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
201 |
bash |
| 12 |
no-host |
configure.ocaml |
280,615 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
305,716 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
245 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,334 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
178 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,748 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
217 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,204 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,211 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,563 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,705 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,115 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,627 |
2 |
0 |
0 |
35,944 |
0 |
18,974 |
1,093 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,273 |
0 |
0 |
0 |
35,936 |
0 |
17,056 |
1,141 |
dash |
| 19 |
no-host |
configure.util-linux |
1,506,472 |
1 |
0 |
0 |
35,952 |
0 |
16,157 |
877 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,514,143 |
0 |
0 |
0 |
35,944 |
0 |
16,217 |
942 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,952 |
1 |
0 |
0 |
35,944 |
0 |
16,148 |
940 |
osh-static |
| 6 |
no-host |
configure.yash |
173,633 |
0 |
0 |
0 |
3,616 |
0 |
878 |
106 |
bash |
| 14 |
no-host |
configure.yash |
159,572 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
104 |
dash |
| 22 |
no-host |
configure.yash |
176,837 |
0 |
0 |
8 |
3,624 |
0 |
859 |
104 |
osh-native |
| 30 |
no-host |
configure.yash |
177,451 |
0 |
0 |
0 |
3,632 |
0 |
857 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,777 |
0 |
0 |
0 |
3,624 |
0 |
857 |
99 |
osh-static |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
390 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
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