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 |
10 |
21 |
22 |
19 |
1.31 |
1.17 |
| bin-true |
no-host |
640 |
454 |
823 |
831 |
669 |
1.29 |
1.05 |
| configure.cpython |
no-host |
14,373 |
14,486 |
14,057 |
14,057 |
13,480 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,767 |
3,726 |
3,818 |
3,812 |
3,780 |
1.01 |
1.00 |
| configure.tcc |
no-host |
47 |
42 |
48 |
48 |
45 |
1.02 |
0.96 |
| configure.util-linux |
no-host |
13,120 |
13,848 |
13,052 |
13,165 |
12,658 |
0.99 |
0.96 |
| configure.yash |
no-host |
1,757 |
1,719 |
1,762 |
1,760 |
1,743 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.51 |
1.00 |
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,376 |
1,154 |
3,323 |
3,423 |
2,814 |
1.40 |
1.18 |
| bin-true |
no-host |
102,458 |
49,349 |
131,377 |
132,998 |
110,061 |
1.28 |
1.07 |
| configure.cpython |
no-host |
1,618,112 |
1,639,323 |
1,591,324 |
1,595,534 |
1,524,088 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,032 |
280,654 |
305,679 |
306,640 |
300,874 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,222 |
4,199 |
5,591 |
5,670 |
5,152 |
1.07 |
0.99 |
| configure.util-linux |
no-host |
1,536,595 |
1,705,310 |
1,493,102 |
1,515,511 |
1,456,914 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,236 |
159,523 |
177,024 |
177,250 |
173,076 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
83 |
391 |
398 |
181 |
2.61 |
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.6 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
823 |
1 |
2 |
3.5 |
8.5 |
151,881 |
10,750 |
2,964 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,057 |
1 |
71 |
14.8 |
34.4 |
1,750,743 |
35,378 |
28,935 |
93,071 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,052 |
3 |
71 |
21.6 |
39.7 |
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,818 |
1 |
2 |
2.8 |
28.6 |
149,681 |
12,642 |
6,557 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.3 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,762 |
1 |
2 |
2.7 |
33.4 |
143,443 |
11,455 |
6,611 |
7,160 |
70,503 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
831 |
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 |
14,057 |
1 |
71 |
14.8 |
34.3 |
1,750,742 |
35,383 |
28,940 |
93,070 |
869,707 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,165 |
3 |
72 |
21.6 |
39.5 |
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,812 |
1 |
2 |
2.8 |
28.7 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,760 |
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 |
16 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
3 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
13 |
6 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
640 |
319 |
361 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
454 |
277 |
183 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
823 |
303 |
537 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
831 |
288 |
559 |
8.9 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
669 |
342 |
346 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,373 |
7,740 |
7,039 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,486 |
7,778 |
7,133 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
14,057 |
7,367 |
6,982 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,057 |
7,450 |
6,906 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,480 |
7,407 |
6,323 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,767 |
1,501 |
1,306 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,726 |
1,531 |
1,220 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,818 |
1,525 |
1,334 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,812 |
1,527 |
1,328 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,780 |
1,535 |
1,277 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
22 |
26 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
17 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
23 |
26 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
23 |
26 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
21 |
25 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,120 |
6,698 |
6,911 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,848 |
6,663 |
7,700 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,052 |
6,406 |
6,884 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,165 |
6,459 |
6,945 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,658 |
6,363 |
6,525 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,757 |
957 |
808 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,719 |
964 |
756 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,762 |
966 |
799 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,760 |
933 |
829 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,743 |
991 |
754 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,376 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,154 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,323 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,423 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,814 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
102,458 |
0 |
0 |
0 |
8 |
0 |
1,998 |
64 |
bash |
| 9 |
no-host |
bin-true |
49,349 |
0 |
0 |
0 |
8 |
0 |
2,984 |
55 |
dash |
| 17 |
no-host |
bin-true |
131,377 |
0 |
0 |
0 |
16 |
0 |
1,996 |
89 |
osh-native |
| 25 |
no-host |
bin-true |
132,998 |
0 |
0 |
0 |
16 |
0 |
1,997 |
83 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,061 |
0 |
0 |
0 |
8 |
0 |
1,998 |
72 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,618,112 |
0 |
0 |
0 |
25,272 |
0 |
14,074 |
1,198 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,323 |
0 |
0 |
0 |
25,272 |
0 |
14,133 |
1,021 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,324 |
0 |
0 |
0 |
25,280 |
0 |
11,293 |
820 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,595,534 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
843 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,088 |
0 |
0 |
0 |
25,272 |
0 |
11,296 |
831 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,032 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
189 |
bash |
| 12 |
no-host |
configure.ocaml |
280,654 |
0 |
0 |
0 |
4,432 |
0 |
2,109 |
207 |
dash |
| 20 |
no-host |
configure.ocaml |
305,679 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
217 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,640 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
215 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,874 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
241 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,222 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,591 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,670 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,152 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,595 |
0 |
0 |
232 |
35,944 |
0 |
18,993 |
992 |
bash |
| 11 |
no-host |
configure.util-linux |
1,705,310 |
0 |
0 |
0 |
35,936 |
0 |
17,096 |
1,299 |
dash |
| 19 |
no-host |
configure.util-linux |
1,493,102 |
1 |
0 |
0 |
35,952 |
0 |
16,125 |
931 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,511 |
2 |
0 |
0 |
35,944 |
0 |
16,215 |
1,118 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,456,914 |
1 |
0 |
0 |
35,936 |
0 |
16,196 |
897 |
osh-static |
| 6 |
no-host |
configure.yash |
173,236 |
0 |
0 |
0 |
3,616 |
0 |
878 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,523 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
109 |
dash |
| 22 |
no-host |
configure.yash |
177,024 |
0 |
0 |
0 |
3,624 |
0 |
856 |
110 |
osh-native |
| 30 |
no-host |
configure.yash |
177,250 |
0 |
0 |
0 |
3,624 |
0 |
858 |
92 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,076 |
0 |
0 |
0 |
3,624 |
0 |
855 |
99 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
| 8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
391 |
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 |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host