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.17 |
| bin-true |
no-host |
619 |
441 |
808 |
825 |
655 |
1.31 |
1.06 |
| configure.cpython |
no-host |
13,891 |
14,026 |
13,742 |
13,937 |
13,255 |
0.99 |
0.95 |
| configure.ocaml |
no-host |
3,701 |
3,663 |
3,788 |
3,777 |
3,771 |
1.02 |
1.02 |
| configure.tcc |
no-host |
46 |
41 |
47 |
48 |
44 |
1.04 |
0.96 |
| configure.util-linux |
no-host |
12,619 |
13,570 |
12,778 |
12,847 |
12,471 |
1.01 |
0.99 |
| configure.yash |
no-host |
1,730 |
1,665 |
1,740 |
1,732 |
1,722 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.26 |
0.94 |
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,375 |
1,169 |
3,320 |
3,425 |
2,805 |
1.40 |
1.18 |
| bin-true |
no-host |
101,425 |
49,371 |
136,531 |
137,526 |
111,327 |
1.35 |
1.10 |
| configure.cpython |
no-host |
1,621,235 |
1,643,077 |
1,585,930 |
1,612,765 |
1,522,058 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,347 |
280,931 |
306,204 |
307,595 |
299,815 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,231 |
4,221 |
5,597 |
5,656 |
5,129 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,941 |
1,698,337 |
1,496,860 |
1,505,537 |
1,449,550 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,145 |
159,620 |
176,721 |
176,803 |
172,709 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
85 |
392 |
397 |
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.6 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
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,742 |
1 |
66 |
14.8 |
34.4 |
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,778 |
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,788 |
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 |
47 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,740 |
1 |
2 |
2.7 |
33.1 |
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.3 |
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 |
825 |
1 |
2 |
3.5 |
9.2 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,937 |
1 |
68 |
14.9 |
34.7 |
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,847 |
3 |
67 |
21.6 |
39.7 |
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,777 |
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 |
48 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,732 |
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.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
9 |
13 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
9 |
10 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
619 |
305 |
353 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
441 |
278 |
169 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
808 |
305 |
520 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
825 |
293 |
548 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
655 |
315 |
359 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,891 |
7,583 |
6,695 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,026 |
7,612 |
6,805 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,742 |
7,259 |
6,730 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,937 |
7,422 |
6,800 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,255 |
7,292 |
6,192 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,701 |
1,488 |
1,251 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,663 |
1,520 |
1,168 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,788 |
1,511 |
1,315 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,777 |
1,507 |
1,310 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,771 |
1,523 |
1,280 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
20 |
26 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
23 |
22 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,619 |
6,706 |
6,365 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,570 |
6,546 |
7,507 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,778 |
6,318 |
6,682 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,847 |
6,348 |
6,713 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,471 |
6,331 |
6,357 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,730 |
958 |
779 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,665 |
950 |
717 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,740 |
966 |
776 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,732 |
948 |
785 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,722 |
980 |
737 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
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,375 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,169 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,320 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,425 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,805 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,425 |
0 |
0 |
0 |
8 |
0 |
1,999 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,371 |
0 |
0 |
0 |
8 |
0 |
3,000 |
35 |
dash |
| 17 |
no-host |
bin-true |
136,531 |
0 |
0 |
0 |
16 |
0 |
1,995 |
67 |
osh-native |
| 25 |
no-host |
bin-true |
137,526 |
0 |
0 |
0 |
16 |
0 |
1,996 |
79 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,327 |
0 |
0 |
0 |
8 |
0 |
1,999 |
82 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,235 |
0 |
0 |
0 |
25,272 |
0 |
14,071 |
986 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,077 |
0 |
0 |
0 |
25,272 |
0 |
14,107 |
1,035 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,930 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
841 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,612,765 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
874 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,058 |
0 |
0 |
0 |
25,272 |
0 |
11,316 |
824 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,347 |
0 |
0 |
0 |
4,432 |
0 |
2,015 |
212 |
bash |
| 12 |
no-host |
configure.ocaml |
280,931 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
306,204 |
0 |
0 |
8 |
4,440 |
0 |
1,999 |
242 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,595 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
239 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,815 |
0 |
0 |
0 |
4,432 |
0 |
1,996 |
212 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,231 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,221 |
0 |
0 |
0 |
88 |
0 |
52 |
0 |
dash |
| 21 |
no-host |
configure.tcc |
5,597 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,656 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,129 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,941 |
0 |
0 |
0 |
35,944 |
0 |
18,982 |
991 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,337 |
0 |
0 |
0 |
35,936 |
0 |
17,105 |
1,207 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,860 |
3 |
0 |
0 |
35,952 |
0 |
16,137 |
932 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,505,537 |
0 |
0 |
0 |
35,944 |
0 |
16,208 |
893 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,550 |
1 |
0 |
0 |
35,936 |
0 |
16,125 |
922 |
osh-static |
| 6 |
no-host |
configure.yash |
173,145 |
0 |
0 |
0 |
3,616 |
0 |
879 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,620 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
103 |
dash |
| 22 |
no-host |
configure.yash |
176,721 |
0 |
0 |
0 |
3,624 |
0 |
858 |
99 |
osh-native |
| 30 |
no-host |
configure.yash |
176,803 |
0 |
0 |
0 |
3,632 |
0 |
858 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,709 |
0 |
0 |
0 |
3,616 |
0 |
858 |
99 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
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