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 |
22 |
19 |
1.25 |
1.14 |
| bin-true |
no-host |
637 |
469 |
809 |
820 |
659 |
1.27 |
1.03 |
| configure.cpython |
no-host |
14,589 |
14,437 |
13,880 |
13,880 |
13,328 |
0.95 |
0.91 |
| configure.ocaml |
no-host |
3,750 |
3,675 |
3,772 |
3,748 |
3,714 |
1.01 |
0.99 |
| configure.tcc |
no-host |
47 |
42 |
48 |
49 |
44 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,947 |
13,660 |
12,889 |
12,852 |
12,534 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,735 |
1,662 |
1,733 |
1,715 |
1,696 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.38 |
0.97 |
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,390 |
1,191 |
3,293 |
3,423 |
2,824 |
1.38 |
1.18 |
| bin-true |
no-host |
100,470 |
49,362 |
131,324 |
135,053 |
112,073 |
1.31 |
1.12 |
| configure.cpython |
no-host |
1,623,290 |
1,647,594 |
1,590,955 |
1,603,003 |
1,516,913 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,650 |
280,762 |
306,705 |
307,873 |
300,174 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,263 |
4,212 |
5,597 |
5,631 |
5,113 |
1.06 |
0.97 |
| configure.util-linux |
no-host |
1,536,799 |
1,697,992 |
1,512,741 |
1,519,896 |
1,479,442 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,454 |
159,531 |
176,891 |
177,349 |
172,720 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
86 |
396 |
402 |
184 |
2.64 |
1.23 |
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.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
809 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,880 |
1 |
68 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,889 |
3 |
69 |
21.6 |
39.7 |
2,705,398 |
37,471 |
66,342 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,772 |
1 |
2 |
2.8 |
28.6 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,733 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.6 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
820 |
1 |
2 |
3.5 |
9.2 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,880 |
1 |
69 |
14.9 |
34.4 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,852 |
3 |
68 |
21.6 |
39.9 |
2,705,398 |
37,477 |
66,348 |
119,749 |
1,291,874 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,748 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,715 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,239 |
65,805 |
42,012 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,024 |
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 |
8 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
13 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
637 |
320 |
358 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
469 |
288 |
188 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
809 |
320 |
506 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
820 |
321 |
515 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
659 |
329 |
348 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,589 |
7,945 |
7,058 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,437 |
7,897 |
6,973 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,880 |
7,461 |
6,708 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,880 |
7,382 |
6,796 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,328 |
7,262 |
6,316 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,750 |
1,538 |
1,254 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,675 |
1,521 |
1,179 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,772 |
1,505 |
1,308 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,748 |
1,492 |
1,298 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,714 |
1,507 |
1,239 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
25 |
17 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
25 |
23 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
29 |
20 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
27 |
17 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,947 |
6,828 |
6,603 |
39.9 |
bash |
| 11 |
no-host |
configure.util-linux |
13,660 |
6,711 |
7,457 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,889 |
6,401 |
6,722 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,852 |
6,326 |
6,753 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,534 |
6,343 |
6,417 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,735 |
967 |
777 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,662 |
960 |
704 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,733 |
969 |
767 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,715 |
978 |
740 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,696 |
979 |
720 |
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 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
3 |
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,390 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,191 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,293 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,423 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,824 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,470 |
0 |
0 |
0 |
8 |
0 |
1,992 |
50 |
bash |
| 9 |
no-host |
bin-true |
49,362 |
0 |
0 |
0 |
8 |
0 |
2,987 |
44 |
dash |
| 17 |
no-host |
bin-true |
131,324 |
0 |
0 |
0 |
16 |
0 |
2,000 |
79 |
osh-native |
| 25 |
no-host |
bin-true |
135,053 |
0 |
0 |
0 |
16 |
0 |
1,995 |
87 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,073 |
0 |
0 |
0 |
8 |
0 |
2,001 |
72 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,290 |
0 |
0 |
0 |
25,272 |
0 |
14,093 |
1,028 |
bash |
| 10 |
no-host |
configure.cpython |
1,647,594 |
0 |
0 |
0 |
25,272 |
0 |
14,130 |
985 |
dash |
| 18 |
no-host |
configure.cpython |
1,590,955 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
860 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,603,003 |
0 |
0 |
0 |
25,280 |
0 |
11,293 |
817 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,516,913 |
0 |
0 |
0 |
25,272 |
0 |
11,298 |
837 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,650 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,762 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
205 |
dash |
| 20 |
no-host |
configure.ocaml |
306,705 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
218 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,873 |
0 |
0 |
0 |
4,440 |
0 |
1,995 |
186 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,174 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
247 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,263 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,212 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,597 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,631 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,113 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,799 |
0 |
0 |
0 |
35,936 |
0 |
19,022 |
1,099 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,992 |
2 |
0 |
0 |
35,936 |
0 |
17,121 |
1,272 |
dash |
| 19 |
no-host |
configure.util-linux |
1,512,741 |
2 |
0 |
0 |
35,952 |
0 |
16,110 |
933 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,896 |
1 |
0 |
8 |
35,944 |
0 |
16,221 |
931 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,442 |
3 |
0 |
0 |
35,936 |
0 |
16,130 |
905 |
osh-static |
| 6 |
no-host |
configure.yash |
173,454 |
0 |
0 |
0 |
3,616 |
0 |
878 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,531 |
0 |
0 |
0 |
3,616 |
0 |
997 |
91 |
dash |
| 22 |
no-host |
configure.yash |
176,891 |
0 |
0 |
0 |
3,632 |
0 |
854 |
106 |
osh-native |
| 30 |
no-host |
configure.yash |
177,349 |
0 |
0 |
0 |
3,624 |
0 |
856 |
100 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,720 |
0 |
0 |
0 |
3,616 |
0 |
859 |
107 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
396 |
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 |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host