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 |
13 |
8 |
18 |
19 |
17 |
1.36 |
1.27 |
| bin-true |
no-host |
512 |
318 |
674 |
666 |
519 |
1.32 |
1.01 |
| configure.cpython |
no-host |
12,479 |
12,178 |
12,461 |
12,177 |
11,515 |
1.00 |
0.92 |
| configure.ocaml |
no-host |
3,438 |
3,361 |
3,504 |
3,449 |
3,391 |
1.02 |
0.99 |
| configure.tcc |
no-host |
42 |
36 |
42 |
40 |
39 |
0.99 |
0.93 |
| configure.util-linux |
no-host |
11,087 |
11,515 |
11,393 |
11,454 |
10,755 |
1.03 |
0.97 |
| configure.yash |
no-host |
1,531 |
1,489 |
1,517 |
1,511 |
1,514 |
0.99 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
2 |
1 |
2.30 |
0.92 |
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,181 |
3,313 |
3,414 |
2,836 |
1.37 |
1.18 |
| bin-true |
no-host |
102,940 |
49,841 |
135,745 |
137,471 |
111,494 |
1.32 |
1.08 |
| configure.cpython |
no-host |
1,639,217 |
1,649,228 |
1,582,897 |
1,604,984 |
1,516,099 |
0.97 |
0.92 |
| configure.ocaml |
no-host |
300,516 |
281,440 |
307,521 |
308,734 |
300,977 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,219 |
4,216 |
5,551 |
5,673 |
5,145 |
1.06 |
0.99 |
| configure.util-linux |
no-host |
1,538,931 |
1,701,941 |
1,507,544 |
1,523,692 |
1,474,324 |
0.98 |
0.96 |
| configure.yash |
no-host |
174,079 |
159,904 |
177,407 |
177,866 |
173,044 |
1.02 |
0.99 |
| hello-world |
no-host |
150 |
91 |
395 |
402 |
183 |
2.63 |
1.22 |
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,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
674 |
1 |
2 |
3.5 |
8.8 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,461 |
1 |
64 |
14.8 |
34.3 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
11,393 |
3 |
67 |
21.6 |
39.6 |
2,705,473 |
37,501 |
66,342 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,504 |
1 |
2 |
2.8 |
28.7 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
42 |
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,517 |
1 |
2 |
2.7 |
33.3 |
143,496 |
11,508 |
6,625 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
9.6 |
117,239 |
65,801 |
42,008 |
4,980 |
54,601 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
2 |
0 |
0 |
0.3 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
666 |
1 |
2 |
3.5 |
9.4 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
12,177 |
1 |
63 |
14.9 |
34.5 |
1,750,906 |
36,488 |
28,959 |
93,080 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
11,454 |
3 |
68 |
21.6 |
39.6 |
2,705,473 |
37,507 |
66,348 |
119,749 |
1,291,899 |
1,293,825 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,449 |
1 |
2 |
2.8 |
28.5 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
40 |
0 |
0 |
1.4 |
26.0 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,511 |
1 |
2 |
2.7 |
33.5 |
143,496 |
11,512 |
6,629 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
1 |
2 |
3.0 |
10.1 |
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 |
13 |
7 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
8 |
4 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
12 |
7 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
10 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
17 |
11 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
512 |
288 |
260 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
318 |
229 |
88 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
674 |
319 |
368 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
666 |
324 |
354 |
9.4 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
519 |
298 |
235 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
12,479 |
7,866 |
4,898 |
34.8 |
bash |
| 10 |
no-host |
configure.cpython |
12,178 |
7,789 |
4,680 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
12,461 |
7,519 |
5,127 |
34.3 |
osh-native |
| 26 |
no-host |
configure.cpython |
12,177 |
7,417 |
4,953 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,515 |
7,356 |
4,303 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,438 |
1,510 |
946 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,361 |
1,493 |
869 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,504 |
1,496 |
1,018 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,449 |
1,491 |
972 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,391 |
1,516 |
883 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
42 |
25 |
18 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
36 |
27 |
9 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
42 |
27 |
14 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
40 |
26 |
14 |
26.0 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
39 |
26 |
13 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
11,087 |
6,894 |
4,539 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
11,515 |
6,773 |
5,113 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
11,393 |
6,538 |
4,995 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
11,454 |
6,537 |
5,070 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,755 |
6,385 |
4,490 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,531 |
958 |
566 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,489 |
984 |
495 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
1,517 |
941 |
564 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,511 |
947 |
556 |
33.5 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,514 |
981 |
525 |
33.2 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.7 |
dash |
| 16 |
no-host |
hello-world |
3 |
1 |
2 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
2 |
7.1 |
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,410 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,181 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,313 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,414 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,836 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,940 |
0 |
0 |
0 |
8 |
0 |
1,999 |
63 |
bash |
| 9 |
no-host |
bin-true |
49,841 |
0 |
0 |
0 |
8 |
0 |
2,998 |
49 |
dash |
| 17 |
no-host |
bin-true |
135,745 |
0 |
0 |
0 |
16 |
0 |
1,997 |
71 |
osh-native |
| 25 |
no-host |
bin-true |
137,471 |
0 |
0 |
0 |
16 |
0 |
2,000 |
75 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,494 |
0 |
0 |
0 |
8 |
0 |
1,995 |
52 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,639,217 |
0 |
0 |
0 |
25,272 |
0 |
14,017 |
963 |
bash |
| 10 |
no-host |
configure.cpython |
1,649,228 |
0 |
0 |
0 |
25,272 |
0 |
14,071 |
953 |
dash |
| 18 |
no-host |
configure.cpython |
1,582,897 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
807 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,604,984 |
0 |
0 |
0 |
25,280 |
0 |
11,314 |
860 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,516,099 |
0 |
0 |
0 |
25,272 |
0 |
11,277 |
796 |
osh-static |
| 4 |
no-host |
configure.ocaml |
300,516 |
0 |
0 |
0 |
4,432 |
0 |
2,016 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
281,440 |
0 |
0 |
0 |
4,432 |
0 |
2,115 |
184 |
dash |
| 20 |
no-host |
configure.ocaml |
307,521 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
179 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,734 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,977 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
193 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,219 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,216 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,551 |
0 |
0 |
0 |
96 |
0 |
46 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,673 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,145 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,538,931 |
1 |
0 |
0 |
35,936 |
0 |
18,842 |
1,011 |
bash |
| 11 |
no-host |
configure.util-linux |
1,701,941 |
0 |
0 |
0 |
35,936 |
0 |
16,976 |
1,164 |
dash |
| 19 |
no-host |
configure.util-linux |
1,507,544 |
3 |
0 |
0 |
35,960 |
0 |
16,159 |
874 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,523,692 |
2 |
0 |
0 |
35,944 |
0 |
16,186 |
903 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,474,324 |
2 |
0 |
0 |
35,936 |
0 |
16,191 |
856 |
osh-static |
| 6 |
no-host |
configure.yash |
174,079 |
0 |
0 |
0 |
3,616 |
0 |
877 |
100 |
bash |
| 14 |
no-host |
configure.yash |
159,904 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
78 |
dash |
| 22 |
no-host |
configure.yash |
177,407 |
0 |
0 |
0 |
3,624 |
0 |
859 |
93 |
osh-native |
| 30 |
no-host |
configure.yash |
177,866 |
0 |
0 |
0 |
3,632 |
0 |
856 |
86 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,044 |
0 |
0 |
0 |
3,616 |
0 |
854 |
95 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
91 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
402 |
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