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 |
18 |
16 |
1.37 |
1.23 |
| bin-true |
no-host |
462 |
315 |
615 |
619 |
494 |
1.33 |
1.07 |
| configure.cpython |
no-host |
11,943 |
11,903 |
11,737 |
11,738 |
11,281 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,330 |
3,268 |
3,369 |
3,329 |
3,318 |
1.01 |
1.00 |
| configure.tcc |
no-host |
38 |
34 |
40 |
39 |
37 |
1.03 |
0.96 |
| configure.util-linux |
no-host |
10,578 |
11,065 |
10,744 |
10,748 |
10,443 |
1.02 |
0.99 |
| configure.yash |
no-host |
1,470 |
1,400 |
1,483 |
1,465 |
1,437 |
1.01 |
0.98 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.31 |
1.02 |
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,434 |
1,177 |
3,345 |
3,439 |
2,838 |
1.37 |
1.17 |
| bin-true |
no-host |
101,870 |
49,840 |
132,731 |
135,451 |
112,485 |
1.30 |
1.10 |
| configure.cpython |
no-host |
1,631,419 |
1,643,458 |
1,580,404 |
1,601,902 |
1,522,171 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,904 |
281,623 |
306,768 |
308,587 |
300,803 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,275 |
4,229 |
5,582 |
5,690 |
5,134 |
1.06 |
0.97 |
| configure.util-linux |
no-host |
1,536,199 |
1,710,706 |
1,517,651 |
1,518,566 |
1,485,033 |
0.99 |
0.97 |
| configure.yash |
no-host |
173,918 |
159,884 |
177,361 |
177,180 |
173,167 |
1.02 |
1.00 |
| hello-world |
no-host |
154 |
85 |
391 |
403 |
182 |
2.54 |
1.18 |
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 |
615 |
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 |
11,737 |
2 |
61 |
14.8 |
34.4 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,744 |
3 |
63 |
21.6 |
39.6 |
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,369 |
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 |
40 |
0 |
0 |
1.4 |
26.4 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,483 |
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 |
18 |
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 |
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.2 |
151,905 |
10,768 |
2,982 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,738 |
2 |
61 |
14.9 |
34.4 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
10,748 |
3 |
63 |
21.6 |
39.7 |
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,329 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
39 |
0 |
0 |
1.4 |
26.4 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,465 |
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 |
18 |
1 |
2 |
3.0 |
10.1 |
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 |
13 |
5 |
8 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
5 |
2 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
18 |
10 |
9 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
18 |
12 |
7 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
11 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
462 |
284 |
216 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
315 |
235 |
81 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
615 |
320 |
306 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
619 |
308 |
324 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
494 |
309 |
197 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,943 |
7,793 |
4,441 |
34.7 |
bash |
| 10 |
no-host |
configure.cpython |
11,903 |
7,695 |
4,509 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
11,737 |
7,325 |
4,576 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,738 |
7,369 |
4,558 |
34.4 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,281 |
7,262 |
4,161 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,330 |
1,500 |
841 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,268 |
1,488 |
777 |
28.9 |
dash |
| 20 |
no-host |
configure.ocaml |
3,369 |
1,484 |
894 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,329 |
1,490 |
861 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,318 |
1,443 |
882 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
38 |
25 |
13 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
28 |
7 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
40 |
27 |
13 |
26.4 |
osh-native |
| 29 |
no-host |
configure.tcc |
39 |
24 |
15 |
26.4 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
28 |
9 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,578 |
6,722 |
4,213 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
11,065 |
6,797 |
4,656 |
39.5 |
dash |
| 19 |
no-host |
configure.util-linux |
10,744 |
6,289 |
4,585 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,748 |
6,232 |
4,643 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,443 |
6,347 |
4,227 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,470 |
975 |
490 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,400 |
965 |
424 |
33.5 |
dash |
| 22 |
no-host |
configure.yash |
1,483 |
935 |
537 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,465 |
964 |
489 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,437 |
943 |
487 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
2 |
1 |
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.3 |
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,434 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,177 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,345 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,439 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,838 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,870 |
0 |
0 |
0 |
8 |
0 |
1,997 |
45 |
bash |
| 9 |
no-host |
bin-true |
49,840 |
0 |
0 |
0 |
8 |
0 |
3,000 |
50 |
dash |
| 17 |
no-host |
bin-true |
132,731 |
0 |
0 |
0 |
16 |
0 |
1,999 |
59 |
osh-native |
| 25 |
no-host |
bin-true |
135,451 |
0 |
0 |
0 |
16 |
0 |
1,996 |
101 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,485 |
0 |
0 |
0 |
8 |
0 |
1,998 |
70 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,631,419 |
0 |
0 |
0 |
25,272 |
0 |
14,024 |
943 |
bash |
| 10 |
no-host |
configure.cpython |
1,643,458 |
0 |
0 |
0 |
25,272 |
0 |
14,065 |
996 |
dash |
| 18 |
no-host |
configure.cpython |
1,580,404 |
0 |
0 |
0 |
25,280 |
0 |
11,291 |
829 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,601,902 |
0 |
0 |
0 |
25,280 |
0 |
11,312 |
898 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,522,171 |
0 |
0 |
0 |
25,272 |
0 |
11,319 |
781 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,904 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
181 |
bash |
| 12 |
no-host |
configure.ocaml |
281,623 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
171 |
dash |
| 20 |
no-host |
configure.ocaml |
306,768 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
194 |
osh-native |
| 28 |
no-host |
configure.ocaml |
308,587 |
0 |
0 |
0 |
4,440 |
0 |
2,005 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,803 |
0 |
0 |
0 |
4,432 |
0 |
1,998 |
192 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,275 |
0 |
0 |
0 |
80 |
0 |
49 |
1 |
bash |
| 13 |
no-host |
configure.tcc |
4,229 |
0 |
0 |
0 |
88 |
0 |
52 |
1 |
dash |
| 21 |
no-host |
configure.tcc |
5,582 |
0 |
0 |
0 |
96 |
0 |
45 |
4 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,690 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,134 |
0 |
0 |
0 |
88 |
0 |
45 |
1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,536,199 |
0 |
0 |
0 |
35,936 |
0 |
18,744 |
955 |
bash |
| 11 |
no-host |
configure.util-linux |
1,710,706 |
1 |
0 |
0 |
35,936 |
0 |
16,925 |
1,090 |
dash |
| 19 |
no-host |
configure.util-linux |
1,517,651 |
1 |
0 |
0 |
35,960 |
0 |
16,188 |
871 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,518,566 |
1 |
0 |
0 |
35,944 |
0 |
16,192 |
882 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,485,033 |
1 |
0 |
0 |
35,936 |
0 |
16,190 |
856 |
osh-static |
| 6 |
no-host |
configure.yash |
173,918 |
0 |
0 |
0 |
3,616 |
0 |
875 |
84 |
bash |
| 14 |
no-host |
configure.yash |
159,884 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
82 |
dash |
| 22 |
no-host |
configure.yash |
177,361 |
0 |
0 |
0 |
3,624 |
0 |
856 |
91 |
osh-native |
| 30 |
no-host |
configure.yash |
177,180 |
0 |
0 |
0 |
3,624 |
0 |
855 |
105 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,167 |
0 |
0 |
0 |
3,616 |
0 |
857 |
86 |
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 |
391 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
403 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
182 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host