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 |
13 |
7 |
18 |
18 |
16 |
1.41 |
1.26 |
| bin-true |
no-host |
457 |
297 |
606 |
610 |
479 |
1.33 |
1.05 |
| configure.cpython |
no-host |
11,451 |
11,549 |
11,322 |
11,703 |
10,837 |
0.99 |
0.95 |
| configure.ocaml |
no-host |
3,255 |
3,232 |
3,349 |
3,264 |
3,239 |
1.03 |
1.00 |
| configure.tcc |
no-host |
39 |
35 |
40 |
39 |
37 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
10,195 |
10,831 |
10,607 |
10,409 |
10,140 |
1.04 |
0.99 |
| configure.yash |
no-host |
1,417 |
1,399 |
1,483 |
1,420 |
1,412 |
1.05 |
1.00 |
| hello-world |
no-host |
1 |
0 |
2 |
2 |
1 |
2.32 |
1.00 |
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,429 |
1,176 |
3,352 |
3,469 |
2,838 |
1.38 |
1.17 |
| bin-true |
no-host |
104,924 |
49,902 |
131,680 |
134,514 |
112,535 |
1.26 |
1.07 |
| configure.cpython |
no-host |
1,631,366 |
1,650,508 |
1,590,238 |
1,612,686 |
1,519,348 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
300,139 |
281,798 |
306,523 |
308,589 |
301,135 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,274 |
4,251 |
5,650 |
5,658 |
5,125 |
1.07 |
0.97 |
| configure.util-linux |
no-host |
1,550,058 |
1,703,801 |
1,507,044 |
1,522,825 |
1,484,575 |
0.97 |
0.96 |
| configure.yash |
no-host |
174,013 |
159,900 |
177,242 |
177,805 |
173,067 |
1.02 |
0.99 |
| hello-world |
no-host |
157 |
89 |
397 |
400 |
183 |
2.53 |
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 |
2 |
0 |
0 |
0.3 |
6.7 |
3,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
606 |
1 |
2 |
3.5 |
8.5 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,322 |
1 |
60 |
14.8 |
34.6 |
1,750,831 |
35,399 |
28,954 |
93,081 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,607 |
3 |
64 |
21.6 |
39.7 |
2,705,397 |
37,471 |
66,342 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,349 |
1 |
2 |
2.8 |
28.9 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
40 |
0 |
0 |
1.4 |
26.3 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,483 |
1 |
2 |
2.7 |
33.5 |
143,480 |
11,508 |
6,625 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
9.4 |
117,238 |
65,801 |
42,008 |
4,980 |
54,600 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
7.1 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
610 |
1 |
2 |
3.5 |
9.0 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,703 |
1 |
62 |
14.9 |
34.6 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,409 |
3 |
64 |
21.6 |
39.4 |
2,705,397 |
37,477 |
66,348 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,264 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
39 |
0 |
0 |
1.4 |
26.4 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,420 |
1 |
2 |
2.7 |
33.4 |
143,480 |
11,512 |
6,629 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
10.1 |
117,238 |
65,805 |
42,012 |
4,980 |
54,600 |
57,658 |
277 |
3 |
84,024 |
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 |
13 |
8 |
5 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
5 |
2 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
11 |
8 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
18 |
11 |
8 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
11 |
5 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
457 |
284 |
201 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
297 |
224 |
75 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
606 |
327 |
285 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
610 |
315 |
309 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
479 |
291 |
197 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,451 |
7,424 |
4,311 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
11,549 |
7,616 |
4,227 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
11,322 |
7,163 |
4,344 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,703 |
7,205 |
4,695 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
10,837 |
7,156 |
3,830 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,255 |
1,464 |
811 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,232 |
1,496 |
743 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,349 |
1,484 |
886 |
28.9 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,264 |
1,485 |
803 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,239 |
1,460 |
794 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
39 |
26 |
14 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
35 |
25 |
10 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
40 |
23 |
17 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
39 |
26 |
14 |
26.4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
22 |
15 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,195 |
6,542 |
3,995 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
10,831 |
6,462 |
4,740 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
10,607 |
6,267 |
4,476 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,409 |
6,143 |
4,405 |
39.4 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,140 |
6,165 |
4,111 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,417 |
956 |
463 |
33.6 |
bash |
| 14 |
no-host |
configure.yash |
1,399 |
937 |
457 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,483 |
950 |
528 |
33.5 |
osh-native |
| 30 |
no-host |
configure.yash |
1,420 |
950 |
468 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,412 |
904 |
504 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.4 |
bash |
| 8 |
no-host |
hello-world |
0 |
0 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
1 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
1 |
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,429 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,176 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,352 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,469 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,838 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
104,924 |
0 |
0 |
0 |
8 |
0 |
1,997 |
66 |
bash |
| 9 |
no-host |
bin-true |
49,902 |
0 |
0 |
0 |
8 |
0 |
2,999 |
43 |
dash |
| 17 |
no-host |
bin-true |
131,680 |
0 |
0 |
0 |
16 |
0 |
1,995 |
73 |
osh-native |
| 25 |
no-host |
bin-true |
134,514 |
0 |
0 |
0 |
16 |
0 |
1,997 |
82 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,535 |
0 |
0 |
0 |
8 |
0 |
1,999 |
65 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,631,366 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
935 |
bash |
| 10 |
no-host |
configure.cpython |
1,650,508 |
0 |
0 |
0 |
25,272 |
0 |
14,114 |
920 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,238 |
0 |
0 |
0 |
25,280 |
0 |
11,320 |
800 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,612,686 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
848 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,519,348 |
0 |
0 |
0 |
25,272 |
0 |
11,327 |
764 |
osh-static |
| 4 |
no-host |
configure.ocaml |
300,139 |
0 |
0 |
0 |
4,432 |
0 |
2,025 |
174 |
bash |
| 12 |
no-host |
configure.ocaml |
281,798 |
0 |
0 |
0 |
4,432 |
0 |
2,115 |
151 |
dash |
| 20 |
no-host |
configure.ocaml |
306,523 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
205 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,589 |
0 |
0 |
0 |
4,440 |
0 |
2,007 |
168 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,135 |
0 |
0 |
0 |
4,432 |
0 |
2,004 |
209 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,274 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,251 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,650 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,658 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,125 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,550,058 |
1 |
0 |
0 |
35,936 |
0 |
18,836 |
939 |
bash |
| 11 |
no-host |
configure.util-linux |
1,703,801 |
0 |
0 |
0 |
35,936 |
0 |
16,988 |
1,112 |
dash |
| 19 |
no-host |
configure.util-linux |
1,507,044 |
3 |
0 |
0 |
35,960 |
0 |
16,118 |
880 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,825 |
2 |
0 |
0 |
35,944 |
0 |
16,215 |
873 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,484,575 |
3 |
0 |
0 |
35,936 |
0 |
16,181 |
876 |
osh-static |
| 6 |
no-host |
configure.yash |
174,013 |
0 |
0 |
0 |
3,616 |
0 |
881 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,900 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
96 |
dash |
| 22 |
no-host |
configure.yash |
177,242 |
0 |
0 |
0 |
3,624 |
0 |
857 |
99 |
osh-native |
| 30 |
no-host |
configure.yash |
177,805 |
0 |
0 |
0 |
3,624 |
0 |
859 |
93 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,067 |
0 |
0 |
0 |
3,616 |
0 |
857 |
91 |
osh-static |
| 0 |
no-host |
hello-world |
157 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
89 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
397 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
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