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 |
21 |
18 |
1.32 |
1.17 |
| bin-true |
no-host |
629 |
436 |
805 |
812 |
653 |
1.28 |
1.04 |
| configure.cpython |
no-host |
13,755 |
13,819 |
13,407 |
13,483 |
12,976 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,650 |
3,601 |
3,687 |
3,688 |
3,663 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,470 |
13,257 |
12,469 |
12,541 |
12,135 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,688 |
1,633 |
1,695 |
1,691 |
1,660 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.25 |
0.95 |
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,371 |
1,181 |
3,333 |
3,440 |
2,827 |
1.41 |
1.19 |
| bin-true |
no-host |
103,485 |
49,401 |
133,006 |
134,351 |
111,733 |
1.29 |
1.08 |
| configure.cpython |
no-host |
1,620,660 |
1,639,692 |
1,579,890 |
1,604,239 |
1,523,689 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,049 |
280,838 |
305,289 |
306,797 |
300,279 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,266 |
4,188 |
5,597 |
5,674 |
5,122 |
1.06 |
0.97 |
| configure.util-linux |
no-host |
1,543,995 |
1,706,736 |
1,522,074 |
1,522,184 |
1,447,227 |
0.99 |
0.94 |
| configure.yash |
no-host |
173,363 |
159,575 |
176,455 |
176,949 |
172,951 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
85 |
396 |
402 |
183 |
2.61 |
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,913 |
3,913 |
0 |
723 |
1,921 |
1,269 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
805 |
1 |
2 |
3.5 |
8.8 |
151,898 |
10,761 |
2,975 |
14,782 |
72,395 |
64,721 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,407 |
1 |
65 |
14.8 |
34.4 |
1,750,825 |
35,396 |
28,951 |
93,078 |
869,762 |
787,985 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,469 |
3 |
64 |
21.6 |
39.6 |
2,705,391 |
37,468 |
66,339 |
119,746 |
1,291,872 |
1,293,773 |
32,527 |
42 |
132,678 |
1 |
| configure.ocaml |
no-host |
3,687 |
1 |
2 |
2.8 |
28.7 |
149,698 |
12,653 |
6,568 |
9,214 |
70,295 |
70,189 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.3 |
30,549 |
30,549 |
0 |
1,681 |
14,473 |
14,395 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,695 |
1 |
2 |
2.7 |
33.3 |
143,474 |
11,505 |
6,622 |
7,168 |
70,525 |
65,781 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.6 |
117,232 |
65,798 |
42,005 |
4,977 |
54,599 |
57,656 |
277 |
3 |
84,010 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,912 |
3,912 |
0 |
722 |
1,921 |
1,269 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
812 |
1 |
2 |
3.5 |
9.2 |
151,898 |
10,765 |
2,979 |
14,782 |
72,395 |
64,721 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,483 |
1 |
64 |
14.8 |
34.4 |
1,750,824 |
35,401 |
28,956 |
93,077 |
869,762 |
787,985 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,541 |
3 |
64 |
21.6 |
39.7 |
2,705,391 |
37,474 |
66,345 |
119,746 |
1,291,872 |
1,293,773 |
32,527 |
42 |
132,690 |
1 |
| configure.ocaml |
no-host |
3,688 |
1 |
2 |
2.8 |
28.7 |
149,698 |
12,658 |
6,573 |
9,214 |
70,295 |
70,189 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,549 |
30,549 |
0 |
1,681 |
14,473 |
14,395 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,691 |
1 |
2 |
2.7 |
33.4 |
143,474 |
11,509 |
6,626 |
7,168 |
70,525 |
65,781 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
117,232 |
65,802 |
42,009 |
4,977 |
54,599 |
57,656 |
277 |
3 |
84,018 |
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 |
11 |
5 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
13 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
629 |
306 |
361 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
436 |
271 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
805 |
299 |
522 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
812 |
316 |
511 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
653 |
306 |
362 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,755 |
7,637 |
6,495 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,819 |
7,511 |
6,707 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,407 |
7,155 |
6,518 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,483 |
7,145 |
6,621 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,976 |
7,093 |
6,118 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,650 |
1,491 |
1,199 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,601 |
1,501 |
1,125 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,687 |
1,506 |
1,220 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,688 |
1,442 |
1,287 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,663 |
1,471 |
1,222 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
29 |
17 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
20 |
26 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
29 |
15 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,470 |
6,488 |
6,446 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,257 |
6,420 |
7,316 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,469 |
6,238 |
6,455 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,541 |
6,155 |
6,602 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,135 |
6,217 |
6,130 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,688 |
927 |
767 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,633 |
959 |
676 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,695 |
944 |
753 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,691 |
922 |
772 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,660 |
942 |
719 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,371 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,181 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,333 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,440 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,827 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,485 |
0 |
0 |
0 |
8 |
0 |
1,998 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,401 |
0 |
0 |
0 |
8 |
0 |
2,993 |
35 |
dash |
| 17 |
no-host |
bin-true |
133,006 |
0 |
0 |
0 |
16 |
0 |
2,002 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
134,351 |
0 |
0 |
0 |
16 |
0 |
1,999 |
75 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,733 |
0 |
0 |
0 |
8 |
0 |
1,998 |
74 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,660 |
0 |
0 |
0 |
25,272 |
0 |
14,055 |
1,031 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,692 |
0 |
0 |
0 |
25,272 |
0 |
14,110 |
1,018 |
dash |
| 18 |
no-host |
configure.cpython |
1,579,890 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
785 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,239 |
0 |
0 |
0 |
25,280 |
0 |
11,316 |
843 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,689 |
0 |
0 |
0 |
25,272 |
0 |
11,308 |
865 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,049 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
180 |
bash |
| 12 |
no-host |
configure.ocaml |
280,838 |
0 |
0 |
0 |
4,432 |
0 |
2,079 |
178 |
dash |
| 20 |
no-host |
configure.ocaml |
305,289 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
212 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,797 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
194 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,279 |
0 |
0 |
0 |
4,432 |
0 |
1,992 |
225 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,266 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,188 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,597 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,674 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,122 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,543,995 |
1 |
0 |
0 |
35,944 |
0 |
18,946 |
1,062 |
bash |
| 11 |
no-host |
configure.util-linux |
1,706,736 |
2 |
0 |
496 |
35,936 |
0 |
17,065 |
1,206 |
dash |
| 19 |
no-host |
configure.util-linux |
1,522,074 |
2 |
0 |
0 |
35,952 |
0 |
16,170 |
926 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,184 |
1 |
0 |
0 |
35,944 |
0 |
16,175 |
921 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,447,227 |
2 |
0 |
0 |
35,936 |
0 |
16,214 |
872 |
osh-static |
| 6 |
no-host |
configure.yash |
173,363 |
0 |
0 |
0 |
3,616 |
0 |
880 |
111 |
bash |
| 14 |
no-host |
configure.yash |
159,575 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
107 |
dash |
| 22 |
no-host |
configure.yash |
176,455 |
0 |
0 |
0 |
3,624 |
0 |
857 |
102 |
osh-native |
| 30 |
no-host |
configure.yash |
176,949 |
0 |
0 |
0 |
3,624 |
0 |
858 |
109 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,951 |
0 |
0 |
0 |
3,616 |
0 |
859 |
106 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
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 |
402 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host