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 |
20 |
22 |
18 |
1.30 |
1.18 |
| bin-true |
no-host |
612 |
438 |
795 |
810 |
649 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,420 |
13,561 |
13,190 |
13,066 |
12,685 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,587 |
3,544 |
3,641 |
3,702 |
3,596 |
1.02 |
1.00 |
| configure.tcc |
no-host |
45 |
40 |
45 |
46 |
43 |
1.01 |
0.95 |
| configure.util-linux |
no-host |
12,277 |
13,021 |
12,100 |
12,471 |
11,899 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,662 |
1,603 |
1,657 |
1,669 |
1,662 |
1.00 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.44 |
1.05 |
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,384 |
1,175 |
3,288 |
3,432 |
2,854 |
1.38 |
1.20 |
| bin-true |
no-host |
102,451 |
49,410 |
132,001 |
136,310 |
111,737 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,628,186 |
1,643,088 |
1,595,240 |
1,595,761 |
1,524,259 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,788 |
281,050 |
305,444 |
307,423 |
300,183 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,227 |
4,202 |
5,580 |
5,703 |
5,132 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,543,815 |
1,697,658 |
1,497,466 |
1,518,644 |
1,452,386 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,275 |
159,513 |
176,983 |
177,167 |
172,976 |
1.02 |
1.00 |
| hello-world |
no-host |
153 |
88 |
389 |
402 |
182 |
2.54 |
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,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
795 |
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 |
13,190 |
1 |
64 |
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 |
12,100 |
3 |
61 |
21.6 |
39.6 |
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,641 |
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 |
45 |
0 |
0 |
1.4 |
26.1 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,657 |
1 |
2 |
2.7 |
33.3 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
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 |
810 |
1 |
2 |
3.5 |
9.3 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,066 |
1 |
63 |
14.8 |
34.6 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,471 |
3 |
67 |
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,702 |
1 |
2 |
2.8 |
28.6 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
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,669 |
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 |
22 |
1 |
2 |
3.0 |
9.8 |
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 |
15 |
8 |
8 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
10 |
12 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
612 |
313 |
339 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
438 |
273 |
171 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
795 |
311 |
499 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
810 |
307 |
519 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
649 |
308 |
357 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,420 |
7,407 |
6,397 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,561 |
7,527 |
6,431 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,190 |
7,050 |
6,417 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,066 |
6,893 |
6,456 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,685 |
7,018 |
5,900 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,587 |
1,431 |
1,196 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,544 |
1,456 |
1,113 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,641 |
1,439 |
1,240 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,702 |
1,516 |
1,229 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,596 |
1,412 |
1,216 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
25 |
21 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
23 |
17 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
45 |
19 |
27 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
23 |
23 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
21 |
22 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,277 |
6,419 |
6,310 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,021 |
6,356 |
7,149 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,100 |
6,018 |
6,302 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,471 |
6,239 |
6,459 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,899 |
6,117 |
5,995 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,662 |
919 |
751 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,603 |
913 |
693 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,657 |
938 |
723 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,669 |
926 |
746 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,662 |
901 |
765 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
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,384 |
0 |
0 |
0 |
8 |
0 |
41 |
2 |
bash |
| 15 |
no-host |
abuild-print-help |
1,175 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,288 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,432 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,854 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,451 |
0 |
0 |
0 |
8 |
0 |
2,001 |
49 |
bash |
| 9 |
no-host |
bin-true |
49,410 |
0 |
0 |
0 |
8 |
0 |
2,999 |
48 |
dash |
| 17 |
no-host |
bin-true |
132,001 |
0 |
0 |
0 |
16 |
0 |
1,997 |
88 |
osh-native |
| 25 |
no-host |
bin-true |
136,310 |
0 |
0 |
0 |
16 |
0 |
2,002 |
70 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,737 |
0 |
0 |
0 |
8 |
0 |
2,000 |
76 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,186 |
0 |
0 |
0 |
25,272 |
0 |
14,075 |
996 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,088 |
0 |
0 |
0 |
25,272 |
0 |
14,092 |
1,049 |
dash |
| 18 |
no-host |
configure.cpython |
1,595,240 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
831 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,595,761 |
0 |
0 |
0 |
25,280 |
0 |
11,311 |
828 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,524,259 |
0 |
0 |
0 |
25,272 |
0 |
11,316 |
860 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,788 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
190 |
bash |
| 12 |
no-host |
configure.ocaml |
281,050 |
0 |
0 |
0 |
4,432 |
0 |
2,108 |
176 |
dash |
| 20 |
no-host |
configure.ocaml |
305,444 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
219 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,423 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
180 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,183 |
0 |
0 |
0 |
4,432 |
0 |
1,995 |
193 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,227 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,202 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,580 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,703 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,132 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,543,815 |
1 |
0 |
232 |
35,944 |
0 |
18,968 |
1,070 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,658 |
1 |
0 |
0 |
35,936 |
0 |
17,060 |
1,129 |
dash |
| 19 |
no-host |
configure.util-linux |
1,497,466 |
0 |
0 |
0 |
35,952 |
0 |
16,129 |
866 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,644 |
1 |
0 |
0 |
35,944 |
0 |
16,143 |
884 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,452,386 |
0 |
0 |
0 |
35,936 |
0 |
16,192 |
947 |
osh-static |
| 6 |
no-host |
configure.yash |
173,275 |
0 |
0 |
0 |
3,616 |
0 |
876 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,513 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,983 |
0 |
0 |
0 |
3,624 |
0 |
857 |
91 |
osh-native |
| 30 |
no-host |
configure.yash |
177,167 |
0 |
0 |
0 |
3,624 |
0 |
858 |
114 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,976 |
0 |
0 |
0 |
3,616 |
0 |
857 |
94 |
osh-static |
| 0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
389 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host