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 |
14 |
9 |
18 |
19 |
17 |
1.24 |
1.16 |
| bin-true |
no-host |
457 |
322 |
611 |
603 |
505 |
1.34 |
1.11 |
| configure.cpython |
no-host |
12,321 |
12,423 |
11,932 |
11,788 |
11,578 |
0.97 |
0.94 |
| configure.ocaml |
no-host |
3,392 |
3,348 |
3,355 |
3,391 |
3,379 |
0.99 |
1.00 |
| configure.tcc |
no-host |
39 |
36 |
40 |
40 |
37 |
1.02 |
0.96 |
| configure.util-linux |
no-host |
10,863 |
11,634 |
10,806 |
10,909 |
10,798 |
0.99 |
0.99 |
| configure.yash |
no-host |
1,509 |
1,451 |
1,502 |
1,481 |
1,485 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.46 |
1.02 |
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,389 |
1,177 |
3,308 |
3,431 |
2,829 |
1.38 |
1.18 |
| bin-true |
no-host |
99,907 |
49,842 |
132,730 |
134,469 |
112,482 |
1.33 |
1.13 |
| configure.cpython |
no-host |
1,624,866 |
1,644,649 |
1,593,384 |
1,610,295 |
1,522,389 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,526 |
281,489 |
307,389 |
308,226 |
300,874 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,231 |
4,243 |
5,574 |
5,709 |
5,124 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,535,729 |
1,711,104 |
1,509,757 |
1,524,572 |
1,485,399 |
0.98 |
0.97 |
| configure.yash |
no-host |
173,549 |
159,933 |
177,731 |
177,953 |
173,108 |
1.02 |
1.00 |
| hello-world |
no-host |
156 |
86 |
396 |
401 |
184 |
2.54 |
1.18 |
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,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
611 |
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 |
11,932 |
2 |
62 |
14.8 |
34.6 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,806 |
3 |
65 |
21.6 |
39.6 |
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,355 |
1 |
2 |
2.8 |
28.8 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
40 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,502 |
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 |
18 |
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 |
2 |
0 |
0 |
0.3 |
7.2 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
603 |
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 |
11,788 |
1 |
62 |
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 |
10,909 |
3 |
65 |
21.6 |
39.6 |
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,391 |
1 |
2 |
2.8 |
28.9 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
40 |
0 |
0 |
1.4 |
26.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,481 |
1 |
2 |
2.7 |
33.3 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
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 |
14 |
8 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
11 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
12 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
17 |
10 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
457 |
282 |
210 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
322 |
224 |
93 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
611 |
317 |
305 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
603 |
322 |
294 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
505 |
299 |
220 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
12,321 |
7,761 |
4,884 |
34.8 |
bash |
| 10 |
no-host |
configure.cpython |
12,423 |
7,925 |
4,826 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
11,932 |
7,298 |
4,818 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,788 |
7,300 |
4,704 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,578 |
7,226 |
4,538 |
34.1 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,392 |
1,512 |
903 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,348 |
1,473 |
880 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,355 |
1,494 |
882 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,391 |
1,522 |
892 |
28.9 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,379 |
1,511 |
882 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
39 |
26 |
13 |
25.9 |
bash |
| 13 |
no-host |
configure.tcc |
36 |
22 |
14 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
40 |
25 |
15 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
40 |
24 |
16 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
26 |
12 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,863 |
6,770 |
4,468 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
11,634 |
6,697 |
5,346 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
10,806 |
6,276 |
4,670 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,909 |
6,361 |
4,705 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,798 |
6,433 |
4,511 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,509 |
957 |
554 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,451 |
952 |
493 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,502 |
949 |
548 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,481 |
944 |
534 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,485 |
958 |
522 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
0 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
2 |
0 |
7.2 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,389 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,177 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,308 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,431 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,829 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,907 |
0 |
0 |
0 |
8 |
0 |
2,000 |
58 |
bash |
| 9 |
no-host |
bin-true |
49,842 |
0 |
0 |
0 |
8 |
0 |
2,998 |
49 |
dash |
| 17 |
no-host |
bin-true |
132,730 |
0 |
0 |
0 |
16 |
0 |
1,999 |
65 |
osh-native |
| 25 |
no-host |
bin-true |
134,469 |
0 |
0 |
0 |
16 |
0 |
2,000 |
70 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,482 |
0 |
0 |
0 |
8 |
0 |
2,000 |
54 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,866 |
0 |
0 |
0 |
25,272 |
0 |
14,018 |
989 |
bash |
| 10 |
no-host |
configure.cpython |
1,644,649 |
1 |
0 |
0 |
25,272 |
0 |
14,040 |
1,002 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,384 |
0 |
0 |
0 |
25,280 |
0 |
11,275 |
861 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,610,295 |
0 |
0 |
0 |
25,280 |
0 |
11,313 |
811 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,389 |
0 |
0 |
0 |
25,272 |
0 |
11,319 |
818 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,526 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
281,489 |
0 |
0 |
0 |
4,432 |
0 |
2,115 |
167 |
dash |
| 20 |
no-host |
configure.ocaml |
307,389 |
0 |
0 |
0 |
4,440 |
0 |
2,006 |
191 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,226 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
190 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,874 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
218 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,231 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,243 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,574 |
0 |
0 |
0 |
96 |
0 |
44 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,709 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,124 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,535,729 |
1 |
0 |
0 |
35,936 |
0 |
18,768 |
1,034 |
bash |
| 11 |
no-host |
configure.util-linux |
1,711,104 |
1 |
0 |
0 |
35,936 |
0 |
16,875 |
1,106 |
dash |
| 19 |
no-host |
configure.util-linux |
1,509,757 |
3 |
0 |
0 |
35,960 |
0 |
16,193 |
897 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,524,572 |
2 |
0 |
0 |
35,944 |
0 |
16,203 |
838 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,485,399 |
1 |
0 |
0 |
35,936 |
0 |
16,161 |
898 |
osh-static |
| 6 |
no-host |
configure.yash |
173,549 |
0 |
0 |
0 |
3,616 |
0 |
878 |
89 |
bash |
| 14 |
no-host |
configure.yash |
159,933 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
96 |
dash |
| 22 |
no-host |
configure.yash |
177,731 |
0 |
0 |
0 |
3,624 |
0 |
860 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
177,953 |
0 |
0 |
0 |
3,624 |
0 |
859 |
89 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,108 |
0 |
0 |
0 |
3,616 |
0 |
857 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
156 |
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 |
401 |
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