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.16 |
| bin-true |
no-host |
616 |
452 |
802 |
815 |
653 |
1.30 |
1.06 |
| configure.cpython |
no-host |
13,885 |
13,939 |
13,481 |
14,018 |
13,212 |
0.97 |
0.95 |
| configure.ocaml |
no-host |
3,666 |
3,659 |
3,722 |
3,762 |
3,735 |
1.02 |
1.02 |
| configure.tcc |
no-host |
45 |
41 |
47 |
47 |
44 |
1.03 |
0.96 |
| configure.util-linux |
no-host |
12,640 |
13,303 |
12,594 |
12,956 |
12,489 |
1.00 |
0.99 |
| configure.yash |
no-host |
1,699 |
1,655 |
1,751 |
1,745 |
1,684 |
1.03 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.59 |
1.08 |
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,372 |
1,161 |
3,297 |
3,427 |
2,841 |
1.39 |
1.20 |
| bin-true |
no-host |
100,432 |
49,393 |
131,335 |
132,028 |
111,076 |
1.31 |
1.11 |
| configure.cpython |
no-host |
1,633,800 |
1,636,619 |
1,588,175 |
1,608,862 |
1,518,569 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
298,940 |
280,784 |
305,592 |
307,750 |
300,278 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,217 |
4,195 |
5,587 |
5,608 |
5,134 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,536,386 |
1,697,194 |
1,508,317 |
1,517,080 |
1,479,735 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,545 |
159,537 |
176,443 |
177,229 |
172,757 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
88 |
391 |
398 |
184 |
2.61 |
1.23 |
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.4 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
802 |
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 |
13,481 |
2 |
67 |
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,594 |
3 |
66 |
21.6 |
39.5 |
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,722 |
1 |
2 |
2.8 |
28.8 |
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.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,751 |
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 |
21 |
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 |
3 |
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 |
815 |
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,018 |
1 |
69 |
14.9 |
34.3 |
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,956 |
3 |
67 |
21.6 |
39.6 |
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,762 |
1 |
2 |
2.8 |
28.5 |
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.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,745 |
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 |
22 |
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 |
7 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
3 |
6 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
14 |
8 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
9 |
13 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
9 |
10 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
616 |
307 |
346 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
452 |
278 |
180 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
802 |
303 |
516 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
815 |
293 |
539 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
653 |
317 |
351 |
5.4 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,885 |
7,624 |
6,644 |
34.3 |
bash |
| 10 |
no-host |
configure.cpython |
13,939 |
7,673 |
6,664 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,481 |
7,101 |
6,657 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,018 |
7,373 |
6,916 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,212 |
7,264 |
6,191 |
34.3 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,666 |
1,473 |
1,233 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,659 |
1,476 |
1,207 |
28.5 |
dash |
| 20 |
no-host |
configure.ocaml |
3,722 |
1,476 |
1,286 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,762 |
1,441 |
1,363 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,735 |
1,469 |
1,296 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
28 |
18 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
24 |
18 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
19 |
29 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
23 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
17 |
27 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,640 |
6,682 |
6,413 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,303 |
6,470 |
7,318 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,594 |
6,342 |
6,453 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,956 |
6,410 |
6,709 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,489 |
6,349 |
6,359 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,699 |
933 |
776 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,655 |
938 |
719 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,751 |
969 |
784 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,745 |
981 |
767 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,684 |
966 |
721 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.7 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
6.4 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
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,372 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,161 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,297 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,427 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,841 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,432 |
0 |
0 |
0 |
8 |
0 |
1,999 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,393 |
0 |
0 |
0 |
8 |
0 |
2,995 |
39 |
dash |
| 17 |
no-host |
bin-true |
131,335 |
0 |
0 |
0 |
16 |
0 |
1,996 |
82 |
osh-native |
| 25 |
no-host |
bin-true |
132,028 |
0 |
0 |
0 |
16 |
0 |
1,997 |
81 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,076 |
0 |
0 |
0 |
8 |
0 |
1,997 |
80 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,633,800 |
0 |
0 |
0 |
25,272 |
0 |
14,086 |
1,002 |
bash |
| 10 |
no-host |
configure.cpython |
1,636,619 |
0 |
0 |
0 |
25,272 |
0 |
14,121 |
1,091 |
dash |
| 18 |
no-host |
configure.cpython |
1,588,175 |
0 |
0 |
0 |
25,280 |
0 |
11,289 |
845 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,862 |
0 |
0 |
0 |
25,280 |
0 |
11,306 |
956 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,569 |
2 |
0 |
0 |
25,272 |
0 |
11,308 |
868 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,940 |
0 |
0 |
0 |
4,432 |
0 |
2,021 |
211 |
bash |
| 12 |
no-host |
configure.ocaml |
280,784 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
201 |
dash |
| 20 |
no-host |
configure.ocaml |
305,592 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
203 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,750 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
191 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,278 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
324 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,217 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,195 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,587 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,608 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,134 |
0 |
0 |
0 |
88 |
0 |
45 |
3 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,386 |
0 |
0 |
0 |
35,936 |
0 |
18,999 |
1,026 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,194 |
1 |
0 |
0 |
35,936 |
0 |
17,078 |
1,113 |
dash |
| 19 |
no-host |
configure.util-linux |
1,508,317 |
1 |
0 |
0 |
35,952 |
0 |
16,151 |
898 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,517,080 |
1 |
0 |
8 |
35,944 |
0 |
16,243 |
913 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,735 |
1 |
0 |
0 |
35,936 |
0 |
16,142 |
932 |
osh-static |
| 6 |
no-host |
configure.yash |
173,545 |
0 |
0 |
0 |
3,616 |
0 |
878 |
99 |
bash |
| 14 |
no-host |
configure.yash |
159,537 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
110 |
dash |
| 22 |
no-host |
configure.yash |
176,443 |
0 |
0 |
0 |
3,624 |
0 |
855 |
113 |
osh-native |
| 30 |
no-host |
configure.yash |
177,229 |
0 |
0 |
0 |
3,624 |
0 |
858 |
85 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,757 |
0 |
0 |
0 |
3,616 |
0 |
858 |
111 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
391 |
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