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 |
35 |
36 |
34 |
2.73 |
2.62 |
| bin-true |
no-host |
452 |
310 |
629 |
636 |
510 |
1.39 |
1.13 |
| configure.cpython |
no-host |
11,926 |
12,157 |
11,964 |
12,066 |
11,635 |
1.00 |
0.98 |
| configure.ocaml |
no-host |
3,385 |
3,337 |
3,426 |
3,437 |
3,389 |
1.01 |
1.00 |
| configure.tcc |
no-host |
40 |
36 |
44 |
44 |
42 |
1.12 |
1.05 |
| configure.util-linux |
no-host |
10,709 |
11,345 |
11,285 |
11,394 |
10,997 |
1.05 |
1.03 |
| configure.yash |
no-host |
1,497 |
1,444 |
1,517 |
1,508 |
1,499 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.63 |
1.33 |
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,420 |
1,198 |
3,434 |
3,594 |
2,951 |
1.42 |
1.22 |
| bin-true |
no-host |
101,873 |
49,819 |
137,147 |
137,204 |
110,868 |
1.35 |
1.09 |
| configure.cpython |
no-host |
1,633,334 |
1,642,523 |
1,591,151 |
1,620,583 |
1,510,639 |
0.97 |
0.92 |
| configure.ocaml |
no-host |
300,274 |
281,441 |
307,657 |
308,436 |
301,137 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,207 |
4,251 |
5,703 |
5,835 |
5,259 |
1.10 |
1.01 |
| configure.util-linux |
no-host |
1,545,540 |
1,709,338 |
1,503,159 |
1,529,602 |
1,453,017 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,699 |
159,921 |
177,220 |
177,138 |
172,867 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
89 |
523 |
534 |
311 |
3.44 |
2.05 |
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.8 |
7.1 |
3,896 |
3,896 |
0 |
720 |
1,912 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
629 |
1 |
2 |
4.0 |
9.4 |
152,882 |
11,691 |
2,964 |
14,779 |
73,387 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,964 |
1 |
62 |
15.5 |
34.5 |
1,753,364 |
36,445 |
28,935 |
93,076 |
872,311 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
11,285 |
3 |
66 |
22.4 |
39.6 |
2,709,910 |
37,457 |
66,323 |
119,745 |
1,296,427 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,426 |
1 |
2 |
3.3 |
28.8 |
149,932 |
12,652 |
6,557 |
9,211 |
70,536 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
44 |
0 |
0 |
1.9 |
26.3 |
30,574 |
30,574 |
0 |
1,678 |
14,506 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,517 |
1 |
2 |
3.2 |
33.4 |
143,736 |
11,764 |
6,618 |
7,164 |
70,792 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
35 |
1 |
2 |
3.7 |
10.0 |
117,251 |
65,784 |
41,994 |
4,974 |
54,626 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.8 |
7.6 |
3,895 |
3,895 |
0 |
719 |
1,912 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
636 |
1 |
2 |
4.0 |
9.7 |
152,882 |
11,695 |
2,968 |
14,779 |
73,387 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,066 |
1 |
62 |
15.5 |
34.5 |
1,753,363 |
36,450 |
28,940 |
93,075 |
872,311 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
11,394 |
3 |
66 |
22.4 |
39.9 |
2,709,910 |
37,463 |
66,329 |
119,745 |
1,296,427 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,437 |
1 |
2 |
3.3 |
28.9 |
149,932 |
12,657 |
6,562 |
9,211 |
70,536 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
44 |
0 |
0 |
1.9 |
26.3 |
30,574 |
30,574 |
0 |
1,678 |
14,506 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,508 |
1 |
2 |
3.2 |
33.3 |
143,736 |
11,768 |
6,622 |
7,164 |
70,792 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
36 |
1 |
2 |
3.7 |
10.6 |
117,251 |
65,788 |
41,998 |
4,974 |
54,626 |
57,651 |
277 |
3 |
83,996 |
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 |
10 |
3 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
3 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
35 |
11 |
25 |
10.0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
36 |
21 |
16 |
10.6 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
34 |
14 |
20 |
6.9 |
osh-static |
| 1 |
no-host |
bin-true |
452 |
281 |
196 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
310 |
224 |
84 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
629 |
321 |
316 |
9.4 |
osh-native |
| 25 |
no-host |
bin-true |
636 |
327 |
320 |
9.7 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
510 |
302 |
217 |
5.8 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,926 |
7,650 |
4,553 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
12,157 |
7,898 |
4,545 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
11,964 |
7,359 |
4,785 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
12,066 |
7,393 |
4,870 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,635 |
7,323 |
4,452 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,385 |
1,512 |
890 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,337 |
1,492 |
848 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,426 |
1,532 |
909 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,437 |
1,517 |
931 |
28.9 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,389 |
1,520 |
873 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
40 |
27 |
13 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
36 |
21 |
14 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
44 |
25 |
20 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
44 |
28 |
16 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
42 |
29 |
13 |
26.4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,709 |
6,821 |
4,224 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
11,345 |
6,728 |
4,977 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
11,285 |
6,440 |
4,972 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
11,394 |
6,501 |
5,020 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,997 |
6,519 |
4,601 |
39.9 |
osh-static |
| 6 |
no-host |
configure.yash |
1,497 |
935 |
562 |
33.2 |
bash |
| 14 |
no-host |
configure.yash |
1,444 |
940 |
493 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
1,517 |
985 |
525 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,508 |
963 |
539 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,499 |
948 |
544 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
3 |
0 |
7.1 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
0 |
3 |
7.6 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
1 |
3.8 |
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,420 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,198 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,434 |
0 |
0 |
0 |
16 |
0 |
40 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,594 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,951 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
101,873 |
0 |
0 |
0 |
8 |
0 |
1,998 |
60 |
bash |
| 9 |
no-host |
bin-true |
49,819 |
0 |
0 |
0 |
8 |
0 |
2,997 |
40 |
dash |
| 17 |
no-host |
bin-true |
137,147 |
0 |
0 |
0 |
16 |
0 |
1,999 |
61 |
osh-native |
| 25 |
no-host |
bin-true |
137,204 |
0 |
0 |
0 |
16 |
0 |
1,994 |
71 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,868 |
0 |
0 |
0 |
8 |
0 |
1,997 |
65 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,633,334 |
0 |
0 |
0 |
25,272 |
0 |
14,080 |
1,035 |
bash |
| 10 |
no-host |
configure.cpython |
1,642,523 |
0 |
0 |
0 |
25,272 |
0 |
14,077 |
947 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,151 |
0 |
0 |
0 |
25,280 |
0 |
11,278 |
802 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,620,583 |
1 |
0 |
0 |
25,280 |
0 |
11,304 |
765 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,510,639 |
0 |
0 |
0 |
25,272 |
0 |
11,293 |
791 |
osh-static |
| 4 |
no-host |
configure.ocaml |
300,274 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
182 |
bash |
| 12 |
no-host |
configure.ocaml |
281,441 |
0 |
0 |
0 |
4,432 |
0 |
2,112 |
182 |
dash |
| 20 |
no-host |
configure.ocaml |
307,657 |
0 |
0 |
8 |
4,440 |
0 |
2,006 |
193 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,436 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
194 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,137 |
0 |
0 |
0 |
4,432 |
0 |
2,005 |
196 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,207 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,251 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,703 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,835 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,259 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,545,540 |
0 |
0 |
0 |
35,944 |
0 |
18,796 |
1,012 |
bash |
| 11 |
no-host |
configure.util-linux |
1,709,338 |
0 |
0 |
0 |
35,936 |
0 |
16,938 |
1,169 |
dash |
| 19 |
no-host |
configure.util-linux |
1,503,159 |
6 |
0 |
0 |
35,952 |
0 |
16,171 |
889 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,529,602 |
0 |
0 |
0 |
35,952 |
0 |
16,084 |
864 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,453,017 |
2 |
0 |
0 |
35,936 |
0 |
16,180 |
856 |
osh-static |
| 6 |
no-host |
configure.yash |
173,699 |
0 |
0 |
0 |
3,616 |
0 |
876 |
87 |
bash |
| 14 |
no-host |
configure.yash |
159,921 |
0 |
0 |
0 |
3,616 |
0 |
999 |
81 |
dash |
| 22 |
no-host |
configure.yash |
177,220 |
0 |
0 |
0 |
3,624 |
0 |
855 |
85 |
osh-native |
| 30 |
no-host |
configure.yash |
177,138 |
0 |
0 |
0 |
3,624 |
0 |
855 |
83 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,867 |
0 |
0 |
0 |
3,616 |
0 |
857 |
89 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
89 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
523 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
534 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
311 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host