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 |
17 |
9 |
25 |
23 |
19 |
1.47 |
1.12 |
| bin-true |
no-host |
642 |
529 |
845 |
890 |
705 |
1.32 |
1.10 |
| configure.cpython |
no-host |
14,533 |
15,237 |
14,222 |
14,652 |
14,028 |
0.98 |
0.97 |
| configure.ocaml |
no-host |
3,798 |
3,772 |
3,861 |
3,865 |
3,919 |
1.02 |
1.03 |
| configure.tcc |
no-host |
50 |
44 |
50 |
50 |
53 |
1.00 |
1.06 |
| configure.util-linux |
no-host |
13,278 |
14,440 |
13,253 |
13,480 |
13,420 |
1.00 |
1.01 |
| configure.yash |
no-host |
1,894 |
1,747 |
1,863 |
1,801 |
1,920 |
0.98 |
1.01 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.07 |
0.89 |
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,364 |
1,159 |
3,332 |
3,420 |
2,851 |
1.41 |
1.21 |
| bin-true |
no-host |
100,453 |
49,459 |
133,000 |
132,348 |
111,728 |
1.32 |
1.11 |
| configure.cpython |
no-host |
1,620,055 |
1,637,529 |
1,591,817 |
1,591,589 |
1,525,280 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,592 |
280,815 |
306,059 |
307,608 |
300,143 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,216 |
4,200 |
5,612 |
5,666 |
5,138 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,536,661 |
1,700,744 |
1,496,947 |
1,511,406 |
1,451,769 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,355 |
159,559 |
176,577 |
177,120 |
172,964 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
87 |
387 |
400 |
183 |
2.55 |
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,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
845 |
1 |
2 |
3.5 |
8.8 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,222 |
1 |
72 |
14.8 |
34.5 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,253 |
3 |
70 |
21.6 |
39.7 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,861 |
1 |
2 |
2.8 |
28.5 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.4 |
26.0 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,863 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
25 |
1 |
3 |
3.0 |
9.6 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
890 |
1 |
2 |
3.5 |
8.9 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,652 |
2 |
74 |
14.8 |
34.5 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,480 |
3 |
74 |
21.6 |
39.6 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,865 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.4 |
26.2 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,801 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
2 |
3.0 |
10.1 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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 |
17 |
10 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
2 |
7 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
25 |
13 |
13 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
10 |
14 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
642 |
314 |
370 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
529 |
280 |
224 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
845 |
292 |
570 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
890 |
305 |
584 |
8.9 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
705 |
305 |
399 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,533 |
7,866 |
7,067 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
15,237 |
8,054 |
7,528 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
14,222 |
7,572 |
6,921 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,652 |
7,752 |
7,152 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
14,028 |
7,622 |
6,595 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,798 |
1,561 |
1,278 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,772 |
1,528 |
1,269 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,861 |
1,530 |
1,363 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,865 |
1,527 |
1,379 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,919 |
1,537 |
1,407 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
50 |
25 |
25 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
44 |
24 |
20 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
50 |
28 |
22 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
50 |
23 |
27 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
53 |
30 |
24 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,278 |
6,833 |
6,907 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
14,440 |
6,919 |
7,969 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,253 |
6,532 |
6,933 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,480 |
6,697 |
7,007 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
13,420 |
6,714 |
6,889 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,894 |
1,043 |
846 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,747 |
1,004 |
743 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,863 |
1,016 |
846 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,801 |
970 |
829 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,920 |
1,034 |
861 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
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 |
2 |
1 |
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,364 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,159 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,332 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,420 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,851 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,453 |
0 |
0 |
0 |
8 |
0 |
1,997 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,459 |
0 |
0 |
0 |
8 |
0 |
2,989 |
55 |
dash |
| 17 |
no-host |
bin-true |
133,000 |
0 |
0 |
0 |
16 |
0 |
1,994 |
75 |
osh-native |
| 25 |
no-host |
bin-true |
132,348 |
0 |
0 |
0 |
16 |
0 |
1,991 |
80 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,728 |
0 |
0 |
0 |
8 |
0 |
1,996 |
81 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,620,055 |
0 |
0 |
0 |
25,272 |
0 |
14,093 |
1,030 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,529 |
0 |
0 |
0 |
25,272 |
0 |
14,133 |
1,092 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,817 |
1 |
0 |
0 |
25,280 |
0 |
11,290 |
873 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,591,589 |
0 |
0 |
0 |
25,280 |
0 |
11,309 |
828 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,280 |
0 |
0 |
0 |
25,272 |
0 |
11,286 |
870 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,592 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
198 |
bash |
| 12 |
no-host |
configure.ocaml |
280,815 |
0 |
0 |
0 |
4,432 |
0 |
2,104 |
187 |
dash |
| 20 |
no-host |
configure.ocaml |
306,059 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
209 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,608 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
202 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,143 |
0 |
0 |
0 |
4,432 |
0 |
1,995 |
220 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,216 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,200 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,612 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,666 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,138 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,661 |
2 |
0 |
232 |
35,952 |
0 |
18,989 |
1,075 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,744 |
1 |
0 |
0 |
35,944 |
0 |
17,080 |
1,186 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,947 |
0 |
0 |
0 |
35,960 |
0 |
16,152 |
923 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,511,406 |
1 |
0 |
0 |
35,952 |
0 |
16,118 |
933 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,451,769 |
2 |
0 |
0 |
35,944 |
0 |
16,120 |
1,020 |
osh-static |
| 6 |
no-host |
configure.yash |
173,355 |
0 |
0 |
0 |
3,616 |
0 |
878 |
103 |
bash |
| 14 |
no-host |
configure.yash |
159,559 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
101 |
dash |
| 22 |
no-host |
configure.yash |
176,577 |
0 |
0 |
0 |
3,632 |
0 |
857 |
102 |
osh-native |
| 30 |
no-host |
configure.yash |
177,120 |
0 |
0 |
0 |
3,624 |
0 |
857 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,964 |
0 |
0 |
0 |
3,616 |
0 |
859 |
94 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
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 |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host