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 |
20 |
17 |
1.40 |
1.27 |
| bin-true |
no-host |
466 |
311 |
623 |
618 |
508 |
1.34 |
1.09 |
| configure.cpython |
no-host |
12,248 |
12,248 |
11,979 |
12,147 |
11,953 |
0.98 |
0.98 |
| configure.ocaml |
no-host |
3,416 |
3,328 |
3,431 |
3,474 |
3,438 |
1.00 |
1.01 |
| configure.tcc |
no-host |
40 |
35 |
41 |
42 |
37 |
1.04 |
0.95 |
| configure.util-linux |
no-host |
10,860 |
11,299 |
10,959 |
11,235 |
10,940 |
1.01 |
1.01 |
| configure.yash |
no-host |
1,512 |
1,449 |
1,513 |
1,563 |
1,511 |
1.00 |
1.00 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
1.88 |
0.91 |
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,412 |
1,170 |
3,274 |
3,388 |
2,810 |
1.36 |
1.17 |
| bin-true |
no-host |
103,883 |
49,830 |
134,777 |
136,427 |
110,770 |
1.30 |
1.07 |
| configure.cpython |
no-host |
1,624,549 |
1,645,964 |
1,583,398 |
1,599,212 |
1,517,593 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,855 |
282,036 |
307,400 |
307,615 |
300,952 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,234 |
4,225 |
5,602 |
5,691 |
5,130 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,539,525 |
1,706,998 |
1,500,381 |
1,520,305 |
1,475,157 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,952 |
159,946 |
176,831 |
177,634 |
173,101 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
85 |
393 |
403 |
184 |
2.55 |
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 |
623 |
1 |
2 |
3.5 |
8.9 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,979 |
1 |
63 |
14.8 |
34.6 |
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,959 |
3 |
66 |
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,431 |
1 |
2 |
2.8 |
28.8 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
41 |
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,513 |
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 |
18 |
1 |
2 |
3.0 |
9.4 |
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 |
618 |
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,147 |
1 |
63 |
14.9 |
34.3 |
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,235 |
3 |
66 |
21.6 |
39.4 |
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,474 |
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 |
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,563 |
1 |
2 |
2.7 |
33.4 |
143,538 |
11,670 |
6,636 |
7,172 |
70,560 |
65,806 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
10.1 |
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 |
10 |
4 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
3 |
5 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
9 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
20 |
10 |
10 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
17 |
13 |
4 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
466 |
286 |
216 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
311 |
232 |
81 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
623 |
311 |
324 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
618 |
316 |
317 |
9.4 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
508 |
291 |
231 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
12,248 |
7,662 |
4,905 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
12,248 |
7,671 |
4,915 |
34.4 |
dash |
| 18 |
no-host |
configure.cpython |
11,979 |
7,298 |
4,879 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
12,147 |
7,450 |
4,913 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,953 |
7,415 |
4,699 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,416 |
1,523 |
913 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,328 |
1,498 |
825 |
28.8 |
dash |
| 20 |
no-host |
configure.ocaml |
3,431 |
1,477 |
970 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,474 |
1,521 |
973 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,438 |
1,505 |
946 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
40 |
29 |
11 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
35 |
24 |
11 |
26.4 |
dash |
| 21 |
no-host |
configure.tcc |
41 |
22 |
19 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
42 |
24 |
18 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
26 |
12 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,860 |
6,753 |
4,488 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
11,299 |
6,675 |
5,023 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
10,959 |
6,364 |
4,745 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
11,235 |
6,479 |
4,908 |
39.4 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,940 |
6,403 |
4,679 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,512 |
973 |
538 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,449 |
961 |
480 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,513 |
973 |
535 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,563 |
980 |
578 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,511 |
965 |
538 |
33.5 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
0 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
2 |
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,412 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,170 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,274 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,388 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,810 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,883 |
0 |
0 |
0 |
8 |
0 |
2,000 |
52 |
bash |
| 9 |
no-host |
bin-true |
49,830 |
0 |
0 |
0 |
8 |
0 |
2,998 |
38 |
dash |
| 17 |
no-host |
bin-true |
134,777 |
0 |
0 |
0 |
16 |
0 |
2,000 |
80 |
osh-native |
| 25 |
no-host |
bin-true |
136,427 |
0 |
0 |
0 |
16 |
0 |
1,994 |
69 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
110,770 |
0 |
0 |
0 |
8 |
0 |
1,999 |
55 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,549 |
0 |
0 |
0 |
25,272 |
0 |
14,027 |
969 |
bash |
| 10 |
no-host |
configure.cpython |
1,645,964 |
1 |
0 |
0 |
25,272 |
0 |
14,056 |
964 |
dash |
| 18 |
no-host |
configure.cpython |
1,583,398 |
0 |
0 |
0 |
25,280 |
0 |
11,295 |
775 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,599,212 |
0 |
0 |
0 |
25,280 |
0 |
11,288 |
859 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,517,593 |
0 |
0 |
0 |
25,272 |
0 |
11,311 |
838 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,855 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
170 |
bash |
| 12 |
no-host |
configure.ocaml |
282,036 |
0 |
0 |
0 |
4,432 |
0 |
2,115 |
177 |
dash |
| 20 |
no-host |
configure.ocaml |
307,400 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
202 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,615 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
199 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,952 |
0 |
0 |
0 |
4,432 |
0 |
2,003 |
196 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,234 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,225 |
0 |
0 |
0 |
88 |
0 |
52 |
4 |
dash |
| 21 |
no-host |
configure.tcc |
5,602 |
0 |
0 |
0 |
96 |
0 |
44 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,691 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,130 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,539,525 |
0 |
0 |
0 |
35,936 |
0 |
18,801 |
935 |
bash |
| 11 |
no-host |
configure.util-linux |
1,706,998 |
0 |
0 |
0 |
35,936 |
0 |
16,932 |
1,072 |
dash |
| 19 |
no-host |
configure.util-linux |
1,500,381 |
4 |
0 |
0 |
35,960 |
0 |
16,214 |
916 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,520,305 |
1 |
0 |
0 |
35,952 |
0 |
16,211 |
908 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,475,157 |
4 |
0 |
0 |
35,936 |
0 |
16,158 |
949 |
osh-static |
| 6 |
no-host |
configure.yash |
173,952 |
0 |
0 |
0 |
3,616 |
0 |
879 |
89 |
bash |
| 14 |
no-host |
configure.yash |
159,946 |
0 |
0 |
0 |
3,624 |
0 |
1,003 |
84 |
dash |
| 22 |
no-host |
configure.yash |
176,831 |
0 |
0 |
0 |
3,624 |
0 |
857 |
93 |
osh-native |
| 30 |
no-host |
configure.yash |
177,634 |
0 |
0 |
0 |
3,624 |
0 |
856 |
101 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,101 |
0 |
0 |
0 |
3,616 |
0 |
858 |
101 |
osh-static |
| 0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
85 |
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 |
403 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host