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 |
14 |
7 |
18 |
20 |
17 |
1.30 |
1.23 |
| bin-true |
no-host |
468 |
319 |
637 |
622 |
521 |
1.36 |
1.11 |
| configure.cpython |
no-host |
12,185 |
12,317 |
12,119 |
12,194 |
11,859 |
0.99 |
0.97 |
| configure.ocaml |
no-host |
3,392 |
3,382 |
3,434 |
3,495 |
3,457 |
1.01 |
1.02 |
| configure.tcc |
no-host |
40 |
36 |
40 |
42 |
39 |
0.99 |
0.96 |
| configure.util-linux |
no-host |
10,734 |
11,597 |
11,074 |
11,196 |
10,890 |
1.03 |
1.01 |
| configure.yash |
no-host |
1,512 |
1,488 |
1,503 |
1,540 |
1,540 |
0.99 |
1.02 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.28 |
1.01 |
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,401 |
1,162 |
3,350 |
3,459 |
2,842 |
1.40 |
1.18 |
| bin-true |
no-host |
101,893 |
49,836 |
134,727 |
134,408 |
111,545 |
1.32 |
1.09 |
| configure.cpython |
no-host |
1,628,214 |
1,649,248 |
1,582,085 |
1,616,690 |
1,520,387 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,526 |
281,522 |
306,942 |
307,783 |
300,785 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,244 |
4,226 |
5,638 |
5,685 |
5,122 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,543,757 |
1,706,744 |
1,512,045 |
1,523,087 |
1,484,086 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,787 |
159,943 |
177,432 |
177,849 |
173,130 |
1.02 |
1.00 |
| hello-world |
no-host |
156 |
90 |
393 |
400 |
184 |
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.7 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
637 |
1 |
2 |
3.5 |
8.9 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,119 |
1 |
62 |
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 |
11,074 |
3 |
65 |
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.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,503 |
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 |
6.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
622 |
1 |
2 |
3.5 |
9.2 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,194 |
1 |
62 |
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 |
11,196 |
3 |
66 |
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,495 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
42 |
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,540 |
1 |
2 |
2.7 |
33.3 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
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 |
14 |
7 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
5 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
11 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
20 |
15 |
6 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
17 |
13 |
4 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
468 |
291 |
211 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
319 |
231 |
89 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
637 |
310 |
336 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
622 |
312 |
323 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
521 |
302 |
231 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
12,185 |
7,805 |
4,627 |
34.3 |
bash |
| 10 |
no-host |
configure.cpython |
12,317 |
7,851 |
4,726 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
12,119 |
7,482 |
4,783 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
12,194 |
7,437 |
4,920 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,859 |
7,411 |
4,573 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,392 |
1,504 |
891 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,382 |
1,476 |
897 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,434 |
1,502 |
940 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,495 |
1,541 |
965 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,457 |
1,527 |
924 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
40 |
23 |
18 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
36 |
23 |
13 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
40 |
22 |
19 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
42 |
26 |
17 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
39 |
23 |
14 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,734 |
6,775 |
4,288 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
11,597 |
6,875 |
5,077 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
11,074 |
6,379 |
4,813 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
11,196 |
6,471 |
4,849 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,890 |
6,487 |
4,523 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,512 |
950 |
557 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,488 |
972 |
501 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,503 |
969 |
524 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,540 |
1,003 |
525 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,540 |
971 |
559 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
2 |
0 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
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,401 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,162 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,350 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,459 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,842 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,893 |
0 |
0 |
0 |
8 |
0 |
2,000 |
57 |
bash |
| 9 |
no-host |
bin-true |
49,836 |
0 |
0 |
0 |
8 |
0 |
2,999 |
37 |
dash |
| 17 |
no-host |
bin-true |
134,727 |
0 |
0 |
0 |
16 |
0 |
1,998 |
101 |
osh-native |
| 25 |
no-host |
bin-true |
134,408 |
0 |
0 |
0 |
16 |
0 |
1,997 |
65 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,545 |
0 |
0 |
0 |
8 |
0 |
1,999 |
63 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,214 |
0 |
0 |
0 |
25,272 |
0 |
14,053 |
951 |
bash |
| 10 |
no-host |
configure.cpython |
1,649,248 |
0 |
0 |
0 |
25,272 |
0 |
14,077 |
942 |
dash |
| 18 |
no-host |
configure.cpython |
1,582,085 |
0 |
0 |
0 |
25,280 |
0 |
11,278 |
817 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,616,690 |
0 |
0 |
0 |
25,280 |
0 |
11,285 |
799 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,520,387 |
0 |
0 |
0 |
25,272 |
0 |
11,286 |
857 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,526 |
0 |
0 |
0 |
4,432 |
0 |
2,023 |
179 |
bash |
| 12 |
no-host |
configure.ocaml |
281,522 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
166 |
dash |
| 20 |
no-host |
configure.ocaml |
306,942 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
207 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,783 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
201 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,785 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
205 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,244 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,226 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,638 |
0 |
0 |
0 |
96 |
0 |
44 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,685 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,122 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,543,757 |
0 |
0 |
0 |
35,936 |
0 |
18,780 |
1,020 |
bash |
| 11 |
no-host |
configure.util-linux |
1,706,744 |
1 |
0 |
0 |
35,936 |
0 |
16,966 |
1,077 |
dash |
| 19 |
no-host |
configure.util-linux |
1,512,045 |
5 |
0 |
0 |
35,960 |
0 |
16,185 |
930 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,523,087 |
2 |
0 |
0 |
35,952 |
0 |
16,192 |
907 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,484,086 |
1 |
0 |
0 |
35,936 |
0 |
16,183 |
914 |
osh-static |
| 6 |
no-host |
configure.yash |
173,787 |
0 |
0 |
0 |
3,616 |
0 |
876 |
95 |
bash |
| 14 |
no-host |
configure.yash |
159,943 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
95 |
dash |
| 22 |
no-host |
configure.yash |
177,432 |
0 |
0 |
0 |
3,624 |
0 |
858 |
86 |
osh-native |
| 30 |
no-host |
configure.yash |
177,849 |
0 |
0 |
0 |
3,624 |
0 |
858 |
89 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,130 |
0 |
0 |
0 |
3,616 |
0 |
859 |
91 |
osh-static |
| 0 |
no-host |
hello-world |
156 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
90 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
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 |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host