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.18 |
| bin-true |
no-host |
619 |
440 |
804 |
808 |
643 |
1.30 |
1.04 |
| configure.cpython |
no-host |
14,005 |
14,179 |
13,483 |
13,820 |
12,975 |
0.96 |
0.93 |
| configure.ocaml |
no-host |
3,658 |
3,644 |
3,802 |
3,761 |
3,701 |
1.04 |
1.01 |
| configure.tcc |
no-host |
45 |
41 |
47 |
49 |
43 |
1.04 |
0.95 |
| configure.util-linux |
no-host |
12,640 |
13,564 |
12,480 |
12,694 |
12,528 |
0.99 |
0.99 |
| configure.yash |
no-host |
1,691 |
1,647 |
1,756 |
1,714 |
1,701 |
1.04 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.27 |
0.95 |
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,419 |
1,165 |
3,294 |
3,458 |
2,808 |
1.36 |
1.16 |
| bin-true |
no-host |
101,429 |
49,390 |
133,542 |
133,558 |
111,385 |
1.32 |
1.10 |
| configure.cpython |
no-host |
1,625,412 |
1,639,766 |
1,591,083 |
1,608,645 |
1,522,900 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,740 |
280,561 |
306,348 |
307,716 |
299,733 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,233 |
4,213 |
5,570 |
5,699 |
5,115 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,542,485 |
1,698,017 |
1,498,114 |
1,511,560 |
1,450,226 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,283 |
159,586 |
177,185 |
176,805 |
172,773 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
84 |
389 |
398 |
180 |
2.56 |
1.18 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
1 |
2 |
3.5 |
8.7 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,483 |
1 |
65 |
14.8 |
34.6 |
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,480 |
3 |
63 |
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,802 |
1 |
2 |
2.8 |
28.5 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,756 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
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 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
1 |
2 |
3.5 |
9.0 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,820 |
1 |
67 |
14.9 |
34.4 |
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,694 |
3 |
66 |
21.6 |
39.4 |
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,761 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,714 |
1 |
2 |
2.7 |
33.3 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
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 |
15 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
11 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
619 |
310 |
346 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
440 |
266 |
179 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
804 |
307 |
514 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
808 |
309 |
516 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
643 |
317 |
345 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,005 |
7,689 |
6,695 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,179 |
7,724 |
6,858 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,483 |
7,195 |
6,559 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,820 |
7,380 |
6,726 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,975 |
7,161 |
6,047 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,658 |
1,520 |
1,175 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,644 |
1,499 |
1,169 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,802 |
1,511 |
1,330 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,761 |
1,516 |
1,286 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,701 |
1,458 |
1,275 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
23 |
23 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
17 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
27 |
23 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
26 |
17 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,640 |
6,684 |
6,422 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,564 |
6,656 |
7,406 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,480 |
6,102 |
6,596 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,694 |
6,336 |
6,578 |
39.4 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,528 |
6,382 |
6,361 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,691 |
950 |
749 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,647 |
948 |
700 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,756 |
932 |
826 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,714 |
979 |
738 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,701 |
908 |
795 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
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,419 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,165 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,294 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,458 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,808 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,429 |
0 |
0 |
0 |
8 |
0 |
1,998 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,390 |
0 |
0 |
0 |
8 |
0 |
2,995 |
56 |
dash |
| 17 |
no-host |
bin-true |
133,542 |
0 |
0 |
0 |
16 |
0 |
1,999 |
83 |
osh-native |
| 25 |
no-host |
bin-true |
133,558 |
0 |
0 |
0 |
16 |
0 |
2,000 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,385 |
0 |
0 |
0 |
8 |
0 |
1,995 |
56 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,412 |
0 |
0 |
0 |
25,272 |
0 |
14,093 |
1,026 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,766 |
0 |
0 |
0 |
25,272 |
0 |
14,121 |
1,024 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,083 |
0 |
0 |
0 |
25,280 |
0 |
11,287 |
803 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,645 |
4 |
0 |
0 |
25,280 |
0 |
11,310 |
858 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,900 |
0 |
0 |
0 |
25,272 |
0 |
11,293 |
804 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,740 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
181 |
bash |
| 12 |
no-host |
configure.ocaml |
280,561 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
188 |
dash |
| 20 |
no-host |
configure.ocaml |
306,348 |
0 |
0 |
8 |
4,440 |
0 |
1,994 |
228 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,716 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
182 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,733 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
197 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,233 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
51 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,570 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,699 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,115 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,542,485 |
0 |
0 |
0 |
35,944 |
0 |
18,978 |
1,078 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,017 |
1 |
0 |
0 |
35,936 |
0 |
17,162 |
1,214 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,114 |
2 |
0 |
0 |
35,952 |
0 |
16,145 |
1,010 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,511,560 |
2 |
0 |
0 |
35,944 |
0 |
16,164 |
937 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,226 |
1 |
0 |
0 |
35,936 |
0 |
16,135 |
968 |
osh-static |
| 6 |
no-host |
configure.yash |
173,283 |
0 |
0 |
0 |
3,616 |
0 |
878 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,586 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
109 |
dash |
| 22 |
no-host |
configure.yash |
177,185 |
0 |
0 |
0 |
3,632 |
0 |
854 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
176,805 |
0 |
0 |
0 |
3,624 |
0 |
856 |
98 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,773 |
0 |
0 |
0 |
3,616 |
0 |
857 |
103 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
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 |
389 |
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 |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host