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 |
61 |
63 |
58 |
3.95 |
3.74 |
| bin-true |
no-host |
624 |
441 |
837 |
832 |
670 |
1.34 |
1.07 |
| configure.cpython |
no-host |
13,759 |
13,830 |
13,783 |
13,718 |
13,144 |
1.00 |
0.96 |
| configure.ocaml |
no-host |
3,671 |
3,607 |
3,711 |
3,729 |
3,672 |
1.01 |
1.00 |
| configure.tcc |
no-host |
45 |
41 |
55 |
56 |
51 |
1.23 |
1.13 |
| configure.util-linux |
no-host |
12,641 |
13,220 |
13,142 |
13,249 |
12,780 |
1.04 |
1.01 |
| configure.yash |
no-host |
1,678 |
1,676 |
1,704 |
1,708 |
1,670 |
1.02 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
2 |
2.66 |
1.22 |
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,386 |
1,156 |
3,452 |
3,556 |
2,948 |
1.45 |
1.24 |
| bin-true |
no-host |
102,464 |
49,387 |
138,723 |
139,971 |
111,430 |
1.35 |
1.09 |
| configure.cpython |
no-host |
1,619,818 |
1,639,594 |
1,588,326 |
1,617,101 |
1,508,532 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
299,190 |
280,654 |
306,715 |
308,335 |
300,413 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,231 |
4,224 |
5,764 |
5,835 |
5,241 |
1.10 |
1.00 |
| configure.util-linux |
no-host |
1,536,508 |
1,695,475 |
1,498,046 |
1,520,439 |
1,449,140 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,234 |
159,520 |
176,980 |
177,211 |
172,618 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
86 |
520 |
528 |
310 |
3.38 |
2.01 |
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 |
837 |
1 |
2 |
4.0 |
9.3 |
152,882 |
11,691 |
2,964 |
14,779 |
73,387 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,783 |
2 |
70 |
15.5 |
34.3 |
1,753,364 |
36,445 |
28,935 |
93,076 |
872,311 |
787,977 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,142 |
3 |
66 |
22.4 |
39.7 |
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,711 |
1 |
2 |
3.3 |
28.7 |
149,932 |
12,652 |
6,557 |
9,211 |
70,536 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
55 |
0 |
0 |
1.9 |
26.0 |
30,574 |
30,574 |
0 |
1,678 |
14,506 |
14,390 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,704 |
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 |
61 |
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 |
832 |
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 |
13,718 |
1 |
68 |
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 |
13,249 |
3 |
67 |
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,729 |
1 |
2 |
3.3 |
28.7 |
149,932 |
12,657 |
6,562 |
9,211 |
70,536 |
70,185 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
56 |
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,708 |
1 |
2 |
3.2 |
33.4 |
143,736 |
11,768 |
6,622 |
7,164 |
70,792 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
63 |
1 |
2 |
3.7 |
10.5 |
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 |
16 |
10 |
6 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
61 |
17 |
45 |
10.0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
63 |
17 |
47 |
10.5 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
58 |
17 |
42 |
6.9 |
osh-static |
| 1 |
no-host |
bin-true |
624 |
308 |
356 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
441 |
279 |
166 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
837 |
304 |
548 |
9.3 |
osh-native |
| 25 |
no-host |
bin-true |
832 |
299 |
550 |
9.7 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
670 |
313 |
374 |
5.6 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,759 |
7,500 |
6,644 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,830 |
7,543 |
6,690 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
13,783 |
7,036 |
7,030 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,718 |
7,203 |
6,788 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,144 |
7,101 |
6,269 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,671 |
1,480 |
1,232 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,607 |
1,461 |
1,169 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,711 |
1,467 |
1,284 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,729 |
1,450 |
1,321 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,672 |
1,473 |
1,231 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
23 |
23 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
18 |
23 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
55 |
28 |
28 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
56 |
21 |
35 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
51 |
24 |
27 |
26.4 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,641 |
6,727 |
6,386 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,220 |
6,580 |
7,136 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
13,142 |
6,163 |
7,197 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,249 |
6,268 |
7,206 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,780 |
6,245 |
6,751 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,678 |
950 |
735 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,676 |
936 |
742 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,704 |
945 |
762 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,708 |
937 |
773 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,670 |
952 |
720 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
7.1 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
7.6 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
2 |
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,386 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,156 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,452 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,556 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,948 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,464 |
0 |
0 |
0 |
8 |
0 |
1,999 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,387 |
0 |
0 |
0 |
8 |
0 |
2,994 |
67 |
dash |
| 17 |
no-host |
bin-true |
138,723 |
0 |
0 |
0 |
16 |
0 |
1,997 |
90 |
osh-native |
| 25 |
no-host |
bin-true |
139,971 |
0 |
0 |
0 |
16 |
0 |
2,000 |
76 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,430 |
0 |
0 |
0 |
8 |
0 |
2,000 |
52 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,818 |
0 |
0 |
0 |
25,272 |
0 |
14,082 |
1,002 |
bash |
| 10 |
no-host |
configure.cpython |
1,639,594 |
0 |
0 |
0 |
25,272 |
0 |
14,120 |
1,041 |
dash |
| 18 |
no-host |
configure.cpython |
1,588,326 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
816 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,617,101 |
0 |
0 |
0 |
25,280 |
0 |
11,325 |
874 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,508,532 |
0 |
0 |
0 |
25,272 |
0 |
11,308 |
956 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,190 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,654 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
200 |
dash |
| 20 |
no-host |
configure.ocaml |
306,715 |
0 |
0 |
8 |
4,440 |
0 |
2,005 |
227 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,335 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
192 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,413 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
231 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,231 |
0 |
0 |
0 |
80 |
0 |
50 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,224 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,764 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,835 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,241 |
0 |
0 |
0 |
88 |
0 |
45 |
0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,508 |
1 |
0 |
0 |
35,944 |
0 |
18,917 |
1,159 |
bash |
| 11 |
no-host |
configure.util-linux |
1,695,475 |
0 |
0 |
0 |
35,936 |
0 |
17,211 |
1,137 |
dash |
| 19 |
no-host |
configure.util-linux |
1,498,046 |
0 |
0 |
0 |
35,952 |
0 |
16,216 |
999 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,520,439 |
0 |
0 |
0 |
35,944 |
0 |
16,225 |
961 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,449,140 |
2 |
0 |
0 |
35,936 |
0 |
16,134 |
885 |
osh-static |
| 6 |
no-host |
configure.yash |
173,234 |
0 |
0 |
0 |
3,616 |
0 |
879 |
110 |
bash |
| 14 |
no-host |
configure.yash |
159,520 |
0 |
0 |
0 |
3,616 |
0 |
998 |
114 |
dash |
| 22 |
no-host |
configure.yash |
176,980 |
0 |
0 |
0 |
3,632 |
0 |
859 |
89 |
osh-native |
| 30 |
no-host |
configure.yash |
177,211 |
0 |
0 |
0 |
3,624 |
0 |
858 |
94 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,618 |
0 |
0 |
0 |
3,624 |
0 |
858 |
95 |
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 |
520 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
528 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
310 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host