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 |
18 |
1.30 |
1.14 |
| bin-true |
no-host |
620 |
444 |
808 |
825 |
661 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,942 |
13,924 |
13,533 |
13,801 |
13,162 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,697 |
3,629 |
3,743 |
3,755 |
3,683 |
1.01 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
48 |
49 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,789 |
13,311 |
12,578 |
12,720 |
12,206 |
0.98 |
0.95 |
| configure.yash |
no-host |
1,727 |
1,647 |
1,720 |
1,757 |
1,681 |
1.00 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.25 |
1.04 |
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,374 |
1,163 |
3,346 |
3,400 |
2,810 |
1.41 |
1.18 |
| bin-true |
no-host |
101,435 |
49,413 |
136,597 |
134,585 |
111,312 |
1.35 |
1.10 |
| configure.cpython |
no-host |
1,629,206 |
1,631,490 |
1,594,069 |
1,607,308 |
1,522,341 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,211 |
281,469 |
305,683 |
306,420 |
300,029 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,218 |
4,219 |
5,635 |
5,663 |
5,116 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,537,964 |
1,693,631 |
1,498,054 |
1,507,697 |
1,450,451 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,572 |
159,585 |
176,962 |
177,679 |
172,720 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
393 |
399 |
181 |
2.55 |
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 |
3 |
0 |
0 |
0.3 |
6.6 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
1 |
2 |
3.5 |
8.8 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,533 |
1 |
67 |
14.8 |
34.6 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,578 |
3 |
66 |
21.6 |
39.6 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,743 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.0 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,720 |
1 |
2 |
2.7 |
33.1 |
143,778 |
11,764 |
6,618 |
7,161 |
70,824 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,276 |
65,784 |
41,994 |
4,970 |
54,643 |
57,663 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
825 |
1 |
2 |
3.5 |
9.2 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,801 |
1 |
67 |
14.9 |
34.4 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,720 |
3 |
66 |
21.6 |
39.5 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,755 |
1 |
2 |
2.8 |
28.7 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.3 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,757 |
1 |
2 |
2.7 |
33.3 |
143,778 |
11,768 |
6,622 |
7,161 |
70,824 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,276 |
65,788 |
41,998 |
4,970 |
54,643 |
57,663 |
277 |
3 |
83,996 |
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 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
8 |
13 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
9 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
620 |
318 |
340 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
444 |
268 |
184 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
808 |
298 |
527 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
825 |
311 |
531 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
661 |
330 |
348 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,942 |
7,549 |
6,787 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,924 |
7,640 |
6,688 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,533 |
7,135 |
6,671 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,801 |
7,234 |
6,857 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,162 |
7,276 |
6,119 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,697 |
1,485 |
1,252 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,629 |
1,490 |
1,165 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,743 |
1,459 |
1,324 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,755 |
1,504 |
1,291 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,683 |
1,482 |
1,234 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
20 |
27 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
24 |
24 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
28 |
16 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,789 |
6,615 |
6,647 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,311 |
6,469 |
7,332 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,578 |
6,226 |
6,575 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,720 |
6,307 |
6,638 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,206 |
6,213 |
6,212 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,727 |
971 |
765 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,647 |
945 |
703 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,720 |
987 |
736 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,757 |
955 |
805 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,681 |
953 |
731 |
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 |
3 |
1 |
1 |
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.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,374 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,163 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,346 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,400 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,810 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,435 |
0 |
0 |
0 |
8 |
0 |
1,997 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,413 |
0 |
0 |
0 |
8 |
0 |
2,994 |
47 |
dash |
| 17 |
no-host |
bin-true |
136,597 |
0 |
0 |
0 |
16 |
0 |
1,998 |
86 |
osh-native |
| 25 |
no-host |
bin-true |
134,585 |
0 |
0 |
0 |
16 |
0 |
1,995 |
74 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,312 |
0 |
0 |
0 |
8 |
0 |
1,997 |
62 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,206 |
1 |
0 |
0 |
25,272 |
0 |
14,086 |
1,029 |
bash |
| 10 |
no-host |
configure.cpython |
1,631,490 |
0 |
0 |
0 |
25,272 |
0 |
14,128 |
1,033 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,069 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
847 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,607,308 |
0 |
0 |
0 |
25,280 |
0 |
11,302 |
880 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,341 |
0 |
0 |
0 |
25,272 |
0 |
11,293 |
1,063 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,211 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
281,469 |
0 |
0 |
0 |
4,432 |
0 |
2,102 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
305,683 |
0 |
0 |
8 |
4,440 |
0 |
1,999 |
237 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,420 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
218 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,029 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
213 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,218 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,219 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,635 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,663 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,116 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,964 |
1 |
0 |
0 |
35,944 |
0 |
18,988 |
1,228 |
bash |
| 11 |
no-host |
configure.util-linux |
1,693,631 |
1 |
0 |
0 |
35,936 |
0 |
17,083 |
1,253 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,054 |
1 |
0 |
0 |
35,952 |
0 |
16,192 |
1,058 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,507,697 |
1 |
0 |
0 |
35,944 |
0 |
16,181 |
967 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,451 |
3 |
0 |
0 |
35,936 |
0 |
16,195 |
970 |
osh-static |
| 6 |
no-host |
configure.yash |
173,572 |
0 |
0 |
0 |
3,616 |
0 |
880 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,585 |
0 |
0 |
0 |
3,624 |
0 |
997 |
106 |
dash |
| 22 |
no-host |
configure.yash |
176,962 |
0 |
0 |
0 |
3,624 |
0 |
858 |
98 |
osh-native |
| 30 |
no-host |
configure.yash |
177,679 |
0 |
0 |
0 |
3,624 |
0 |
858 |
106 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,720 |
0 |
0 |
0 |
3,624 |
0 |
857 |
93 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host