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 |
15 |
9 |
20 |
22 |
18 |
1.31 |
1.15 |
| bin-true |
no-host |
626 |
441 |
807 |
804 |
652 |
1.29 |
1.04 |
| configure.cpython |
no-host |
13,738 |
13,794 |
13,322 |
13,405 |
13,102 |
0.97 |
0.95 |
| configure.ocaml |
no-host |
3,628 |
3,590 |
3,727 |
3,712 |
3,659 |
1.03 |
1.01 |
| configure.tcc |
no-host |
45 |
41 |
47 |
48 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,528 |
13,213 |
12,456 |
12,626 |
12,196 |
0.99 |
0.97 |
| configure.yash |
no-host |
1,693 |
1,624 |
1,699 |
1,697 |
1,658 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.42 |
1.06 |
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,405 |
1,154 |
3,313 |
3,411 |
2,813 |
1.38 |
1.17 |
| bin-true |
no-host |
103,457 |
49,449 |
134,685 |
133,021 |
111,290 |
1.30 |
1.08 |
| configure.cpython |
no-host |
1,619,761 |
1,637,842 |
1,586,449 |
1,610,051 |
1,513,225 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,942 |
281,045 |
306,427 |
307,234 |
300,000 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,220 |
4,207 |
5,593 |
5,683 |
5,112 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,534,874 |
1,694,242 |
1,496,692 |
1,519,550 |
1,470,387 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,385 |
159,560 |
176,765 |
177,109 |
172,664 |
1.02 |
1.00 |
| hello-world |
no-host |
149 |
86 |
395 |
401 |
184 |
2.65 |
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.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
807 |
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 |
13,322 |
1 |
64 |
14.8 |
34.5 |
1,750,907 |
35,429 |
28,954 |
93,081 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,456 |
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,727 |
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 |
47 |
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,699 |
1 |
2 |
2.7 |
33.4 |
143,538 |
11,666 |
6,632 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
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 |
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 |
804 |
1 |
2 |
3.5 |
9.0 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,405 |
2 |
66 |
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 |
12,626 |
3 |
66 |
21.6 |
39.7 |
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,712 |
1 |
2 |
2.8 |
28.7 |
149,720 |
12,661 |
6,576 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
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,697 |
1 |
2 |
2.7 |
33.1 |
143,538 |
11,670 |
6,636 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
15 |
7 |
9 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
8 |
13 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
10 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
626 |
311 |
353 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
441 |
272 |
172 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
807 |
315 |
506 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
804 |
310 |
511 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
652 |
318 |
351 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,738 |
7,589 |
6,539 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,794 |
7,523 |
6,677 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,322 |
7,144 |
6,449 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,405 |
7,152 |
6,547 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,102 |
7,254 |
6,087 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,628 |
1,462 |
1,207 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,590 |
1,472 |
1,142 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,727 |
1,474 |
1,293 |
28.6 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,712 |
1,496 |
1,258 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,659 |
1,496 |
1,195 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
45 |
24 |
22 |
26.2 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
27 |
14 |
26.2 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
20 |
27 |
26.0 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
28 |
21 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
20 |
24 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,528 |
6,591 |
6,405 |
39.5 |
bash |
| 11 |
no-host |
configure.util-linux |
13,213 |
6,536 |
7,170 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,456 |
6,184 |
6,498 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,626 |
6,227 |
6,627 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,196 |
6,211 |
6,203 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,693 |
960 |
742 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,624 |
909 |
718 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,699 |
923 |
779 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,697 |
935 |
765 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,658 |
917 |
744 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
3 |
0 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
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,405 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,154 |
0 |
0 |
0 |
8 |
0 |
40 |
2 |
dash |
| 23 |
no-host |
abuild-print-help |
3,313 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,411 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,813 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,457 |
0 |
0 |
0 |
8 |
0 |
1,996 |
61 |
bash |
| 9 |
no-host |
bin-true |
49,449 |
0 |
0 |
0 |
8 |
0 |
2,992 |
58 |
dash |
| 17 |
no-host |
bin-true |
134,685 |
0 |
0 |
0 |
16 |
0 |
1,999 |
92 |
osh-native |
| 25 |
no-host |
bin-true |
133,021 |
0 |
0 |
0 |
16 |
0 |
1,998 |
81 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,290 |
0 |
0 |
0 |
8 |
0 |
1,999 |
64 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,619,761 |
0 |
0 |
0 |
25,272 |
0 |
14,076 |
1,020 |
bash |
| 10 |
no-host |
configure.cpython |
1,637,842 |
0 |
0 |
0 |
25,272 |
0 |
14,112 |
1,063 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,449 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
960 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,610,051 |
0 |
0 |
0 |
25,288 |
0 |
11,263 |
887 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,513,225 |
0 |
0 |
0 |
25,272 |
0 |
11,302 |
985 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,942 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
192 |
bash |
| 12 |
no-host |
configure.ocaml |
281,045 |
0 |
0 |
0 |
4,432 |
0 |
2,114 |
217 |
dash |
| 20 |
no-host |
configure.ocaml |
306,427 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
221 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,234 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
221 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,000 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
210 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,220 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,207 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,593 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,683 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,112 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,534,874 |
1 |
0 |
0 |
35,936 |
0 |
18,976 |
1,107 |
bash |
| 11 |
no-host |
configure.util-linux |
1,694,242 |
0 |
0 |
0 |
35,936 |
0 |
17,078 |
1,187 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,692 |
1 |
0 |
0 |
35,952 |
0 |
16,135 |
881 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,550 |
1 |
0 |
0 |
35,944 |
0 |
16,123 |
941 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,470,387 |
1 |
0 |
0 |
35,936 |
0 |
16,149 |
933 |
osh-static |
| 6 |
no-host |
configure.yash |
173,385 |
0 |
0 |
0 |
3,616 |
0 |
879 |
90 |
bash |
| 14 |
no-host |
configure.yash |
159,560 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
105 |
dash |
| 22 |
no-host |
configure.yash |
176,765 |
0 |
0 |
0 |
3,624 |
0 |
857 |
106 |
osh-native |
| 30 |
no-host |
configure.yash |
177,109 |
0 |
0 |
0 |
3,624 |
0 |
858 |
93 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,664 |
0 |
0 |
0 |
3,616 |
0 |
858 |
115 |
osh-static |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
401 |
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