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 |
22 |
23 |
20 |
1.32 |
1.23 |
| bin-true |
no-host |
632 |
455 |
827 |
836 |
674 |
1.31 |
1.07 |
| configure.cpython |
no-host |
15,170 |
14,978 |
14,502 |
14,554 |
13,805 |
0.96 |
0.91 |
| configure.ocaml |
no-host |
3,853 |
3,804 |
3,900 |
3,973 |
3,848 |
1.01 |
1.00 |
| configure.tcc |
no-host |
47 |
44 |
49 |
51 |
45 |
1.03 |
0.95 |
| configure.util-linux |
no-host |
13,623 |
14,398 |
13,436 |
13,513 |
12,978 |
0.99 |
0.95 |
| configure.yash |
no-host |
1,804 |
1,750 |
1,819 |
1,819 |
1,773 |
1.01 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.32 |
0.97 |
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,410 |
1,163 |
3,342 |
3,415 |
2,828 |
1.39 |
1.17 |
| bin-true |
no-host |
99,443 |
49,448 |
132,269 |
137,043 |
112,021 |
1.33 |
1.13 |
| configure.cpython |
no-host |
1,630,856 |
1,637,700 |
1,579,694 |
1,601,852 |
1,517,759 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
298,403 |
280,664 |
305,659 |
306,933 |
300,047 |
1.02 |
1.01 |
| configure.tcc |
no-host |
5,230 |
4,192 |
5,550 |
5,692 |
5,121 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,533,473 |
1,700,243 |
1,513,858 |
1,523,437 |
1,480,288 |
0.99 |
0.97 |
| configure.yash |
no-host |
173,352 |
159,565 |
176,863 |
177,016 |
172,861 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
88 |
394 |
403 |
183 |
2.59 |
1.20 |
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 |
827 |
1 |
2 |
3.5 |
8.7 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,502 |
1 |
72 |
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 |
13,436 |
3 |
72 |
21.6 |
39.6 |
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,900 |
1 |
2 |
2.8 |
28.6 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,819 |
1 |
2 |
2.7 |
33.3 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
836 |
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 |
14,554 |
1 |
72 |
14.9 |
34.8 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,513 |
3 |
72 |
21.6 |
39.9 |
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,973 |
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 |
51 |
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,819 |
1 |
2 |
2.7 |
33.2 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
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 |
16 |
9 |
8 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
7 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
12 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
15 |
9 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
20 |
11 |
10 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
632 |
323 |
348 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
455 |
286 |
174 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
827 |
314 |
532 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
836 |
309 |
545 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
674 |
325 |
370 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
15,170 |
8,188 |
7,410 |
34.1 |
bash |
| 10 |
no-host |
configure.cpython |
14,978 |
8,123 |
7,291 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
14,502 |
7,690 |
7,103 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,554 |
7,710 |
7,154 |
34.8 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,805 |
7,553 |
6,508 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,853 |
1,575 |
1,320 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,804 |
1,521 |
1,309 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,900 |
1,548 |
1,394 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,973 |
1,579 |
1,438 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,848 |
1,551 |
1,330 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
25 |
23 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
44 |
24 |
20 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
49 |
21 |
28 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
51 |
29 |
22 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
20 |
25 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,623 |
7,014 |
7,110 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
14,398 |
6,897 |
8,034 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,436 |
6,673 |
7,006 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,513 |
6,648 |
7,113 |
39.9 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,978 |
6,486 |
6,728 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,804 |
1,016 |
796 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,750 |
956 |
796 |
33.2 |
dash |
| 22 |
no-host |
configure.yash |
1,819 |
946 |
875 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,819 |
1,013 |
808 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,773 |
1,020 |
755 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.7 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,410 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,163 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,342 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,415 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,828 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
99,443 |
0 |
0 |
0 |
8 |
0 |
1,999 |
70 |
bash |
| 9 |
no-host |
bin-true |
49,448 |
0 |
0 |
0 |
8 |
0 |
2,994 |
58 |
dash |
| 17 |
no-host |
bin-true |
132,269 |
0 |
0 |
0 |
16 |
0 |
1,995 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
137,043 |
0 |
0 |
0 |
16 |
0 |
1,995 |
64 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,021 |
0 |
0 |
0 |
8 |
0 |
1,997 |
65 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,630,856 |
0 |
0 |
0 |
25,296 |
0 |
14,087 |
1,018 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,700 |
0 |
0 |
0 |
25,272 |
0 |
14,142 |
1,058 |
dash |
| 18 |
no-host |
configure.cpython |
1,579,694 |
0 |
0 |
0 |
25,280 |
0 |
11,289 |
867 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,601,852 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
849 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,759 |
0 |
0 |
0 |
25,272 |
0 |
11,296 |
801 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,403 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,664 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
216 |
dash |
| 20 |
no-host |
configure.ocaml |
305,659 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
217 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,933 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
224 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,047 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
235 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,230 |
0 |
0 |
0 |
80 |
0 |
49 |
0 |
bash |
| 13 |
no-host |
configure.tcc |
4,192 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,550 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,692 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,121 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,533,473 |
0 |
0 |
0 |
35,936 |
0 |
19,009 |
1,028 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,243 |
0 |
0 |
0 |
35,936 |
0 |
17,130 |
1,221 |
dash |
| 19 |
no-host |
configure.util-linux |
1,513,858 |
4 |
0 |
0 |
35,952 |
0 |
16,119 |
975 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,523,437 |
0 |
0 |
0 |
35,952 |
0 |
16,189 |
892 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,288 |
5 |
0 |
0 |
35,944 |
0 |
16,103 |
988 |
osh-static |
| 6 |
no-host |
configure.yash |
173,352 |
0 |
0 |
0 |
3,616 |
0 |
875 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,565 |
0 |
0 |
0 |
3,616 |
0 |
999 |
105 |
dash |
| 22 |
no-host |
configure.yash |
176,863 |
0 |
0 |
0 |
3,624 |
0 |
857 |
104 |
osh-native |
| 30 |
no-host |
configure.yash |
177,016 |
0 |
0 |
0 |
3,624 |
0 |
855 |
106 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,861 |
0 |
0 |
0 |
3,624 |
0 |
849 |
95 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
88 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
403 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host