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 |
21 |
22 |
19 |
1.35 |
1.25 |
| bin-true |
no-host |
616 |
439 |
799 |
817 |
670 |
1.30 |
1.09 |
| configure.cpython |
no-host |
14,190 |
13,928 |
13,637 |
14,252 |
13,856 |
0.96 |
0.98 |
| configure.ocaml |
no-host |
3,679 |
3,624 |
3,812 |
3,876 |
3,832 |
1.04 |
1.04 |
| configure.tcc |
no-host |
46 |
42 |
49 |
50 |
45 |
1.07 |
0.97 |
| configure.util-linux |
no-host |
12,656 |
13,359 |
12,831 |
13,510 |
13,049 |
1.01 |
1.03 |
| configure.yash |
no-host |
1,709 |
1,656 |
1,762 |
1,793 |
1,753 |
1.03 |
1.03 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.02 |
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,379 |
1,203 |
3,330 |
3,418 |
2,811 |
1.40 |
1.18 |
| bin-true |
no-host |
99,430 |
49,409 |
133,331 |
133,888 |
111,012 |
1.34 |
1.12 |
| configure.cpython |
no-host |
1,630,582 |
1,636,434 |
1,597,805 |
1,604,237 |
1,521,932 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,568 |
280,689 |
306,453 |
306,290 |
300,956 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,222 |
4,207 |
5,600 |
5,648 |
5,140 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,539,494 |
1,700,912 |
1,499,067 |
1,520,613 |
1,457,702 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,268 |
159,549 |
177,169 |
177,174 |
173,082 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
86 |
387 |
400 |
181 |
2.56 |
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.4 |
3,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
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,637 |
1 |
68 |
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,831 |
3 |
69 |
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,812 |
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 |
49 |
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,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.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 |
6.9 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
817 |
1 |
2 |
3.5 |
9.0 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,252 |
1 |
70 |
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 |
13,510 |
3 |
74 |
21.6 |
39.6 |
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,876 |
1 |
2 |
2.8 |
28.5 |
149,681 |
12,647 |
6,562 |
9,207 |
70,290 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
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,793 |
1 |
2 |
2.7 |
33.3 |
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 |
10.1 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
12 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
13 |
7 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
616 |
323 |
332 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
439 |
270 |
173 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
799 |
308 |
507 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
817 |
310 |
524 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
670 |
321 |
365 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,190 |
7,693 |
6,888 |
34.1 |
bash |
| 10 |
no-host |
configure.cpython |
13,928 |
7,704 |
6,618 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,637 |
7,286 |
6,631 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,252 |
7,611 |
6,925 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,856 |
7,509 |
6,593 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,679 |
1,467 |
1,251 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,624 |
1,517 |
1,131 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,812 |
1,512 |
1,341 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,876 |
1,531 |
1,387 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,832 |
1,546 |
1,318 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
30 |
16 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
18 |
24 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
24 |
25 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
50 |
19 |
31 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
29 |
16 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,656 |
6,750 |
6,369 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,359 |
6,536 |
7,315 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,831 |
6,346 |
6,713 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,510 |
6,606 |
7,148 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
13,049 |
6,519 |
6,759 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,709 |
969 |
748 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,656 |
928 |
728 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,762 |
948 |
816 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,793 |
977 |
818 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,753 |
947 |
808 |
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 |
1 |
2 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
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,379 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,203 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,330 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,418 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,811 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,430 |
0 |
0 |
0 |
8 |
0 |
2,000 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,409 |
0 |
0 |
0 |
8 |
0 |
2,997 |
65 |
dash |
| 17 |
no-host |
bin-true |
133,331 |
0 |
0 |
0 |
16 |
0 |
1,996 |
80 |
osh-native |
| 25 |
no-host |
bin-true |
133,888 |
0 |
0 |
0 |
16 |
0 |
1,999 |
78 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,012 |
0 |
0 |
0 |
8 |
0 |
1,996 |
73 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,630,582 |
0 |
0 |
0 |
25,272 |
0 |
14,072 |
978 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,434 |
0 |
0 |
0 |
25,272 |
0 |
14,126 |
1,013 |
dash |
| 18 |
no-host |
configure.cpython |
1,597,805 |
0 |
0 |
0 |
25,280 |
0 |
11,293 |
874 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,237 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
852 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,932 |
1 |
0 |
0 |
25,272 |
0 |
11,301 |
876 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,568 |
0 |
0 |
0 |
4,432 |
0 |
2,018 |
220 |
bash |
| 12 |
no-host |
configure.ocaml |
280,689 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
188 |
dash |
| 20 |
no-host |
configure.ocaml |
306,453 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
209 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,290 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,956 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
254 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,222 |
0 |
0 |
0 |
80 |
0 |
48 |
0 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
51 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,600 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,648 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,140 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,494 |
1 |
0 |
232 |
35,944 |
0 |
18,969 |
1,051 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,912 |
1 |
0 |
0 |
35,936 |
0 |
17,109 |
1,208 |
dash |
| 19 |
no-host |
configure.util-linux |
1,499,067 |
0 |
0 |
0 |
35,952 |
0 |
16,187 |
920 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,520,613 |
1 |
0 |
0 |
35,944 |
0 |
16,214 |
910 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,702 |
1 |
0 |
0 |
35,936 |
0 |
16,196 |
884 |
osh-static |
| 6 |
no-host |
configure.yash |
173,268 |
0 |
0 |
0 |
3,616 |
0 |
878 |
93 |
bash |
| 14 |
no-host |
configure.yash |
159,549 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
103 |
dash |
| 22 |
no-host |
configure.yash |
177,169 |
0 |
0 |
0 |
3,632 |
0 |
857 |
107 |
osh-native |
| 30 |
no-host |
configure.yash |
177,174 |
0 |
0 |
0 |
3,624 |
0 |
858 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,082 |
0 |
0 |
0 |
3,624 |
0 |
856 |
93 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
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 |
387 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
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