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 |
13 |
7 |
18 |
20 |
16 |
1.39 |
1.27 |
| bin-true |
no-host |
458 |
315 |
605 |
619 |
503 |
1.32 |
1.10 |
| configure.cpython |
no-host |
11,845 |
11,884 |
11,665 |
11,776 |
11,369 |
0.98 |
0.96 |
| configure.ocaml |
no-host |
3,353 |
3,309 |
3,349 |
3,392 |
3,359 |
1.00 |
1.00 |
| configure.tcc |
no-host |
39 |
35 |
39 |
40 |
38 |
0.99 |
0.97 |
| configure.util-linux |
no-host |
10,561 |
11,200 |
10,728 |
10,817 |
10,410 |
1.02 |
0.99 |
| configure.yash |
no-host |
1,474 |
1,423 |
1,490 |
1,495 |
1,459 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.27 |
1.07 |
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,411 |
1,168 |
3,313 |
3,462 |
2,852 |
1.37 |
1.18 |
| bin-true |
no-host |
101,859 |
49,843 |
130,426 |
134,765 |
113,124 |
1.28 |
1.11 |
| configure.cpython |
no-host |
1,639,108 |
1,641,852 |
1,590,862 |
1,602,476 |
1,527,961 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
300,363 |
281,529 |
306,585 |
307,767 |
300,798 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,256 |
4,239 |
5,597 |
5,678 |
5,150 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,540,610 |
1,706,831 |
1,500,610 |
1,519,074 |
1,456,963 |
0.97 |
0.95 |
| configure.yash |
no-host |
173,737 |
159,914 |
176,931 |
177,378 |
173,284 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
87 |
392 |
400 |
185 |
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 |
2 |
0 |
0 |
0.3 |
6.7 |
3,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
605 |
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 |
11,665 |
1 |
61 |
14.8 |
34.4 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,728 |
3 |
65 |
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,349 |
1 |
2 |
2.8 |
28.8 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
39 |
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,490 |
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 |
18 |
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 |
2 |
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 |
619 |
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 |
11,776 |
1 |
61 |
14.8 |
34.4 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,817 |
3 |
64 |
21.6 |
39.9 |
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,392 |
1 |
2 |
2.8 |
28.8 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
40 |
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,495 |
1 |
2 |
2.7 |
33.3 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
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 |
13 |
9 |
4 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
5 |
2 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
10 |
8 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
20 |
13 |
8 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
11 |
5 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
458 |
287 |
203 |
3.4 |
bash |
| 9 |
no-host |
bin-true |
315 |
236 |
78 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
605 |
319 |
296 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
619 |
323 |
307 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
503 |
309 |
205 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,845 |
7,734 |
4,374 |
34.8 |
bash |
| 10 |
no-host |
configure.cpython |
11,884 |
7,742 |
4,407 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
11,665 |
7,381 |
4,451 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,776 |
7,259 |
4,693 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,369 |
7,339 |
4,167 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,353 |
1,536 |
828 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,309 |
1,503 |
804 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,349 |
1,518 |
842 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,392 |
1,530 |
875 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,359 |
1,498 |
866 |
28.9 |
osh-static |
| 5 |
no-host |
configure.tcc |
39 |
24 |
15 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
35 |
18 |
18 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
39 |
20 |
19 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
40 |
21 |
18 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
38 |
27 |
11 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,561 |
6,719 |
4,165 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
11,200 |
6,644 |
4,913 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
10,728 |
6,350 |
4,502 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,817 |
6,355 |
4,591 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,410 |
6,308 |
4,221 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,474 |
965 |
503 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,423 |
904 |
504 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
1,490 |
962 |
518 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,495 |
944 |
542 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,459 |
960 |
491 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
2 |
1 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
2 |
0 |
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,411 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,168 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,313 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,462 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,852 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
101,859 |
0 |
0 |
0 |
8 |
0 |
2,000 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,843 |
0 |
0 |
0 |
8 |
0 |
2,996 |
42 |
dash |
| 17 |
no-host |
bin-true |
130,426 |
0 |
0 |
0 |
16 |
0 |
1,996 |
60 |
osh-native |
| 25 |
no-host |
bin-true |
134,765 |
0 |
0 |
0 |
16 |
0 |
1,995 |
57 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
113,124 |
0 |
0 |
0 |
8 |
0 |
1,999 |
65 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,639,108 |
0 |
0 |
0 |
25,272 |
0 |
14,033 |
1,002 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,852 |
0 |
0 |
0 |
25,272 |
0 |
14,078 |
942 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,862 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
821 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,476 |
0 |
0 |
0 |
25,280 |
0 |
11,319 |
810 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,527,961 |
0 |
0 |
0 |
25,272 |
0 |
11,325 |
810 |
osh-static |
| 4 |
no-host |
configure.ocaml |
300,363 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
205 |
bash |
| 12 |
no-host |
configure.ocaml |
281,529 |
0 |
0 |
0 |
4,432 |
0 |
2,114 |
177 |
dash |
| 20 |
no-host |
configure.ocaml |
306,585 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
188 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,767 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,798 |
0 |
0 |
0 |
4,432 |
0 |
2,004 |
204 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,256 |
0 |
0 |
0 |
80 |
0 |
48 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,239 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,597 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,678 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,150 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,540,610 |
0 |
0 |
232 |
35,944 |
0 |
18,816 |
930 |
bash |
| 11 |
no-host |
configure.util-linux |
1,706,831 |
2 |
0 |
0 |
35,936 |
0 |
16,921 |
1,047 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,610 |
1 |
0 |
0 |
35,960 |
0 |
16,163 |
830 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,074 |
4 |
0 |
0 |
35,944 |
0 |
16,184 |
878 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,456,963 |
2 |
0 |
0 |
35,936 |
0 |
16,175 |
846 |
osh-static |
| 6 |
no-host |
configure.yash |
173,737 |
0 |
0 |
0 |
3,616 |
0 |
877 |
102 |
bash |
| 14 |
no-host |
configure.yash |
159,914 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
101 |
dash |
| 22 |
no-host |
configure.yash |
176,931 |
0 |
0 |
0 |
3,624 |
0 |
857 |
243 |
osh-native |
| 30 |
no-host |
configure.yash |
177,378 |
0 |
0 |
0 |
3,624 |
0 |
849 |
89 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,284 |
0 |
0 |
0 |
3,616 |
0 |
855 |
85 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
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 |
392 |
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 |
185 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
osh-static |
Shell and Host