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 |
21 |
22 |
19 |
1.32 |
1.19 |
| bin-true |
no-host |
629 |
452 |
827 |
818 |
665 |
1.31 |
1.06 |
| configure.cpython |
no-host |
14,199 |
14,323 |
13,940 |
14,221 |
13,324 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,737 |
3,687 |
3,785 |
3,800 |
3,741 |
1.01 |
1.00 |
| configure.tcc |
no-host |
48 |
43 |
48 |
49 |
44 |
1.01 |
0.92 |
| configure.util-linux |
no-host |
13,016 |
13,697 |
12,893 |
13,055 |
12,533 |
0.99 |
0.96 |
| configure.yash |
no-host |
1,756 |
1,694 |
1,739 |
1,750 |
1,725 |
0.99 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.60 |
1.07 |
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,399 |
1,164 |
3,297 |
3,405 |
2,839 |
1.37 |
1.18 |
| bin-true |
no-host |
102,464 |
49,411 |
135,322 |
134,014 |
112,084 |
1.32 |
1.09 |
| configure.cpython |
no-host |
1,616,961 |
1,634,294 |
1,586,266 |
1,602,426 |
1,515,264 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,972 |
280,888 |
305,759 |
307,102 |
300,151 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,197 |
4,213 |
5,599 |
5,659 |
5,125 |
1.08 |
0.99 |
| configure.util-linux |
no-host |
1,542,540 |
1,704,039 |
1,506,143 |
1,520,366 |
1,480,127 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,567 |
159,500 |
176,300 |
176,778 |
172,729 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
84 |
394 |
398 |
184 |
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.7 |
3,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
827 |
1 |
2 |
3.5 |
8.7 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,940 |
1 |
71 |
14.8 |
34.4 |
1,750,831 |
35,399 |
28,954 |
93,081 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,893 |
3 |
69 |
21.6 |
39.7 |
2,705,397 |
37,471 |
66,342 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,785 |
1 |
2 |
2.8 |
28.6 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.3 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,739 |
1 |
2 |
2.7 |
33.4 |
143,480 |
11,508 |
6,625 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,238 |
65,801 |
42,008 |
4,980 |
54,600 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
818 |
1 |
2 |
3.5 |
9.3 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,221 |
2 |
71 |
14.9 |
34.5 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,055 |
3 |
70 |
21.6 |
39.6 |
2,705,397 |
37,477 |
66,348 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,800 |
1 |
2 |
2.8 |
28.6 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.1 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,750 |
1 |
2 |
2.7 |
33.4 |
143,480 |
11,512 |
6,629 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.1 |
117,238 |
65,805 |
42,012 |
4,980 |
54,600 |
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 |
7 |
10 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
10 |
10 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
629 |
310 |
359 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
452 |
279 |
180 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
827 |
297 |
547 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
818 |
307 |
528 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
665 |
328 |
356 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,199 |
7,705 |
6,891 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,323 |
7,770 |
6,975 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
13,940 |
7,461 |
6,764 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,221 |
7,552 |
6,971 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,324 |
7,346 |
6,220 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,737 |
1,519 |
1,260 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,687 |
1,484 |
1,227 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,785 |
1,461 |
1,365 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,800 |
1,514 |
1,328 |
28.6 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,741 |
1,523 |
1,249 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
48 |
22 |
27 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
23 |
20 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
22 |
27 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
27 |
22 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
22 |
23 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,016 |
6,811 |
6,699 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,697 |
6,676 |
7,523 |
39.9 |
dash |
| 19 |
no-host |
configure.util-linux |
12,893 |
6,249 |
6,875 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,055 |
6,409 |
6,883 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,533 |
6,314 |
6,443 |
39.8 |
osh-static |
| 6 |
no-host |
configure.yash |
1,756 |
958 |
804 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,694 |
975 |
722 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,739 |
971 |
771 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,750 |
965 |
788 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,725 |
990 |
738 |
33.1 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
0 |
3 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,399 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,164 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,297 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,405 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,839 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
102,464 |
0 |
0 |
0 |
8 |
0 |
1,999 |
63 |
bash |
| 9 |
no-host |
bin-true |
49,411 |
0 |
0 |
0 |
8 |
0 |
2,993 |
56 |
dash |
| 17 |
no-host |
bin-true |
135,322 |
0 |
0 |
0 |
16 |
0 |
1,997 |
86 |
osh-native |
| 25 |
no-host |
bin-true |
134,014 |
0 |
0 |
0 |
16 |
0 |
1,996 |
86 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,084 |
0 |
0 |
0 |
8 |
0 |
1,999 |
55 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,616,961 |
0 |
0 |
0 |
25,272 |
0 |
14,086 |
997 |
bash |
| 10 |
no-host |
configure.cpython |
1,634,294 |
0 |
0 |
0 |
25,272 |
0 |
14,144 |
997 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,266 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
846 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,602,426 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
849 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,515,264 |
1 |
0 |
0 |
25,272 |
0 |
11,301 |
844 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,972 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
185 |
bash |
| 12 |
no-host |
configure.ocaml |
280,888 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
200 |
dash |
| 20 |
no-host |
configure.ocaml |
305,759 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
225 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,102 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
199 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,151 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
212 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,197 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,213 |
0 |
0 |
0 |
88 |
0 |
51 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,599 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,659 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,125 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,542,540 |
1 |
0 |
0 |
35,944 |
0 |
18,942 |
1,105 |
bash |
| 11 |
no-host |
configure.util-linux |
1,704,039 |
0 |
0 |
0 |
35,944 |
0 |
17,110 |
1,219 |
dash |
| 19 |
no-host |
configure.util-linux |
1,506,143 |
0 |
0 |
0 |
35,960 |
0 |
16,186 |
888 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,520,366 |
1 |
0 |
0 |
35,952 |
0 |
16,204 |
919 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,127 |
0 |
0 |
0 |
35,936 |
0 |
16,131 |
923 |
osh-static |
| 6 |
no-host |
configure.yash |
173,567 |
0 |
0 |
0 |
3,616 |
0 |
878 |
103 |
bash |
| 14 |
no-host |
configure.yash |
159,500 |
0 |
0 |
0 |
3,616 |
0 |
998 |
91 |
dash |
| 22 |
no-host |
configure.yash |
176,300 |
0 |
0 |
0 |
3,624 |
0 |
858 |
105 |
osh-native |
| 30 |
no-host |
configure.yash |
176,778 |
0 |
0 |
0 |
3,624 |
0 |
855 |
91 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,729 |
0 |
0 |
0 |
3,616 |
0 |
858 |
105 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host