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 |
22 |
22 |
18 |
1.35 |
1.15 |
| bin-true |
no-host |
631 |
449 |
818 |
824 |
664 |
1.30 |
1.05 |
| configure.cpython |
no-host |
14,121 |
14,282 |
13,869 |
13,852 |
13,241 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,740 |
3,668 |
3,759 |
3,766 |
3,720 |
1.01 |
0.99 |
| configure.tcc |
no-host |
47 |
42 |
48 |
48 |
44 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
12,830 |
13,612 |
12,790 |
12,821 |
12,399 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,753 |
1,673 |
1,730 |
1,735 |
1,703 |
0.99 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.03 |
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,389 |
1,197 |
3,305 |
3,403 |
2,810 |
1.38 |
1.18 |
| bin-true |
no-host |
103,470 |
49,446 |
132,349 |
134,994 |
111,031 |
1.28 |
1.07 |
| configure.cpython |
no-host |
1,625,924 |
1,634,522 |
1,582,695 |
1,610,053 |
1,523,368 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
299,256 |
280,721 |
305,005 |
307,400 |
300,867 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,234 |
4,203 |
5,624 |
5,678 |
5,141 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,539,257 |
1,703,064 |
1,498,951 |
1,515,146 |
1,458,024 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,322 |
159,604 |
177,065 |
176,525 |
172,982 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
388 |
399 |
183 |
2.52 |
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.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
818 |
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,869 |
1 |
71 |
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,790 |
3 |
69 |
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,759 |
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 |
48 |
0 |
0 |
1.4 |
26.1 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,730 |
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 |
22 |
1 |
2 |
3.0 |
9.3 |
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 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
824 |
1 |
2 |
3.5 |
9.3 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,852 |
1 |
68 |
14.8 |
34.6 |
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,821 |
3 |
67 |
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,766 |
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 |
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,735 |
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 |
9 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
631 |
317 |
352 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
449 |
276 |
179 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
818 |
314 |
520 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
824 |
314 |
528 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
664 |
297 |
386 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,121 |
7,675 |
6,845 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
14,282 |
7,728 |
6,968 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,869 |
7,248 |
6,910 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,852 |
7,363 |
6,778 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,241 |
7,332 |
6,158 |
34.1 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,740 |
1,492 |
1,290 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,668 |
1,518 |
1,176 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,759 |
1,493 |
1,306 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,766 |
1,495 |
1,314 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,720 |
1,492 |
1,262 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
23 |
24 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
20 |
28 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
27 |
22 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
23 |
22 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,830 |
6,678 |
6,617 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,612 |
6,615 |
7,499 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,790 |
6,360 |
6,655 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,821 |
6,328 |
6,723 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,399 |
6,338 |
6,290 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,753 |
982 |
777 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,673 |
945 |
729 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,730 |
970 |
763 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,735 |
1,003 |
734 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,703 |
957 |
749 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
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,389 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,197 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,305 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,403 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,810 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
103,470 |
0 |
0 |
0 |
8 |
0 |
2,000 |
65 |
bash |
| 9 |
no-host |
bin-true |
49,446 |
0 |
0 |
0 |
8 |
0 |
2,993 |
52 |
dash |
| 17 |
no-host |
bin-true |
132,349 |
0 |
0 |
0 |
16 |
0 |
1,998 |
91 |
osh-native |
| 25 |
no-host |
bin-true |
134,994 |
0 |
0 |
0 |
16 |
0 |
1,999 |
74 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,031 |
0 |
0 |
0 |
8 |
0 |
1,997 |
80 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,625,924 |
0 |
0 |
0 |
25,272 |
0 |
14,071 |
1,050 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,522 |
0 |
0 |
0 |
25,272 |
0 |
14,113 |
995 |
dash |
| 18 |
no-host |
configure.cpython |
1,582,695 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
922 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,610,053 |
0 |
0 |
0 |
25,280 |
0 |
11,307 |
816 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,368 |
0 |
0 |
0 |
25,272 |
0 |
11,289 |
995 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,256 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
197 |
bash |
| 12 |
no-host |
configure.ocaml |
280,721 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
199 |
dash |
| 20 |
no-host |
configure.ocaml |
305,005 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
230 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,400 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
194 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,867 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
258 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,234 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,203 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,624 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,678 |
0 |
0 |
0 |
96 |
0 |
45 |
5 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,141 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,257 |
1 |
0 |
232 |
35,944 |
0 |
18,930 |
1,106 |
bash |
| 11 |
no-host |
configure.util-linux |
1,703,064 |
0 |
0 |
0 |
35,936 |
0 |
17,090 |
1,243 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,951 |
2 |
0 |
0 |
35,952 |
0 |
16,158 |
924 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,515,146 |
1 |
0 |
0 |
35,944 |
0 |
16,220 |
962 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,458,024 |
2 |
0 |
0 |
35,936 |
0 |
16,146 |
946 |
osh-static |
| 6 |
no-host |
configure.yash |
173,322 |
0 |
0 |
0 |
3,616 |
0 |
883 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,604 |
0 |
0 |
0 |
3,616 |
0 |
1,004 |
100 |
dash |
| 22 |
no-host |
configure.yash |
177,065 |
0 |
0 |
0 |
3,632 |
0 |
855 |
109 |
osh-native |
| 30 |
no-host |
configure.yash |
176,525 |
0 |
0 |
0 |
3,632 |
0 |
858 |
89 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,982 |
0 |
0 |
0 |
3,624 |
0 |
857 |
96 |
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 |
388 |
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 |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host