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 |
19 |
16 |
1.40 |
1.23 |
| bin-true |
no-host |
452 |
307 |
610 |
626 |
539 |
1.35 |
1.19 |
| configure.cpython |
no-host |
11,956 |
11,959 |
11,939 |
11,966 |
11,645 |
1.00 |
0.97 |
| configure.ocaml |
no-host |
3,359 |
3,344 |
3,434 |
3,437 |
3,392 |
1.02 |
1.01 |
| configure.tcc |
no-host |
39 |
35 |
40 |
41 |
37 |
1.04 |
0.95 |
| configure.util-linux |
no-host |
10,678 |
11,339 |
11,072 |
11,114 |
10,636 |
1.04 |
1.00 |
| configure.yash |
no-host |
1,476 |
1,480 |
1,505 |
1,520 |
1,474 |
1.02 |
1.00 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.46 |
1.07 |
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,406 |
1,166 |
3,357 |
3,406 |
2,848 |
1.40 |
1.18 |
| bin-true |
no-host |
101,904 |
49,856 |
130,743 |
136,459 |
111,510 |
1.28 |
1.09 |
| configure.cpython |
no-host |
1,638,677 |
1,647,293 |
1,595,418 |
1,614,992 |
1,520,193 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
300,333 |
281,533 |
306,778 |
308,331 |
301,009 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,263 |
4,231 |
5,615 |
5,670 |
5,137 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,542,541 |
1,706,763 |
1,516,500 |
1,525,097 |
1,484,097 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,773 |
159,849 |
176,909 |
177,144 |
173,144 |
1.02 |
1.00 |
| hello-world |
no-host |
155 |
84 |
391 |
400 |
183 |
2.52 |
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 |
2 |
0 |
0 |
0.3 |
6.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
610 |
1 |
2 |
3.5 |
8.7 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,939 |
1 |
62 |
14.8 |
34.7 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
11,072 |
4 |
68 |
21.6 |
39.6 |
2,705,398 |
37,471 |
66,342 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,434 |
1 |
2 |
2.8 |
28.8 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
40 |
0 |
0 |
1.4 |
26.0 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,505 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
9.6 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
626 |
1 |
2 |
3.5 |
9.3 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,966 |
1 |
63 |
14.9 |
34.7 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
11,114 |
3 |
66 |
21.6 |
39.6 |
2,705,398 |
37,477 |
66,348 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,437 |
1 |
2 |
2.8 |
28.8 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
41 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,520 |
1 |
2 |
2.7 |
33.1 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
1 |
2 |
3.0 |
10.1 |
117,239 |
65,805 |
42,012 |
4,980 |
54,601 |
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 |
6 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
4 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
12 |
7 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
13 |
7 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
15 |
2 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
452 |
279 |
204 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
307 |
228 |
81 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
610 |
326 |
296 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
626 |
317 |
324 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
539 |
296 |
250 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,956 |
7,689 |
4,532 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
11,959 |
7,754 |
4,497 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
11,939 |
7,399 |
4,713 |
34.7 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,966 |
7,332 |
4,829 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,645 |
7,342 |
4,440 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,359 |
1,485 |
889 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,344 |
1,500 |
847 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,434 |
1,530 |
918 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,437 |
1,542 |
912 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,392 |
1,547 |
852 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
39 |
24 |
15 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
35 |
22 |
13 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
40 |
23 |
18 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
41 |
26 |
15 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
22 |
16 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,678 |
6,773 |
4,253 |
40.0 |
bash |
| 11 |
no-host |
configure.util-linux |
11,339 |
6,768 |
4,944 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
11,072 |
6,373 |
4,834 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
11,114 |
6,611 |
4,646 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,636 |
6,368 |
4,396 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,476 |
951 |
524 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,480 |
956 |
515 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,505 |
976 |
523 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,520 |
1,008 |
500 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,474 |
961 |
507 |
33.4 |
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 |
2 |
2 |
0 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
2 |
0 |
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,406 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,166 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,357 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,406 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,848 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,904 |
0 |
0 |
0 |
8 |
0 |
1,999 |
60 |
bash |
| 9 |
no-host |
bin-true |
49,856 |
0 |
0 |
0 |
8 |
0 |
2,997 |
28 |
dash |
| 17 |
no-host |
bin-true |
130,743 |
0 |
0 |
0 |
16 |
0 |
2,000 |
67 |
osh-native |
| 25 |
no-host |
bin-true |
136,459 |
0 |
0 |
0 |
16 |
0 |
1,999 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,510 |
0 |
0 |
0 |
8 |
0 |
1,994 |
67 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,638,677 |
0 |
0 |
0 |
25,272 |
0 |
14,069 |
976 |
bash |
| 10 |
no-host |
configure.cpython |
1,647,293 |
0 |
0 |
0 |
25,272 |
0 |
14,044 |
948 |
dash |
| 18 |
no-host |
configure.cpython |
1,595,418 |
0 |
0 |
0 |
25,280 |
0 |
11,290 |
813 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,614,992 |
1 |
0 |
0 |
25,280 |
0 |
11,309 |
805 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,193 |
0 |
0 |
0 |
25,272 |
0 |
11,290 |
814 |
osh-static |
| 4 |
no-host |
configure.ocaml |
300,333 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
281,533 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
177 |
dash |
| 20 |
no-host |
configure.ocaml |
306,778 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
404 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,331 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
190 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,009 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
196 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,263 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,231 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,615 |
0 |
0 |
0 |
96 |
0 |
43 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,670 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,137 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,542,541 |
0 |
0 |
0 |
35,936 |
0 |
18,895 |
1,001 |
bash |
| 11 |
no-host |
configure.util-linux |
1,706,763 |
1 |
0 |
0 |
35,936 |
0 |
17,023 |
1,093 |
dash |
| 19 |
no-host |
configure.util-linux |
1,516,500 |
3 |
0 |
0 |
35,960 |
0 |
16,247 |
889 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,525,097 |
3 |
0 |
0 |
35,944 |
0 |
16,235 |
905 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,484,097 |
5 |
0 |
0 |
35,936 |
0 |
16,188 |
899 |
osh-static |
| 6 |
no-host |
configure.yash |
173,773 |
0 |
0 |
0 |
3,616 |
0 |
879 |
88 |
bash |
| 14 |
no-host |
configure.yash |
159,849 |
0 |
0 |
0 |
3,616 |
0 |
1,005 |
98 |
dash |
| 22 |
no-host |
configure.yash |
176,909 |
0 |
0 |
0 |
3,624 |
0 |
858 |
93 |
osh-native |
| 30 |
no-host |
configure.yash |
177,144 |
0 |
0 |
0 |
3,624 |
0 |
856 |
86 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,144 |
0 |
0 |
0 |
3,616 |
0 |
856 |
96 |
osh-static |
| 0 |
no-host |
hello-world |
155 |
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 |
2 |
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