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 |
23 |
18 |
1.37 |
1.17 |
| bin-true |
no-host |
617 |
438 |
821 |
815 |
676 |
1.33 |
1.09 |
| configure.cpython |
no-host |
13,591 |
13,972 |
13,775 |
14,294 |
13,260 |
1.01 |
0.98 |
| configure.ocaml |
no-host |
3,712 |
3,743 |
3,733 |
3,861 |
3,670 |
1.01 |
0.99 |
| configure.tcc |
no-host |
46 |
43 |
47 |
49 |
43 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,711 |
13,693 |
12,995 |
13,111 |
12,326 |
1.02 |
0.97 |
| configure.yash |
no-host |
1,693 |
1,734 |
1,729 |
1,807 |
1,662 |
1.02 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.74 |
1.14 |
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,396 |
1,185 |
3,298 |
3,408 |
2,855 |
1.38 |
1.19 |
| bin-true |
no-host |
102,503 |
49,444 |
132,947 |
132,333 |
112,737 |
1.30 |
1.10 |
| configure.cpython |
no-host |
1,624,905 |
1,632,492 |
1,594,339 |
1,597,643 |
1,524,613 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,966 |
280,541 |
306,664 |
306,991 |
300,208 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,254 |
4,214 |
5,630 |
5,696 |
5,135 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,535,988 |
1,698,899 |
1,490,350 |
1,513,874 |
1,451,104 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,292 |
159,480 |
177,073 |
176,747 |
172,961 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
85 |
390 |
398 |
183 |
2.58 |
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.4 |
3,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
821 |
1 |
2 |
3.5 |
8.8 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,775 |
1 |
71 |
14.8 |
34.5 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,995 |
3 |
71 |
21.6 |
39.6 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,733 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,729 |
1 |
2 |
2.7 |
33.2 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.3 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
815 |
1 |
2 |
3.5 |
9.2 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,294 |
1 |
72 |
14.8 |
34.5 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,111 |
3 |
71 |
21.6 |
39.7 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,861 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.3 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,807 |
1 |
2 |
2.7 |
33.2 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
3.0 |
10.0 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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 |
10 |
6 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
12 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
617 |
318 |
339 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
438 |
273 |
170 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
821 |
292 |
544 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
815 |
328 |
503 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
676 |
330 |
364 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,591 |
7,461 |
6,513 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,972 |
7,642 |
6,739 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,775 |
7,320 |
6,741 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,294 |
7,529 |
7,067 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,260 |
7,332 |
6,175 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,712 |
1,485 |
1,268 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,743 |
1,524 |
1,243 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,733 |
1,502 |
1,271 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,861 |
1,533 |
1,370 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,670 |
1,434 |
1,268 |
28.5 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
27 |
20 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
25 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
21 |
28 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
21 |
23 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,711 |
6,671 |
6,499 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,693 |
6,667 |
7,535 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,995 |
6,322 |
6,903 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,111 |
6,512 |
6,829 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,326 |
6,264 |
6,207 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,693 |
959 |
743 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,734 |
994 |
741 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,729 |
970 |
762 |
33.2 |
osh-native |
| 30 |
no-host |
configure.yash |
1,807 |
987 |
823 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,662 |
953 |
713 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,396 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,185 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,298 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,408 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,855 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,503 |
0 |
0 |
0 |
8 |
0 |
1,998 |
44 |
bash |
| 9 |
no-host |
bin-true |
49,444 |
0 |
0 |
0 |
8 |
0 |
2,995 |
49 |
dash |
| 17 |
no-host |
bin-true |
132,947 |
0 |
0 |
0 |
16 |
0 |
1,997 |
85 |
osh-native |
| 25 |
no-host |
bin-true |
132,333 |
0 |
0 |
0 |
16 |
0 |
1,996 |
97 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,737 |
0 |
0 |
0 |
8 |
0 |
1,994 |
61 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,905 |
0 |
0 |
0 |
25,272 |
0 |
14,078 |
1,039 |
bash |
| 10 |
no-host |
configure.cpython |
1,632,492 |
0 |
0 |
0 |
25,272 |
0 |
14,136 |
1,067 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,339 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
838 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,597,643 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
836 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,613 |
0 |
0 |
0 |
25,272 |
0 |
11,296 |
944 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,966 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
202 |
bash |
| 12 |
no-host |
configure.ocaml |
280,541 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
198 |
dash |
| 20 |
no-host |
configure.ocaml |
306,664 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
214 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,991 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
198 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,208 |
0 |
0 |
0 |
4,432 |
0 |
1,997 |
216 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,254 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,214 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,630 |
0 |
0 |
0 |
96 |
0 |
44 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,696 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,135 |
0 |
0 |
0 |
88 |
0 |
44 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,988 |
1 |
0 |
232 |
35,944 |
0 |
18,972 |
1,147 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,899 |
0 |
0 |
0 |
35,936 |
0 |
17,137 |
1,177 |
dash |
| 19 |
no-host |
configure.util-linux |
1,490,350 |
1 |
0 |
0 |
35,952 |
0 |
16,144 |
1,021 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,513,874 |
1 |
0 |
0 |
35,944 |
0 |
16,145 |
934 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,451,104 |
1 |
0 |
0 |
35,936 |
0 |
16,216 |
896 |
osh-static |
| 6 |
no-host |
configure.yash |
173,292 |
0 |
0 |
0 |
3,616 |
0 |
878 |
94 |
bash |
| 14 |
no-host |
configure.yash |
159,480 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
103 |
dash |
| 22 |
no-host |
configure.yash |
177,073 |
0 |
0 |
0 |
3,624 |
0 |
856 |
95 |
osh-native |
| 30 |
no-host |
configure.yash |
176,747 |
0 |
0 |
0 |
3,632 |
0 |
856 |
107 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,961 |
0 |
0 |
0 |
3,616 |
0 |
854 |
95 |
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 |
390 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
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