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 |
21 |
22 |
18 |
1.33 |
1.16 |
| bin-true |
no-host |
613 |
449 |
803 |
811 |
656 |
1.31 |
1.07 |
| configure.cpython |
no-host |
13,779 |
13,720 |
13,439 |
13,532 |
12,987 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,642 |
3,585 |
3,701 |
3,699 |
3,645 |
1.02 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
46 |
47 |
43 |
1.02 |
0.94 |
| configure.util-linux |
no-host |
12,506 |
13,185 |
12,438 |
12,516 |
12,068 |
0.99 |
0.96 |
| configure.yash |
no-host |
1,681 |
1,628 |
1,717 |
1,702 |
1,683 |
1.02 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.43 |
1.05 |
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,413 |
1,169 |
3,325 |
3,454 |
2,809 |
1.38 |
1.16 |
| bin-true |
no-host |
102,402 |
49,390 |
134,593 |
136,551 |
111,320 |
1.31 |
1.09 |
| configure.cpython |
no-host |
1,632,341 |
1,634,414 |
1,593,855 |
1,615,845 |
1,523,187 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,232 |
280,613 |
305,614 |
307,096 |
299,827 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,225 |
4,213 |
5,585 |
5,689 |
5,119 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,538,527 |
1,698,131 |
1,505,252 |
1,503,145 |
1,450,804 |
0.98 |
0.94 |
| configure.yash |
no-host |
173,297 |
159,559 |
177,126 |
176,924 |
172,722 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
392 |
394 |
180 |
2.55 |
1.17 |
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,896 |
3,896 |
0 |
716 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
803 |
1 |
2 |
3.5 |
8.8 |
152,882 |
11,691 |
2,964 |
14,775 |
73,391 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,439 |
1 |
64 |
14.8 |
34.4 |
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,438 |
4 |
65 |
21.6 |
39.6 |
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,701 |
1 |
2 |
2.8 |
28.7 |
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.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,717 |
1 |
2 |
2.7 |
33.1 |
143,778 |
11,764 |
6,618 |
7,161 |
70,824 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,276 |
65,784 |
41,994 |
4,970 |
54,643 |
57,663 |
277 |
3 |
83,988 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.8 |
3,895 |
3,895 |
0 |
715 |
1,916 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
811 |
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,532 |
1 |
66 |
14.9 |
34.4 |
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,516 |
3 |
65 |
21.6 |
39.6 |
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,699 |
1 |
2 |
2.8 |
28.5 |
149,932 |
12,657 |
6,562 |
9,207 |
70,540 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.2 |
30,574 |
30,574 |
0 |
1,674 |
14,510 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,702 |
1 |
2 |
2.7 |
33.1 |
143,778 |
11,768 |
6,622 |
7,161 |
70,824 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,276 |
65,788 |
41,998 |
4,970 |
54,643 |
57,663 |
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 |
6 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
10 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
11 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
613 |
314 |
338 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
449 |
277 |
178 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
803 |
305 |
516 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
811 |
292 |
533 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
656 |
323 |
351 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,779 |
7,614 |
6,551 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,720 |
7,544 |
6,566 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,439 |
7,163 |
6,544 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,532 |
7,114 |
6,704 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,987 |
7,168 |
6,056 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,642 |
1,467 |
1,216 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,585 |
1,468 |
1,140 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,701 |
1,489 |
1,251 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,699 |
1,484 |
1,256 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,645 |
1,482 |
1,193 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
19 |
27 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
23 |
18 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
46 |
23 |
24 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
19 |
28 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
27 |
16 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,506 |
6,576 |
6,390 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,185 |
6,466 |
7,205 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,438 |
6,173 |
6,449 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,516 |
6,232 |
6,504 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,068 |
6,141 |
6,143 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,681 |
923 |
766 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,628 |
953 |
677 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,717 |
942 |
778 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,702 |
935 |
770 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,683 |
956 |
730 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.8 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,413 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,169 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,325 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,454 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,809 |
0 |
0 |
0 |
8 |
0 |
38 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,402 |
0 |
0 |
0 |
8 |
0 |
2,000 |
59 |
bash |
| 9 |
no-host |
bin-true |
49,390 |
0 |
0 |
0 |
8 |
0 |
2,984 |
43 |
dash |
| 17 |
no-host |
bin-true |
134,593 |
0 |
0 |
0 |
16 |
0 |
1,996 |
53 |
osh-native |
| 25 |
no-host |
bin-true |
136,551 |
0 |
0 |
0 |
16 |
0 |
2,000 |
91 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,320 |
0 |
0 |
0 |
8 |
0 |
1,998 |
83 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,632,341 |
0 |
0 |
0 |
25,272 |
0 |
14,074 |
1,043 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,414 |
0 |
0 |
0 |
25,272 |
0 |
14,121 |
1,003 |
dash |
| 18 |
no-host |
configure.cpython |
1,593,855 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
797 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,615,845 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
861 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,523,187 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
868 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,232 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
186 |
bash |
| 12 |
no-host |
configure.ocaml |
280,613 |
0 |
0 |
0 |
4,432 |
0 |
2,101 |
194 |
dash |
| 20 |
no-host |
configure.ocaml |
305,614 |
0 |
0 |
8 |
4,440 |
0 |
2,000 |
220 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,096 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
208 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,827 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
216 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,225 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,585 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,689 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,119 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,527 |
0 |
0 |
0 |
35,944 |
0 |
18,961 |
1,000 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,131 |
2 |
0 |
0 |
35,936 |
0 |
17,071 |
1,179 |
dash |
| 19 |
no-host |
configure.util-linux |
1,505,252 |
1 |
0 |
0 |
35,952 |
0 |
16,148 |
885 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,503,145 |
2 |
0 |
0 |
35,944 |
0 |
16,208 |
962 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,450,804 |
3 |
0 |
0 |
35,936 |
0 |
16,127 |
894 |
osh-static |
| 6 |
no-host |
configure.yash |
173,297 |
0 |
0 |
0 |
3,616 |
0 |
877 |
97 |
bash |
| 14 |
no-host |
configure.yash |
159,559 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
108 |
dash |
| 22 |
no-host |
configure.yash |
177,126 |
0 |
0 |
0 |
3,624 |
0 |
856 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
176,924 |
0 |
0 |
0 |
3,632 |
0 |
857 |
92 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,722 |
0 |
0 |
0 |
3,624 |
0 |
858 |
101 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
180 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host