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 |
21 |
18 |
1.33 |
1.18 |
| bin-true |
no-host |
621 |
437 |
803 |
803 |
649 |
1.29 |
1.04 |
| configure.cpython |
no-host |
13,646 |
13,724 |
13,329 |
13,368 |
12,790 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,629 |
3,583 |
3,680 |
3,683 |
3,636 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
40 |
46 |
46 |
43 |
1.02 |
0.96 |
| configure.util-linux |
no-host |
12,413 |
13,130 |
12,368 |
12,363 |
12,000 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,677 |
1,630 |
1,677 |
1,689 |
1,664 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.42 |
1.08 |
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,398 |
1,175 |
3,340 |
3,449 |
2,805 |
1.39 |
1.17 |
| bin-true |
no-host |
103,381 |
49,380 |
134,526 |
134,591 |
111,413 |
1.30 |
1.08 |
| configure.cpython |
no-host |
1,627,147 |
1,638,425 |
1,586,901 |
1,600,990 |
1,521,770 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,860 |
280,552 |
305,921 |
307,057 |
300,066 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,196 |
4,236 |
5,592 |
5,688 |
5,112 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,538,751 |
1,699,456 |
1,501,176 |
1,503,764 |
1,450,612 |
0.98 |
0.94 |
| configure.yash |
no-host |
173,443 |
159,531 |
177,233 |
177,310 |
172,652 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
86 |
389 |
399 |
181 |
2.59 |
1.21 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
1 |
2 |
3.5 |
8.5 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,329 |
1 |
65 |
14.8 |
34.8 |
1,753,364 |
36,445 |
28,935 |
93,071 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,368 |
3 |
63 |
21.6 |
39.7 |
2,709,910 |
37,457 |
66,323 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,646 |
1 |
| configure.ocaml |
no-host |
3,680 |
1 |
2 |
2.8 |
28.8 |
149,932 |
12,652 |
6,557 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.4 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,677 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,764 |
6,618 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,251 |
65,784 |
41,994 |
4,969 |
54,631 |
57,651 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
7.1 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
1 |
2 |
3.5 |
9.2 |
152,882 |
11,695 |
2,968 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,368 |
1 |
65 |
14.9 |
34.3 |
1,753,363 |
36,450 |
28,940 |
93,070 |
872,316 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,363 |
3 |
63 |
21.6 |
39.7 |
2,709,910 |
37,463 |
66,329 |
119,739 |
1,296,433 |
1,293,738 |
32,527 |
42 |
132,658 |
1 |
| configure.ocaml |
no-host |
3,683 |
1 |
2 |
2.8 |
28.6 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
46 |
0 |
0 |
1.4 |
26.1 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,689 |
1 |
2 |
2.7 |
33.4 |
143,736 |
11,768 |
6,622 |
7,160 |
70,796 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.8 |
117,251 |
65,788 |
41,998 |
4,969 |
54,631 |
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 |
15 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.8 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
9 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
621 |
312 |
348 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
437 |
267 |
175 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
803 |
320 |
500 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
803 |
310 |
508 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
649 |
312 |
353 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,646 |
7,467 |
6,562 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
13,724 |
7,541 |
6,575 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,329 |
7,011 |
6,583 |
34.8 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,368 |
7,209 |
6,435 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,790 |
7,057 |
5,968 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,629 |
1,480 |
1,189 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,583 |
1,460 |
1,147 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,680 |
1,500 |
1,217 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,683 |
1,444 |
1,279 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,636 |
1,443 |
1,225 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
22 |
24 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
21 |
19 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
24 |
22 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
46 |
19 |
28 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
21 |
23 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,413 |
6,480 |
6,344 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,130 |
6,460 |
7,157 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,368 |
6,076 |
6,508 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,363 |
6,112 |
6,466 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,000 |
6,095 |
6,116 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,677 |
950 |
732 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,630 |
905 |
725 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
1,677 |
930 |
749 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,689 |
930 |
761 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,664 |
911 |
755 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
1 |
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,398 |
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,340 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,449 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,805 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,381 |
0 |
0 |
0 |
8 |
0 |
1,990 |
43 |
bash |
| 9 |
no-host |
bin-true |
49,380 |
0 |
0 |
0 |
8 |
0 |
2,995 |
43 |
dash |
| 17 |
no-host |
bin-true |
134,526 |
0 |
0 |
0 |
16 |
0 |
1,999 |
63 |
osh-native |
| 25 |
no-host |
bin-true |
134,591 |
0 |
0 |
0 |
16 |
0 |
1,999 |
81 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,413 |
0 |
0 |
0 |
8 |
0 |
1,996 |
85 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,627,147 |
0 |
0 |
0 |
25,272 |
0 |
14,088 |
1,017 |
bash |
| 10 |
no-host |
configure.cpython |
1,638,425 |
0 |
0 |
0 |
25,272 |
0 |
14,095 |
1,069 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,901 |
0 |
0 |
0 |
25,280 |
0 |
11,292 |
815 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,600,990 |
0 |
0 |
0 |
25,280 |
0 |
11,274 |
815 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,770 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
860 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,860 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
194 |
bash |
| 12 |
no-host |
configure.ocaml |
280,552 |
0 |
0 |
0 |
4,432 |
0 |
2,113 |
187 |
dash |
| 20 |
no-host |
configure.ocaml |
305,921 |
0 |
0 |
8 |
4,440 |
0 |
2,000 |
239 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,057 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
207 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,066 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
232 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,196 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,236 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,592 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,688 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,112 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,751 |
0 |
0 |
0 |
35,944 |
0 |
18,936 |
1,040 |
bash |
| 11 |
no-host |
configure.util-linux |
1,699,456 |
1 |
0 |
0 |
35,936 |
0 |
17,087 |
1,096 |
dash |
| 19 |
no-host |
configure.util-linux |
1,501,176 |
1 |
0 |
0 |
35,952 |
0 |
16,128 |
962 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,503,764 |
0 |
0 |
0 |
35,944 |
0 |
16,168 |
921 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,612 |
3 |
0 |
0 |
35,944 |
0 |
16,238 |
862 |
osh-static |
| 6 |
no-host |
configure.yash |
173,443 |
0 |
0 |
0 |
3,616 |
0 |
880 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,531 |
0 |
0 |
0 |
3,624 |
0 |
1,002 |
98 |
dash |
| 22 |
no-host |
configure.yash |
177,233 |
0 |
0 |
0 |
3,624 |
0 |
859 |
103 |
osh-native |
| 30 |
no-host |
configure.yash |
177,310 |
0 |
0 |
0 |
3,624 |
0 |
860 |
108 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,652 |
0 |
0 |
0 |
3,616 |
0 |
857 |
106 |
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 |
389 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host