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 |
15 |
9 |
20 |
21 |
18 |
1.30 |
1.17 |
| bin-true |
no-host |
611 |
435 |
793 |
801 |
645 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,336 |
13,393 |
13,010 |
13,066 |
12,504 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,567 |
3,519 |
3,612 |
3,615 |
3,577 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
40 |
46 |
46 |
42 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,141 |
12,888 |
12,087 |
12,184 |
11,812 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,649 |
1,586 |
1,640 |
1,640 |
1,622 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.46 |
1.05 |
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,369 |
1,171 |
3,300 |
3,440 |
2,826 |
1.39 |
1.19 |
| bin-true |
no-host |
99,461 |
49,344 |
132,286 |
133,020 |
112,054 |
1.33 |
1.13 |
| configure.cpython |
no-host |
1,622,480 |
1,627,905 |
1,586,826 |
1,604,711 |
1,517,570 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,674 |
280,705 |
306,301 |
307,602 |
300,039 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,223 |
4,198 |
5,579 |
5,689 |
5,125 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,532,993 |
1,697,491 |
1,507,787 |
1,522,817 |
1,479,574 |
0.98 |
0.97 |
| configure.yash |
no-host |
173,343 |
159,534 |
177,147 |
176,972 |
172,804 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
85 |
396 |
401 |
183 |
2.62 |
1.21 |
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,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
793 |
1 |
2 |
3.5 |
8.5 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,010 |
1 |
60 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,087 |
2 |
59 |
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,612 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,640 |
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 |
20 |
1 |
2 |
3.0 |
9.4 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
1 |
2 |
3.5 |
9.0 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,066 |
1 |
60 |
14.9 |
34.6 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,184 |
3 |
60 |
21.6 |
39.5 |
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,615 |
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 |
46 |
0 |
0 |
1.4 |
26.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,640 |
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 |
21 |
1 |
2 |
3.0 |
9.8 |
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 |
15 |
5 |
11 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
14 |
8 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
611 |
307 |
341 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
435 |
277 |
163 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
793 |
300 |
509 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
801 |
306 |
511 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
645 |
311 |
349 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,336 |
7,297 |
6,421 |
34.3 |
bash |
| 10 |
no-host |
configure.cpython |
13,393 |
7,440 |
6,342 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,010 |
6,968 |
6,311 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,066 |
7,004 |
6,346 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,504 |
6,952 |
5,789 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,567 |
1,455 |
1,151 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,519 |
1,398 |
1,145 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,612 |
1,456 |
1,194 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,615 |
1,424 |
1,233 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,577 |
1,405 |
1,202 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
28 |
17 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
19 |
21 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
24 |
18 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,141 |
6,464 |
6,134 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
12,888 |
6,368 |
7,002 |
39.8 |
dash |
| 19 |
no-host |
configure.util-linux |
12,087 |
6,100 |
6,203 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,184 |
6,125 |
6,280 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,812 |
5,978 |
6,053 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,649 |
945 |
712 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,586 |
912 |
675 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,640 |
913 |
730 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,640 |
964 |
680 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,622 |
929 |
696 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
3.4 |
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,369 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,171 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,300 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,440 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,826 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
99,461 |
0 |
0 |
0 |
8 |
0 |
1,996 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,344 |
0 |
0 |
0 |
8 |
0 |
2,996 |
62 |
dash |
| 17 |
no-host |
bin-true |
132,286 |
0 |
0 |
0 |
16 |
0 |
1,997 |
103 |
osh-native |
| 25 |
no-host |
bin-true |
133,020 |
0 |
0 |
0 |
16 |
0 |
1,997 |
100 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,054 |
0 |
0 |
0 |
8 |
0 |
2,000 |
74 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,480 |
0 |
0 |
0 |
25,272 |
0 |
14,071 |
987 |
bash |
| 10 |
no-host |
configure.cpython |
1,627,905 |
0 |
0 |
0 |
25,272 |
0 |
14,120 |
1,075 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,826 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
809 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,711 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
841 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,570 |
0 |
0 |
0 |
25,272 |
0 |
11,311 |
875 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,674 |
0 |
0 |
0 |
4,432 |
0 |
2,022 |
181 |
bash |
| 12 |
no-host |
configure.ocaml |
280,705 |
0 |
0 |
0 |
4,432 |
0 |
2,110 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
306,301 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
214 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,602 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
187 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,039 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
222 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,223 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,198 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,579 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,689 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,125 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,532,993 |
0 |
0 |
0 |
35,936 |
0 |
18,995 |
1,057 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,491 |
0 |
0 |
0 |
35,936 |
0 |
17,059 |
1,214 |
dash |
| 19 |
no-host |
configure.util-linux |
1,507,787 |
0 |
0 |
0 |
35,952 |
0 |
16,149 |
886 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,817 |
1 |
0 |
0 |
35,952 |
0 |
16,233 |
970 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,574 |
1 |
0 |
0 |
35,944 |
0 |
16,140 |
930 |
osh-static |
| 6 |
no-host |
configure.yash |
173,343 |
0 |
0 |
0 |
3,616 |
0 |
880 |
104 |
bash |
| 14 |
no-host |
configure.yash |
159,534 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
98 |
dash |
| 22 |
no-host |
configure.yash |
177,147 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
176,972 |
0 |
0 |
0 |
3,624 |
0 |
858 |
95 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,804 |
0 |
0 |
0 |
3,616 |
0 |
858 |
99 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
401 |
0 |
0 |
0 |
16 |
0 |
1 |
2 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host