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.32 |
1.20 |
| bin-true |
no-host |
611 |
438 |
786 |
803 |
645 |
1.29 |
1.06 |
| configure.cpython |
no-host |
13,346 |
13,411 |
13,052 |
13,059 |
12,523 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,578 |
3,523 |
3,621 |
3,631 |
3,578 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
46 |
46 |
42 |
1.01 |
0.93 |
| configure.util-linux |
no-host |
12,202 |
12,915 |
12,158 |
12,227 |
11,825 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,637 |
1,588 |
1,652 |
1,651 |
1,623 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.48 |
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,365 |
1,155 |
3,294 |
3,420 |
2,841 |
1.39 |
1.20 |
| bin-true |
no-host |
102,476 |
49,392 |
131,311 |
136,017 |
112,067 |
1.28 |
1.09 |
| configure.cpython |
no-host |
1,623,609 |
1,635,569 |
1,594,683 |
1,604,791 |
1,517,340 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,120 |
280,481 |
306,686 |
307,144 |
300,150 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,264 |
4,215 |
5,550 |
5,651 |
5,118 |
1.05 |
0.97 |
| configure.util-linux |
no-host |
1,539,636 |
1,697,545 |
1,513,630 |
1,521,638 |
1,480,377 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,271 |
159,565 |
177,282 |
177,117 |
172,855 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
87 |
392 |
397 |
182 |
2.56 |
1.19 |
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.8 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
786 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,052 |
1 |
61 |
14.8 |
34.4 |
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,158 |
3 |
61 |
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,621 |
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.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,652 |
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.8 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
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 |
13,059 |
1 |
61 |
14.9 |
34.5 |
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,227 |
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,631 |
1 |
2 |
2.8 |
28.6 |
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,651 |
1 |
2 |
2.7 |
33.4 |
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 |
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 |
15 |
9 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
8 |
13 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
14 |
5 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
611 |
319 |
330 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
273 |
168 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
786 |
302 |
499 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
803 |
317 |
503 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
645 |
319 |
342 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,346 |
7,455 |
6,266 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
13,411 |
7,435 |
6,367 |
34.1 |
dash |
| 18 |
no-host |
configure.cpython |
13,052 |
6,957 |
6,363 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,059 |
6,916 |
6,423 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,523 |
6,968 |
5,789 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,578 |
1,452 |
1,166 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,523 |
1,422 |
1,124 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,621 |
1,452 |
1,209 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,631 |
1,483 |
1,187 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,578 |
1,421 |
1,188 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
25 |
21 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
25 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
26 |
21 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
23 |
23 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
27 |
16 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,202 |
6,415 |
6,250 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
12,915 |
6,265 |
7,136 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,158 |
6,089 |
6,298 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,227 |
6,088 |
6,362 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,825 |
6,060 |
5,982 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,637 |
919 |
727 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,588 |
916 |
675 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,652 |
943 |
713 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,651 |
910 |
744 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,623 |
925 |
701 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
1 |
6.8 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
3 |
0 |
6.8 |
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,365 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,155 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,294 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,420 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,841 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
102,476 |
0 |
0 |
0 |
8 |
0 |
2,001 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,392 |
0 |
0 |
0 |
8 |
0 |
2,995 |
59 |
dash |
| 17 |
no-host |
bin-true |
131,311 |
0 |
0 |
0 |
16 |
0 |
2,000 |
74 |
osh-native |
| 25 |
no-host |
bin-true |
136,017 |
0 |
0 |
0 |
16 |
0 |
1,998 |
63 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,067 |
0 |
0 |
0 |
8 |
0 |
1,995 |
61 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,609 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,102 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,569 |
0 |
0 |
0 |
25,280 |
0 |
14,116 |
1,059 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,683 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
953 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,791 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
832 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,340 |
1 |
0 |
0 |
25,272 |
0 |
11,299 |
834 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,120 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
191 |
bash |
| 12 |
no-host |
configure.ocaml |
280,481 |
0 |
0 |
0 |
4,432 |
0 |
2,110 |
197 |
dash |
| 20 |
no-host |
configure.ocaml |
306,686 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
214 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,144 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
288 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,150 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
235 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,264 |
0 |
0 |
0 |
80 |
0 |
49 |
5 |
bash |
| 13 |
no-host |
configure.tcc |
4,215 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,550 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,651 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,118 |
0 |
0 |
0 |
88 |
0 |
46 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,636 |
0 |
0 |
0 |
35,936 |
0 |
18,999 |
1,018 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,545 |
0 |
0 |
0 |
35,936 |
0 |
17,106 |
1,147 |
dash |
| 19 |
no-host |
configure.util-linux |
1,513,630 |
1 |
0 |
0 |
35,952 |
0 |
16,148 |
865 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,521,638 |
0 |
0 |
0 |
35,944 |
0 |
16,201 |
899 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,377 |
0 |
0 |
0 |
35,936 |
0 |
16,206 |
907 |
osh-static |
| 6 |
no-host |
configure.yash |
173,271 |
0 |
0 |
0 |
3,616 |
0 |
878 |
90 |
bash |
| 14 |
no-host |
configure.yash |
159,565 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
101 |
dash |
| 22 |
no-host |
configure.yash |
177,282 |
0 |
0 |
0 |
3,632 |
0 |
857 |
97 |
osh-native |
| 30 |
no-host |
configure.yash |
177,117 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,855 |
0 |
0 |
0 |
3,616 |
0 |
858 |
102 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
397 |
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