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 |
7 |
18 |
19 |
16 |
1.33 |
1.24 |
| bin-true |
no-host |
454 |
307 |
601 |
619 |
493 |
1.32 |
1.09 |
| configure.cpython |
no-host |
11,873 |
11,848 |
11,666 |
11,771 |
11,191 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,335 |
3,276 |
3,357 |
3,337 |
3,301 |
1.01 |
0.99 |
| configure.tcc |
no-host |
39 |
35 |
39 |
40 |
37 |
1.01 |
0.95 |
| configure.util-linux |
no-host |
10,507 |
11,085 |
10,755 |
10,841 |
10,355 |
1.02 |
0.99 |
| configure.yash |
no-host |
1,463 |
1,403 |
1,470 |
1,463 |
1,447 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.43 |
1.11 |
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,407 |
1,166 |
3,352 |
3,438 |
2,822 |
1.39 |
1.17 |
| bin-true |
no-host |
102,896 |
49,873 |
130,737 |
137,506 |
111,801 |
1.27 |
1.09 |
| configure.cpython |
no-host |
1,631,856 |
1,643,941 |
1,582,962 |
1,609,439 |
1,512,836 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,511 |
281,860 |
307,237 |
308,457 |
300,723 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,239 |
4,234 |
5,639 |
5,684 |
5,120 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,537,024 |
1,700,937 |
1,504,076 |
1,525,314 |
1,473,379 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,708 |
159,917 |
177,202 |
177,607 |
172,999 |
1.02 |
1.00 |
| hello-world |
no-host |
155 |
87 |
393 |
400 |
184 |
2.54 |
1.19 |
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 |
2 |
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 |
601 |
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 |
11,666 |
1 |
62 |
14.8 |
34.4 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,755 |
3 |
64 |
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,357 |
1 |
2 |
2.8 |
28.6 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
39 |
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,470 |
1 |
2 |
2.7 |
33.5 |
143,538 |
11,666 |
6,632 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
18 |
1 |
2 |
3.0 |
9.6 |
117,263 |
65,801 |
42,008 |
4,981 |
54,612 |
57,670 |
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 |
619 |
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 |
11,771 |
1 |
62 |
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 |
10,841 |
3 |
65 |
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,337 |
1 |
2 |
2.8 |
28.8 |
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.2 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,463 |
1 |
2 |
2.7 |
33.5 |
143,538 |
11,670 |
6,636 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
1 |
2 |
3.0 |
10.0 |
117,263 |
65,805 |
42,012 |
4,981 |
54,612 |
57,670 |
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.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
3 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
15 |
3 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
14 |
5 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
12 |
5 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
454 |
274 |
215 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
307 |
222 |
85 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
601 |
330 |
287 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
619 |
331 |
302 |
9.4 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
493 |
321 |
186 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,873 |
7,637 |
4,576 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
11,848 |
7,670 |
4,531 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
11,666 |
7,225 |
4,656 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,771 |
7,247 |
4,756 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,191 |
7,136 |
4,243 |
34.8 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,335 |
1,556 |
803 |
28.9 |
bash |
| 12 |
no-host |
configure.ocaml |
3,276 |
1,506 |
780 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,357 |
1,492 |
888 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,337 |
1,498 |
864 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,301 |
1,486 |
833 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
39 |
24 |
15 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
35 |
24 |
11 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
39 |
25 |
14 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
40 |
18 |
23 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
24 |
14 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,507 |
6,700 |
4,196 |
39.8 |
bash |
| 11 |
no-host |
configure.util-linux |
11,085 |
6,577 |
4,927 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
10,755 |
6,261 |
4,661 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,841 |
6,373 |
4,630 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,355 |
6,281 |
4,231 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,463 |
922 |
545 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,403 |
943 |
457 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,470 |
947 |
520 |
33.5 |
osh-native |
| 30 |
no-host |
configure.yash |
1,463 |
928 |
533 |
33.5 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,447 |
963 |
479 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.4 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
2 |
2 |
0 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
2 |
0 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
0 |
1 |
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,407 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,166 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,352 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,438 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,822 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,896 |
0 |
0 |
0 |
8 |
0 |
1,996 |
52 |
bash |
| 9 |
no-host |
bin-true |
49,873 |
0 |
0 |
0 |
8 |
0 |
2,998 |
41 |
dash |
| 17 |
no-host |
bin-true |
130,737 |
0 |
0 |
0 |
16 |
0 |
1,997 |
60 |
osh-native |
| 25 |
no-host |
bin-true |
137,506 |
0 |
0 |
0 |
16 |
0 |
1,999 |
52 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,801 |
0 |
0 |
0 |
8 |
0 |
1,999 |
56 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,631,856 |
0 |
0 |
0 |
25,272 |
0 |
14,026 |
967 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,941 |
0 |
0 |
0 |
25,272 |
0 |
14,066 |
992 |
dash |
| 18 |
no-host |
configure.cpython |
1,582,962 |
0 |
0 |
0 |
25,280 |
0 |
11,303 |
794 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,609,439 |
0 |
0 |
0 |
25,280 |
0 |
11,311 |
802 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,512,836 |
0 |
0 |
0 |
25,272 |
0 |
11,325 |
813 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,511 |
0 |
0 |
0 |
4,432 |
0 |
2,026 |
156 |
bash |
| 12 |
no-host |
configure.ocaml |
281,860 |
0 |
0 |
0 |
4,432 |
0 |
2,114 |
169 |
dash |
| 20 |
no-host |
configure.ocaml |
307,237 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
186 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,457 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,723 |
0 |
0 |
0 |
4,432 |
0 |
2,006 |
196 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,239 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,234 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,639 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,684 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,120 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,024 |
1 |
0 |
0 |
35,936 |
0 |
18,838 |
995 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,937 |
1 |
0 |
0 |
35,936 |
0 |
16,896 |
1,134 |
dash |
| 19 |
no-host |
configure.util-linux |
1,504,076 |
2 |
0 |
0 |
35,960 |
0 |
16,186 |
863 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,525,314 |
3 |
0 |
0 |
35,944 |
0 |
16,173 |
933 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,473,379 |
2 |
0 |
0 |
35,936 |
0 |
16,163 |
842 |
osh-static |
| 6 |
no-host |
configure.yash |
173,708 |
0 |
0 |
0 |
3,616 |
0 |
874 |
90 |
bash |
| 14 |
no-host |
configure.yash |
159,917 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
90 |
dash |
| 22 |
no-host |
configure.yash |
177,202 |
0 |
0 |
0 |
3,624 |
0 |
857 |
94 |
osh-native |
| 30 |
no-host |
configure.yash |
177,607 |
0 |
0 |
0 |
3,624 |
0 |
859 |
84 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,999 |
0 |
0 |
0 |
3,616 |
0 |
859 |
76 |
osh-static |
| 0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
393 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
400 |
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