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 |
20 |
21 |
18 |
1.31 |
1.14 |
| bin-true |
no-host |
613 |
439 |
807 |
805 |
647 |
1.32 |
1.06 |
| configure.cpython |
no-host |
13,891 |
14,010 |
13,566 |
13,623 |
12,997 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,692 |
3,633 |
3,766 |
3,728 |
3,698 |
1.02 |
1.00 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,555 |
13,449 |
12,598 |
12,688 |
12,197 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,726 |
1,664 |
1,713 |
1,683 |
1,670 |
0.99 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.46 |
1.01 |
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,386 |
1,162 |
3,327 |
3,418 |
2,799 |
1.39 |
1.17 |
| bin-true |
no-host |
101,468 |
49,394 |
134,705 |
133,004 |
110,984 |
1.33 |
1.09 |
| configure.cpython |
no-host |
1,622,802 |
1,635,942 |
1,585,439 |
1,593,755 |
1,522,336 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,622 |
280,839 |
306,371 |
307,502 |
300,824 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,252 |
4,194 |
5,613 |
5,654 |
5,135 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,536,845 |
1,700,630 |
1,495,001 |
1,518,046 |
1,457,997 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,167 |
159,504 |
176,406 |
177,281 |
172,964 |
1.02 |
1.00 |
| hello-world |
no-host |
149 |
86 |
391 |
400 |
180 |
2.62 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
807 |
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 |
13,566 |
1 |
66 |
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,598 |
3 |
64 |
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,766 |
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.2 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,713 |
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 |
20 |
1 |
2 |
3.0 |
9.3 |
117,212 |
65,784 |
41,994 |
4,970 |
54,594 |
57,648 |
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 |
805 |
1 |
2 |
3.5 |
9.2 |
151,881 |
10,754 |
2,968 |
14,775 |
72,390 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,623 |
1 |
68 |
14.8 |
34.7 |
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,688 |
3 |
67 |
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,728 |
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.1 |
30,530 |
30,530 |
0 |
1,674 |
14,467 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,683 |
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 |
21 |
1 |
2 |
3.0 |
10.0 |
117,212 |
65,788 |
41,998 |
4,970 |
54,594 |
57,648 |
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 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
14 |
7 |
9.3 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
14 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
613 |
310 |
340 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
439 |
271 |
175 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
807 |
314 |
510 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
805 |
301 |
521 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
647 |
314 |
351 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,891 |
7,598 |
6,678 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
14,010 |
7,656 |
6,747 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,566 |
7,191 |
6,651 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,623 |
7,175 |
6,733 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,997 |
7,213 |
6,024 |
34.8 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,692 |
1,501 |
1,231 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,633 |
1,476 |
1,181 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,766 |
1,515 |
1,291 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,728 |
1,482 |
1,286 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,698 |
1,514 |
1,215 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
25 |
22 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
21 |
21 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
23 |
24 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
26 |
21 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
24 |
19 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,555 |
6,635 |
6,386 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,449 |
6,496 |
7,445 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
12,598 |
6,201 |
6,618 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,688 |
6,276 |
6,636 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,197 |
6,194 |
6,222 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,726 |
942 |
793 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,664 |
968 |
698 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,713 |
964 |
751 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,683 |
929 |
757 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,670 |
922 |
750 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.7 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
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,386 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,162 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,327 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,418 |
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 |
101,468 |
0 |
0 |
0 |
8 |
0 |
1,998 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,394 |
0 |
0 |
0 |
8 |
0 |
2,999 |
43 |
dash |
| 17 |
no-host |
bin-true |
134,705 |
0 |
0 |
0 |
16 |
0 |
1,998 |
72 |
osh-native |
| 25 |
no-host |
bin-true |
133,004 |
0 |
0 |
0 |
16 |
0 |
1,998 |
72 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,984 |
0 |
0 |
0 |
8 |
0 |
1,999 |
72 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,802 |
0 |
0 |
0 |
25,272 |
0 |
14,073 |
1,051 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,942 |
0 |
0 |
0 |
25,272 |
0 |
14,116 |
1,025 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,439 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
823 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,593,755 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
849 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,336 |
0 |
0 |
0 |
25,272 |
0 |
11,296 |
850 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,622 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
177 |
bash |
| 12 |
no-host |
configure.ocaml |
280,839 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
183 |
dash |
| 20 |
no-host |
configure.ocaml |
306,371 |
0 |
0 |
0 |
4,440 |
0 |
1,991 |
220 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,502 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
212 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,824 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
221 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,252 |
0 |
0 |
0 |
80 |
0 |
50 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,194 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,613 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,654 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,135 |
0 |
0 |
0 |
88 |
0 |
45 |
4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,845 |
0 |
0 |
232 |
35,944 |
0 |
18,970 |
1,171 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,630 |
1 |
0 |
0 |
35,936 |
0 |
17,119 |
1,227 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,001 |
0 |
0 |
0 |
35,952 |
0 |
16,207 |
1,007 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,046 |
1 |
0 |
0 |
35,944 |
0 |
16,217 |
967 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,457,997 |
1 |
0 |
0 |
35,936 |
0 |
16,194 |
889 |
osh-static |
| 6 |
no-host |
configure.yash |
173,167 |
0 |
0 |
0 |
3,616 |
0 |
878 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,504 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
94 |
dash |
| 22 |
no-host |
configure.yash |
176,406 |
0 |
0 |
0 |
3,624 |
0 |
859 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
177,281 |
0 |
0 |
0 |
3,624 |
0 |
859 |
106 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,964 |
0 |
0 |
0 |
3,616 |
0 |
856 |
99 |
osh-static |
| 0 |
no-host |
hello-world |
149 |
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 |
391 |
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 |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host