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 |
23 |
19 |
1.31 |
1.18 |
| bin-true |
no-host |
635 |
449 |
823 |
813 |
664 |
1.30 |
1.04 |
| configure.cpython |
no-host |
14,208 |
14,185 |
13,886 |
13,975 |
13,435 |
0.98 |
0.95 |
| configure.ocaml |
no-host |
3,747 |
3,676 |
3,813 |
3,785 |
3,763 |
1.02 |
1.00 |
| configure.tcc |
no-host |
46 |
42 |
48 |
48 |
44 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,850 |
13,676 |
12,954 |
13,020 |
12,697 |
1.01 |
0.99 |
| configure.yash |
no-host |
1,758 |
1,688 |
1,752 |
1,760 |
1,745 |
1.00 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.26 |
0.95 |
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,371 |
1,181 |
3,296 |
3,418 |
2,825 |
1.39 |
1.19 |
| bin-true |
no-host |
101,508 |
49,409 |
136,337 |
133,009 |
112,035 |
1.34 |
1.10 |
| configure.cpython |
no-host |
1,628,484 |
1,633,836 |
1,575,173 |
1,605,658 |
1,512,348 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
298,600 |
280,515 |
305,954 |
307,061 |
299,972 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,241 |
4,199 |
5,576 |
5,640 |
5,116 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,531,700 |
1,693,438 |
1,496,180 |
1,519,750 |
1,469,781 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,194 |
159,529 |
176,676 |
177,263 |
172,795 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
84 |
394 |
399 |
185 |
2.63 |
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.7 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
823 |
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,886 |
1 |
68 |
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,954 |
3 |
67 |
21.6 |
39.9 |
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,813 |
1 |
2 |
2.8 |
28.5 |
149,720 |
12,656 |
6,571 |
9,217 |
70,302 |
70,201 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,752 |
1 |
2 |
2.7 |
33.4 |
143,496 |
11,508 |
6,625 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
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 |
6.9 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
813 |
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,975 |
1 |
67 |
14.9 |
34.7 |
1,750,906 |
36,488 |
28,959 |
93,080 |
869,789 |
788,037 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,020 |
3 |
67 |
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,785 |
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 |
48 |
0 |
0 |
1.4 |
26.1 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,760 |
1 |
2 |
2.7 |
33.4 |
143,496 |
11,512 |
6,629 |
7,171 |
70,532 |
65,793 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
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 |
8 |
8 |
4.6 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
11 |
11 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
11 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
12 |
7 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
635 |
318 |
356 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
449 |
276 |
180 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
823 |
312 |
529 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
813 |
307 |
524 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
664 |
340 |
342 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,208 |
7,762 |
6,855 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,185 |
7,766 |
6,834 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
13,886 |
7,308 |
6,860 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,975 |
7,391 |
6,883 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,435 |
7,409 |
6,271 |
34.7 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,747 |
1,484 |
1,305 |
28.5 |
bash |
| 12 |
no-host |
configure.ocaml |
3,676 |
1,494 |
1,208 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,813 |
1,487 |
1,366 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,785 |
1,518 |
1,309 |
28.5 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,763 |
1,525 |
1,269 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
30 |
17 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
27 |
14 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
27 |
21 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
19 |
30 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
44 |
21 |
23 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,850 |
6,768 |
6,559 |
39.8 |
bash |
| 11 |
no-host |
configure.util-linux |
13,676 |
6,661 |
7,524 |
39.7 |
dash |
| 19 |
no-host |
configure.util-linux |
12,954 |
6,381 |
6,807 |
39.9 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,020 |
6,486 |
6,773 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,697 |
6,347 |
6,579 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,758 |
973 |
793 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,688 |
976 |
713 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,752 |
993 |
761 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,760 |
979 |
783 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,745 |
989 |
759 |
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 |
2 |
1 |
6.7 |
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,371 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,181 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,296 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,418 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,825 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,508 |
0 |
0 |
0 |
8 |
0 |
1,998 |
69 |
bash |
| 9 |
no-host |
bin-true |
49,409 |
0 |
0 |
0 |
8 |
0 |
2,996 |
46 |
dash |
| 17 |
no-host |
bin-true |
136,337 |
0 |
0 |
0 |
16 |
0 |
1,998 |
81 |
osh-native |
| 25 |
no-host |
bin-true |
133,009 |
0 |
0 |
0 |
16 |
0 |
2,000 |
87 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,035 |
0 |
0 |
0 |
8 |
0 |
1,996 |
54 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,484 |
0 |
0 |
0 |
25,272 |
0 |
14,095 |
979 |
bash |
| 10 |
no-host |
configure.cpython |
1,633,836 |
0 |
0 |
0 |
25,272 |
0 |
14,122 |
999 |
dash |
| 18 |
no-host |
configure.cpython |
1,575,173 |
0 |
0 |
0 |
25,280 |
0 |
11,284 |
822 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,605,658 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
840 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,512,348 |
0 |
0 |
0 |
25,280 |
0 |
11,299 |
975 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,600 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
196 |
bash |
| 12 |
no-host |
configure.ocaml |
280,515 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
305,954 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
214 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,061 |
0 |
0 |
0 |
4,440 |
0 |
2,002 |
203 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
299,972 |
0 |
0 |
0 |
4,432 |
0 |
2,000 |
225 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,241 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,199 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,576 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,640 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,116 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,531,700 |
1 |
0 |
0 |
35,936 |
0 |
19,005 |
1,171 |
bash |
| 11 |
no-host |
configure.util-linux |
1,693,438 |
0 |
0 |
0 |
35,936 |
0 |
17,143 |
1,199 |
dash |
| 19 |
no-host |
configure.util-linux |
1,496,180 |
0 |
0 |
0 |
35,952 |
0 |
16,168 |
1,010 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,519,750 |
1 |
0 |
0 |
35,944 |
0 |
16,187 |
920 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,469,781 |
3 |
0 |
0 |
35,936 |
0 |
16,186 |
978 |
osh-static |
| 6 |
no-host |
configure.yash |
173,194 |
0 |
0 |
0 |
3,616 |
0 |
882 |
110 |
bash |
| 14 |
no-host |
configure.yash |
159,529 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
103 |
dash |
| 22 |
no-host |
configure.yash |
176,676 |
0 |
0 |
0 |
3,632 |
0 |
859 |
101 |
osh-native |
| 30 |
no-host |
configure.yash |
177,263 |
0 |
0 |
0 |
3,624 |
0 |
856 |
99 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,795 |
0 |
0 |
0 |
3,624 |
0 |
856 |
104 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
394 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
185 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host