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 |
19 |
1.30 |
1.19 |
| bin-true |
no-host |
627 |
448 |
805 |
824 |
663 |
1.28 |
1.06 |
| configure.cpython |
no-host |
14,361 |
14,338 |
13,998 |
14,113 |
13,448 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,771 |
3,695 |
3,783 |
3,788 |
3,779 |
1.00 |
1.00 |
| configure.tcc |
no-host |
46 |
43 |
48 |
48 |
45 |
1.03 |
0.97 |
| configure.util-linux |
no-host |
13,068 |
13,651 |
13,079 |
13,081 |
12,660 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,767 |
1,694 |
1,757 |
1,736 |
1,734 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.55 |
0.96 |
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,395 |
1,158 |
3,258 |
3,437 |
2,831 |
1.36 |
1.18 |
| bin-true |
no-host |
102,478 |
49,412 |
130,318 |
133,032 |
112,092 |
1.27 |
1.09 |
| configure.cpython |
no-host |
1,622,873 |
1,636,579 |
1,575,210 |
1,601,576 |
1,515,489 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,703 |
281,105 |
305,678 |
307,307 |
300,182 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,221 |
4,221 |
5,546 |
5,694 |
5,126 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,542,594 |
1,697,417 |
1,512,394 |
1,521,638 |
1,480,128 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,522 |
159,504 |
176,562 |
176,716 |
172,767 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
88 |
394 |
400 |
182 |
2.59 |
1.20 |
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,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
1 |
2 |
3.5 |
8.7 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,998 |
2 |
72 |
14.8 |
34.5 |
1,750,831 |
35,399 |
28,954 |
93,081 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,079 |
3 |
72 |
21.6 |
39.6 |
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,783 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.0 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,757 |
1 |
2 |
2.7 |
33.2 |
143,480 |
11,508 |
6,625 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
3 |
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 |
824 |
1 |
2 |
3.5 |
9.3 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,113 |
2 |
72 |
14.9 |
34.5 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,081 |
3 |
71 |
21.6 |
39.7 |
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,788 |
1 |
2 |
2.8 |
28.8 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.2 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,736 |
1 |
2 |
2.7 |
33.3 |
143,480 |
11,512 |
6,629 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
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 |
16 |
8 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
9 |
13 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
627 |
311 |
355 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
448 |
281 |
170 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
805 |
319 |
505 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
824 |
303 |
538 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
663 |
340 |
340 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,361 |
7,762 |
6,969 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
14,338 |
7,718 |
7,031 |
34.3 |
dash |
| 18 |
no-host |
configure.cpython |
13,998 |
7,422 |
6,860 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,113 |
7,456 |
6,954 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,448 |
7,386 |
6,308 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,771 |
1,527 |
1,286 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,695 |
1,506 |
1,213 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,783 |
1,530 |
1,293 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,788 |
1,539 |
1,289 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,779 |
1,519 |
1,291 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
28 |
19 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
21 |
22 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
28 |
20 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
30 |
15 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,068 |
6,770 |
6,778 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,651 |
6,619 |
7,530 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
13,079 |
6,389 |
6,919 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,081 |
6,415 |
6,898 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,660 |
6,398 |
6,485 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,767 |
991 |
784 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,694 |
951 |
744 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,757 |
993 |
767 |
33.2 |
osh-native |
| 30 |
no-host |
configure.yash |
1,736 |
957 |
781 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,734 |
981 |
756 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
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,395 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,158 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,258 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,437 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,831 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,478 |
0 |
0 |
0 |
8 |
0 |
1,999 |
54 |
bash |
| 9 |
no-host |
bin-true |
49,412 |
0 |
0 |
0 |
8 |
0 |
2,993 |
53 |
dash |
| 17 |
no-host |
bin-true |
130,318 |
0 |
0 |
0 |
16 |
0 |
2,000 |
68 |
osh-native |
| 25 |
no-host |
bin-true |
133,032 |
0 |
0 |
0 |
16 |
0 |
1,997 |
63 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,092 |
0 |
0 |
0 |
8 |
0 |
1,996 |
75 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,873 |
0 |
0 |
0 |
25,272 |
0 |
14,087 |
982 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,579 |
0 |
0 |
0 |
25,272 |
0 |
14,125 |
1,185 |
dash |
| 18 |
no-host |
configure.cpython |
1,575,210 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
831 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,601,576 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
955 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,515,489 |
1 |
0 |
0 |
25,272 |
0 |
11,300 |
880 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,703 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
193 |
bash |
| 12 |
no-host |
configure.ocaml |
281,105 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
305,678 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,307 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
185 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,182 |
0 |
0 |
0 |
4,432 |
0 |
1,996 |
367 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,221 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,221 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,546 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,694 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,126 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,542,594 |
0 |
0 |
0 |
35,936 |
0 |
18,984 |
1,103 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,417 |
2 |
0 |
0 |
35,944 |
0 |
17,076 |
1,212 |
dash |
| 19 |
no-host |
configure.util-linux |
1,512,394 |
2 |
0 |
8 |
35,960 |
0 |
16,138 |
933 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,521,638 |
1 |
0 |
0 |
35,952 |
0 |
16,189 |
901 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,128 |
1 |
0 |
0 |
35,936 |
0 |
16,193 |
981 |
osh-static |
| 6 |
no-host |
configure.yash |
173,522 |
0 |
0 |
0 |
3,616 |
0 |
881 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,504 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
113 |
dash |
| 22 |
no-host |
configure.yash |
176,562 |
0 |
0 |
0 |
3,632 |
0 |
854 |
99 |
osh-native |
| 30 |
no-host |
configure.yash |
176,716 |
0 |
0 |
0 |
3,624 |
0 |
859 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,767 |
0 |
0 |
0 |
3,624 |
0 |
858 |
97 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
0 |
0 |
0 |
16 |
0 |
2 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host