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 |
15 |
9 |
20 |
21 |
18 |
1.30 |
1.16 |
| bin-true |
no-host |
615 |
434 |
807 |
805 |
644 |
1.31 |
1.05 |
| configure.cpython |
no-host |
13,712 |
13,917 |
13,611 |
13,413 |
12,756 |
0.99 |
0.93 |
| configure.ocaml |
no-host |
3,634 |
3,601 |
3,670 |
3,695 |
3,630 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.04 |
0.95 |
| configure.util-linux |
no-host |
12,386 |
13,370 |
12,632 |
12,399 |
11,971 |
1.02 |
0.97 |
| configure.yash |
no-host |
1,689 |
1,634 |
1,670 |
1,680 |
1,646 |
0.99 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.45 |
1.05 |
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,384 |
1,164 |
3,275 |
3,419 |
2,804 |
1.37 |
1.18 |
| bin-true |
no-host |
101,484 |
49,406 |
136,298 |
136,000 |
109,990 |
1.34 |
1.08 |
| configure.cpython |
no-host |
1,620,510 |
1,638,358 |
1,596,298 |
1,607,900 |
1,524,458 |
0.99 |
0.94 |
| configure.ocaml |
no-host |
299,446 |
280,633 |
304,726 |
306,131 |
300,862 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,195 |
4,213 |
5,592 |
5,661 |
5,150 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,542,369 |
1,698,547 |
1,495,551 |
1,512,837 |
1,458,321 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,224 |
159,590 |
176,087 |
177,311 |
173,117 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
84 |
391 |
397 |
180 |
2.54 |
1.17 |
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 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,611 |
1 |
67 |
14.8 |
34.5 |
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,632 |
3 |
65 |
21.6 |
39.6 |
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,670 |
1 |
2 |
2.8 |
28.8 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.0 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,670 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.6 |
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 |
805 |
1 |
2 |
3.5 |
9.4 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,413 |
2 |
66 |
14.8 |
34.4 |
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,399 |
3 |
66 |
21.6 |
39.7 |
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,695 |
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 |
47 |
0 |
0 |
1.4 |
26.2 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,680 |
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 |
21 |
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 |
15 |
9 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
8 |
12 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
14 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
14 |
5 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
615 |
314 |
337 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
434 |
260 |
181 |
1.8 |
dash |
| 17 |
no-host |
bin-true |
807 |
315 |
508 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
805 |
324 |
496 |
9.4 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
644 |
311 |
349 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,712 |
7,517 |
6,568 |
34.3 |
bash |
| 10 |
no-host |
configure.cpython |
13,917 |
7,609 |
6,703 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,611 |
7,191 |
6,695 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,413 |
7,135 |
6,538 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,756 |
7,134 |
5,859 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,634 |
1,500 |
1,174 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,601 |
1,470 |
1,156 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,670 |
1,492 |
1,216 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,695 |
1,432 |
1,284 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,630 |
1,529 |
1,132 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
24 |
22 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
20 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
20 |
27 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
23 |
24 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
28 |
15 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,386 |
6,511 |
6,331 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,370 |
6,572 |
7,284 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,632 |
6,121 |
6,541 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,399 |
6,147 |
6,469 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,971 |
6,136 |
6,048 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,689 |
949 |
749 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,634 |
941 |
695 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,670 |
919 |
753 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,680 |
936 |
747 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,646 |
946 |
704 |
33.4 |
osh-static |
| 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 |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,384 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,164 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,275 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,419 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,804 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,484 |
0 |
0 |
0 |
8 |
0 |
1,999 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,406 |
0 |
0 |
0 |
8 |
0 |
2,998 |
38 |
dash |
| 17 |
no-host |
bin-true |
136,298 |
0 |
0 |
0 |
16 |
0 |
1,999 |
82 |
osh-native |
| 25 |
no-host |
bin-true |
136,000 |
0 |
0 |
0 |
16 |
0 |
1,998 |
86 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
109,990 |
0 |
0 |
0 |
8 |
0 |
1,997 |
58 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,510 |
0 |
0 |
0 |
25,296 |
0 |
14,078 |
1,039 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,358 |
0 |
0 |
0 |
25,272 |
0 |
14,135 |
1,023 |
dash |
| 18 |
no-host |
configure.cpython |
1,596,298 |
0 |
0 |
0 |
25,280 |
0 |
11,288 |
844 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,607,900 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
791 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,458 |
0 |
0 |
0 |
25,272 |
0 |
11,305 |
849 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,446 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
191 |
bash |
| 12 |
no-host |
configure.ocaml |
280,633 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
202 |
dash |
| 20 |
no-host |
configure.ocaml |
304,726 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
247 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,131 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
190 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,862 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
237 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,195 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,592 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,661 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,150 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,542,369 |
0 |
0 |
232 |
35,944 |
0 |
18,921 |
1,067 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,547 |
2 |
0 |
0 |
35,936 |
0 |
17,062 |
1,197 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,551 |
2 |
0 |
0 |
35,960 |
0 |
16,201 |
914 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,512,837 |
0 |
0 |
0 |
35,952 |
0 |
16,141 |
967 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,458,321 |
2 |
0 |
0 |
35,944 |
0 |
16,141 |
891 |
osh-static |
| 6 |
no-host |
configure.yash |
173,224 |
0 |
0 |
0 |
3,616 |
0 |
876 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,590 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
94 |
dash |
| 22 |
no-host |
configure.yash |
176,087 |
0 |
0 |
0 |
3,632 |
0 |
859 |
86 |
osh-native |
| 30 |
no-host |
configure.yash |
177,311 |
0 |
0 |
0 |
3,624 |
0 |
859 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,117 |
0 |
0 |
0 |
3,616 |
0 |
858 |
95 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
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 |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host