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.32 |
1.15 |
| bin-true |
no-host |
629 |
448 |
816 |
831 |
657 |
1.30 |
1.04 |
| configure.cpython |
no-host |
14,014 |
14,138 |
13,811 |
13,804 |
13,285 |
0.99 |
0.95 |
| configure.ocaml |
no-host |
3,737 |
3,670 |
3,803 |
3,773 |
3,724 |
1.02 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
47 |
48 |
44 |
1.01 |
0.93 |
| configure.util-linux |
no-host |
12,786 |
13,519 |
12,866 |
12,896 |
12,486 |
1.01 |
0.98 |
| configure.yash |
no-host |
1,744 |
1,675 |
1,734 |
1,735 |
1,707 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.35 |
0.98 |
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,413 |
1,154 |
3,267 |
3,436 |
2,849 |
1.35 |
1.18 |
| bin-true |
no-host |
102,448 |
49,368 |
133,990 |
138,634 |
111,720 |
1.31 |
1.09 |
| configure.cpython |
no-host |
1,618,403 |
1,637,750 |
1,590,049 |
1,599,565 |
1,516,964 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,373 |
280,862 |
306,024 |
306,758 |
300,127 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,225 |
4,221 |
5,600 |
5,633 |
5,133 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,839 |
1,697,375 |
1,525,507 |
1,519,433 |
1,476,300 |
0.99 |
0.96 |
| configure.yash |
no-host |
173,287 |
159,621 |
176,329 |
177,012 |
172,803 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
83 |
395 |
399 |
183 |
2.63 |
1.22 |
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,915 |
3,915 |
0 |
723 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
816 |
1 |
2 |
3.5 |
8.8 |
151,900 |
10,763 |
2,977 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,811 |
1 |
69 |
14.8 |
34.6 |
1,750,827 |
35,398 |
28,953 |
93,078 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,866 |
3 |
68 |
21.6 |
39.6 |
2,705,393 |
37,470 |
66,341 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,682 |
1 |
| configure.ocaml |
no-host |
3,803 |
1 |
2 |
2.8 |
28.7 |
149,700 |
12,655 |
6,570 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,734 |
1 |
2 |
2.7 |
33.4 |
143,476 |
11,507 |
6,624 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,234 |
65,800 |
42,007 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,014 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,914 |
3,914 |
0 |
722 |
1,921 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
831 |
1 |
2 |
3.5 |
9.2 |
151,900 |
10,767 |
2,981 |
14,782 |
72,395 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,804 |
1 |
66 |
14.8 |
34.5 |
1,750,826 |
36,457 |
28,958 |
93,077 |
869,762 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,896 |
3 |
66 |
21.6 |
39.5 |
2,705,393 |
37,476 |
66,347 |
119,746 |
1,291,872 |
1,293,775 |
32,527 |
42 |
132,694 |
1 |
| configure.ocaml |
no-host |
3,773 |
1 |
2 |
2.8 |
28.7 |
149,700 |
12,660 |
6,575 |
9,214 |
70,295 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.3 |
30,551 |
30,551 |
0 |
1,681 |
14,473 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,735 |
1 |
2 |
2.7 |
33.3 |
143,476 |
11,511 |
6,628 |
7,168 |
70,525 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,234 |
65,804 |
42,011 |
4,977 |
54,599 |
57,658 |
277 |
3 |
84,022 |
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 |
9 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
629 |
318 |
351 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
448 |
282 |
173 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
816 |
308 |
525 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
831 |
313 |
535 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
313 |
361 |
5.0 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,014 |
7,547 |
6,862 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,138 |
7,674 |
6,874 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,811 |
7,240 |
6,857 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,804 |
7,361 |
6,739 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,285 |
7,357 |
6,176 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,737 |
1,492 |
1,286 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,670 |
1,517 |
1,177 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,803 |
1,501 |
1,342 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,773 |
1,510 |
1,305 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,724 |
1,500 |
1,257 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
21 |
27 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
17 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
30 |
17 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
18 |
31 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
23 |
21 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,786 |
6,665 |
6,599 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,519 |
6,601 |
7,418 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,866 |
6,259 |
6,840 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,896 |
6,338 |
6,793 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,486 |
6,321 |
6,392 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,744 |
948 |
804 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,675 |
947 |
730 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,734 |
949 |
781 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,735 |
982 |
755 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,707 |
966 |
742 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.1 |
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,413 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,154 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,267 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,436 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,849 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,448 |
0 |
0 |
0 |
8 |
0 |
1,998 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,368 |
0 |
0 |
0 |
8 |
0 |
2,995 |
49 |
dash |
| 17 |
no-host |
bin-true |
133,990 |
0 |
0 |
0 |
16 |
0 |
1,996 |
79 |
osh-native |
| 25 |
no-host |
bin-true |
138,634 |
0 |
0 |
0 |
16 |
0 |
1,994 |
76 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,720 |
0 |
0 |
0 |
8 |
0 |
1,998 |
68 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,618,403 |
0 |
0 |
0 |
25,272 |
0 |
14,061 |
982 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,750 |
0 |
0 |
0 |
25,272 |
0 |
14,112 |
1,043 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,049 |
0 |
0 |
0 |
25,280 |
0 |
11,285 |
844 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,599,565 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
800 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,516,964 |
0 |
0 |
0 |
25,272 |
0 |
11,299 |
835 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,373 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,862 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
306,024 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
212 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,758 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
194 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,127 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
222 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,225 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,221 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,600 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,633 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,133 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,839 |
2 |
0 |
0 |
35,944 |
0 |
19,007 |
1,014 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,375 |
0 |
0 |
496 |
35,936 |
0 |
17,080 |
1,179 |
dash |
| 19 |
no-host |
configure.util-linux |
1,525,507 |
0 |
0 |
0 |
35,952 |
0 |
16,133 |
948 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,433 |
0 |
0 |
0 |
35,944 |
0 |
16,174 |
903 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,476,300 |
0 |
0 |
0 |
35,936 |
0 |
16,187 |
971 |
osh-static |
| 6 |
no-host |
configure.yash |
173,287 |
0 |
0 |
0 |
3,616 |
0 |
878 |
141 |
bash |
| 14 |
no-host |
configure.yash |
159,621 |
0 |
0 |
0 |
3,624 |
0 |
1,001 |
98 |
dash |
| 22 |
no-host |
configure.yash |
176,329 |
0 |
0 |
0 |
3,624 |
0 |
859 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
177,012 |
0 |
0 |
0 |
3,632 |
0 |
854 |
103 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,803 |
0 |
0 |
0 |
3,616 |
0 |
856 |
108 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host