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.30 |
1.18 |
| bin-true |
no-host |
609 |
445 |
799 |
801 |
646 |
1.31 |
1.06 |
| configure.cpython |
no-host |
13,428 |
13,535 |
13,169 |
13,381 |
12,840 |
0.98 |
0.96 |
| configure.ocaml |
no-host |
3,595 |
3,552 |
3,663 |
3,683 |
3,717 |
1.02 |
1.03 |
| configure.tcc |
no-host |
45 |
40 |
47 |
47 |
45 |
1.04 |
1.00 |
| configure.util-linux |
no-host |
12,244 |
13,045 |
12,384 |
12,415 |
12,340 |
1.01 |
1.01 |
| configure.yash |
no-host |
1,646 |
1,639 |
1,660 |
1,665 |
1,711 |
1.01 |
1.04 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.49 |
1.12 |
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,422 |
1,183 |
3,318 |
3,444 |
2,835 |
1.37 |
1.17 |
| bin-true |
no-host |
99,480 |
49,423 |
134,314 |
134,043 |
111,022 |
1.35 |
1.12 |
| configure.cpython |
no-host |
1,621,100 |
1,636,891 |
1,586,955 |
1,604,515 |
1,518,166 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,571 |
280,701 |
306,001 |
306,592 |
300,044 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,209 |
4,211 |
5,594 |
5,682 |
5,119 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,536,902 |
1,700,852 |
1,512,622 |
1,517,071 |
1,479,768 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,255 |
159,498 |
176,727 |
177,010 |
172,760 |
1.02 |
1.00 |
| hello-world |
no-host |
151 |
85 |
392 |
399 |
182 |
2.60 |
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.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
799 |
1 |
2 |
3.5 |
8.9 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,169 |
1 |
64 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,384 |
3 |
63 |
21.6 |
39.7 |
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,663 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,660 |
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 |
20 |
1 |
2 |
3.0 |
9.4 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
801 |
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 |
13,381 |
1 |
64 |
14.9 |
34.5 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,415 |
3 |
63 |
21.6 |
39.5 |
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,683 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
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,665 |
1 |
2 |
2.7 |
33.4 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
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 |
15 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
13 |
8 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
14 |
8 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
11 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
609 |
308 |
339 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
445 |
279 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
799 |
316 |
500 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
801 |
297 |
519 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
646 |
315 |
347 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,428 |
7,396 |
6,410 |
34.4 |
bash |
| 10 |
no-host |
configure.cpython |
13,535 |
7,467 |
6,464 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,169 |
7,005 |
6,434 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,381 |
7,259 |
6,407 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,840 |
7,074 |
6,000 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,595 |
1,458 |
1,175 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,552 |
1,417 |
1,158 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,663 |
1,454 |
1,247 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,683 |
1,448 |
1,275 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,717 |
1,482 |
1,267 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
31 |
15 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
40 |
21 |
20 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
32 |
15 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
28 |
19 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
27 |
19 |
26.3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,244 |
6,340 |
6,363 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,045 |
6,561 |
6,972 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
12,384 |
6,164 |
6,440 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,415 |
6,166 |
6,472 |
39.5 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,340 |
6,368 |
6,196 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,646 |
901 |
753 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,639 |
937 |
704 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,660 |
927 |
736 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,665 |
951 |
717 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,711 |
972 |
741 |
33.4 |
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 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
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,422 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,183 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,318 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,444 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,835 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,480 |
0 |
0 |
0 |
8 |
0 |
2,000 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,423 |
0 |
0 |
0 |
8 |
0 |
2,994 |
54 |
dash |
| 17 |
no-host |
bin-true |
134,314 |
0 |
0 |
0 |
16 |
0 |
1,997 |
60 |
osh-native |
| 25 |
no-host |
bin-true |
134,043 |
0 |
0 |
0 |
16 |
0 |
1,995 |
100 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,022 |
0 |
0 |
0 |
8 |
0 |
2,000 |
65 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,621,100 |
0 |
0 |
0 |
25,272 |
0 |
14,069 |
982 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,891 |
0 |
0 |
0 |
25,272 |
0 |
14,107 |
1,059 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,955 |
0 |
0 |
0 |
25,280 |
0 |
11,300 |
836 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,515 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
815 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,166 |
0 |
0 |
0 |
25,272 |
0 |
11,305 |
846 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,571 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
184 |
bash |
| 12 |
no-host |
configure.ocaml |
280,701 |
0 |
0 |
0 |
4,432 |
0 |
2,099 |
189 |
dash |
| 20 |
no-host |
configure.ocaml |
306,001 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
220 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,592 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
270 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,044 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
209 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,209 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,211 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,594 |
0 |
0 |
0 |
96 |
0 |
44 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,682 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,119 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,902 |
0 |
0 |
0 |
35,936 |
0 |
18,991 |
1,048 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,852 |
1 |
0 |
0 |
35,936 |
0 |
17,109 |
1,154 |
dash |
| 19 |
no-host |
configure.util-linux |
1,512,622 |
0 |
0 |
0 |
35,952 |
0 |
16,139 |
954 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,517,071 |
2 |
0 |
0 |
35,944 |
0 |
16,179 |
922 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,768 |
2 |
0 |
0 |
35,944 |
0 |
16,205 |
893 |
osh-static |
| 6 |
no-host |
configure.yash |
173,255 |
0 |
0 |
0 |
3,616 |
0 |
879 |
105 |
bash |
| 14 |
no-host |
configure.yash |
159,498 |
0 |
0 |
0 |
3,624 |
0 |
998 |
114 |
dash |
| 22 |
no-host |
configure.yash |
176,727 |
0 |
0 |
0 |
3,624 |
0 |
858 |
105 |
osh-native |
| 30 |
no-host |
configure.yash |
177,010 |
0 |
0 |
0 |
3,624 |
0 |
857 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,760 |
0 |
0 |
0 |
3,616 |
0 |
858 |
99 |
osh-static |
| 0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host