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 |
22 |
18 |
1.32 |
1.19 |
| bin-true |
no-host |
621 |
441 |
804 |
813 |
654 |
1.30 |
1.05 |
| configure.cpython |
no-host |
14,149 |
14,199 |
13,783 |
13,801 |
13,238 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,742 |
3,690 |
3,769 |
3,773 |
3,751 |
1.01 |
1.00 |
| configure.tcc |
no-host |
47 |
41 |
47 |
47 |
44 |
1.00 |
0.95 |
| configure.util-linux |
no-host |
12,853 |
13,527 |
12,816 |
12,878 |
12,444 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,738 |
1,677 |
1,729 |
1,738 |
1,701 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.27 |
0.98 |
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,358 |
1,178 |
3,278 |
3,397 |
2,799 |
1.39 |
1.19 |
| bin-true |
no-host |
99,444 |
49,402 |
133,367 |
132,935 |
110,069 |
1.34 |
1.11 |
| configure.cpython |
no-host |
1,629,039 |
1,642,170 |
1,591,750 |
1,613,128 |
1,523,203 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,035 |
280,797 |
305,186 |
306,401 |
300,754 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,202 |
4,219 |
5,582 |
5,708 |
5,153 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,538,724 |
1,699,772 |
1,498,599 |
1,518,091 |
1,456,688 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,259 |
159,567 |
177,186 |
177,223 |
173,103 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
85 |
393 |
399 |
181 |
2.59 |
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.7 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
804 |
1 |
2 |
3.5 |
8.7 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,783 |
1 |
67 |
14.8 |
34.5 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,816 |
3 |
68 |
21.6 |
39.5 |
2,705,279 |
37,450 |
66,323 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,769 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.4 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,729 |
1 |
2 |
2.7 |
33.3 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.6 |
117,212 |
65,784 |
41,994 |
4,969 |
54,592 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
1 |
2 |
3.5 |
8.9 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,801 |
1 |
66 |
14.8 |
34.5 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,878 |
3 |
68 |
21.6 |
39.7 |
2,705,279 |
37,456 |
66,329 |
119,739 |
1,291,802 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,773 |
1 |
2 |
2.8 |
28.6 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,738 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,459 |
6,615 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
9.8 |
117,212 |
65,788 |
41,998 |
4,969 |
54,592 |
57,651 |
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 |
15 |
9 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
10 |
11 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
9 |
13 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
12 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
621 |
321 |
337 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
441 |
277 |
169 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
804 |
314 |
506 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
813 |
319 |
510 |
8.9 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
654 |
317 |
352 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,149 |
7,723 |
6,809 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,199 |
7,782 |
6,817 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,783 |
7,314 |
6,736 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,801 |
7,281 |
6,803 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,238 |
7,197 |
6,278 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,742 |
1,514 |
1,268 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,690 |
1,486 |
1,228 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,769 |
1,516 |
1,292 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,773 |
1,488 |
1,325 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,751 |
1,490 |
1,291 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
19 |
28 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
28 |
19 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
25 |
22 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
27 |
18 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,853 |
6,732 |
6,581 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,527 |
6,611 |
7,392 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,816 |
6,352 |
6,691 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,878 |
6,334 |
6,772 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,444 |
6,350 |
6,312 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,738 |
956 |
787 |
33.5 |
bash |
| 14 |
no-host |
configure.yash |
1,677 |
960 |
717 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,729 |
998 |
733 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,738 |
959 |
782 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,701 |
966 |
737 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,358 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,178 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,278 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,397 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,799 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,444 |
0 |
0 |
0 |
8 |
0 |
1,999 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,402 |
0 |
0 |
0 |
8 |
0 |
2,998 |
48 |
dash |
| 17 |
no-host |
bin-true |
133,367 |
0 |
0 |
0 |
16 |
0 |
1,997 |
75 |
osh-native |
| 25 |
no-host |
bin-true |
132,935 |
0 |
0 |
0 |
16 |
0 |
1,998 |
72 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,069 |
0 |
0 |
0 |
8 |
0 |
1,999 |
73 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,629,039 |
0 |
0 |
0 |
25,272 |
0 |
14,084 |
1,025 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,170 |
0 |
0 |
0 |
25,272 |
0 |
14,124 |
1,075 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,750 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
845 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,613,128 |
0 |
0 |
0 |
25,280 |
0 |
11,303 |
840 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,203 |
1 |
0 |
0 |
25,272 |
0 |
11,306 |
828 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,035 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
195 |
bash |
| 12 |
no-host |
configure.ocaml |
280,797 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
206 |
dash |
| 20 |
no-host |
configure.ocaml |
305,186 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
221 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,401 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
209 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,754 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
223 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,202 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,219 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,582 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,708 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,153 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,724 |
3 |
0 |
232 |
35,944 |
0 |
18,967 |
1,014 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,772 |
1 |
0 |
0 |
35,936 |
0 |
17,068 |
1,232 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,599 |
0 |
0 |
0 |
35,952 |
0 |
16,129 |
873 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,091 |
0 |
0 |
0 |
35,944 |
0 |
16,185 |
935 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,456,688 |
1 |
0 |
0 |
35,936 |
0 |
16,211 |
881 |
osh-static |
| 6 |
no-host |
configure.yash |
173,259 |
0 |
0 |
0 |
3,616 |
0 |
878 |
93 |
bash |
| 14 |
no-host |
configure.yash |
159,567 |
0 |
0 |
0 |
3,616 |
0 |
999 |
105 |
dash |
| 22 |
no-host |
configure.yash |
177,186 |
0 |
0 |
0 |
3,624 |
0 |
855 |
107 |
osh-native |
| 30 |
no-host |
configure.yash |
177,223 |
0 |
0 |
0 |
3,624 |
0 |
854 |
93 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,103 |
0 |
0 |
0 |
3,616 |
0 |
858 |
108 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
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 |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host