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 |
20 |
23 |
20 |
1.28 |
1.27 |
| bin-true |
no-host |
628 |
445 |
809 |
806 |
666 |
1.29 |
1.06 |
| configure.cpython |
no-host |
14,639 |
14,866 |
14,273 |
14,356 |
13,851 |
0.97 |
0.95 |
| configure.ocaml |
no-host |
3,737 |
3,809 |
3,878 |
3,887 |
3,794 |
1.04 |
1.02 |
| configure.tcc |
no-host |
46 |
43 |
50 |
48 |
45 |
1.09 |
0.97 |
| configure.util-linux |
no-host |
13,268 |
14,437 |
13,605 |
13,376 |
12,920 |
1.03 |
0.97 |
| configure.yash |
no-host |
1,735 |
1,717 |
1,793 |
1,790 |
1,767 |
1.03 |
1.02 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.22 |
1.00 |
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,404 |
1,179 |
3,275 |
3,382 |
2,855 |
1.36 |
1.19 |
| bin-true |
no-host |
102,430 |
49,387 |
131,923 |
131,364 |
111,704 |
1.29 |
1.09 |
| configure.cpython |
no-host |
1,622,526 |
1,633,693 |
1,586,233 |
1,608,018 |
1,525,134 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,686 |
280,474 |
306,899 |
307,680 |
300,285 |
1.03 |
1.01 |
| configure.tcc |
no-host |
5,226 |
4,206 |
5,624 |
5,712 |
5,132 |
1.08 |
0.98 |
| configure.util-linux |
no-host |
1,544,786 |
1,697,266 |
1,497,240 |
1,511,927 |
1,452,739 |
0.97 |
0.94 |
| configure.yash |
no-host |
173,243 |
159,481 |
176,510 |
176,807 |
172,980 |
1.02 |
1.00 |
| hello-world |
no-host |
149 |
87 |
396 |
398 |
183 |
2.66 |
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,907 |
3,907 |
0 |
722 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
809 |
1 |
2 |
3.5 |
8.8 |
151,892 |
10,755 |
2,969 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,273 |
2 |
72 |
14.8 |
34.6 |
1,750,754 |
35,383 |
28,940 |
93,077 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,605 |
4 |
76 |
21.6 |
39.8 |
2,705,290 |
37,455 |
66,328 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,656 |
1 |
| configure.ocaml |
no-host |
3,878 |
1 |
2 |
2.8 |
28.5 |
149,692 |
12,647 |
6,562 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
0 |
0 |
1.4 |
26.2 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,793 |
1 |
2 |
2.7 |
33.3 |
143,454 |
11,460 |
6,616 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.4 |
117,223 |
65,789 |
41,999 |
4,975 |
54,597 |
57,651 |
277 |
3 |
83,998 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,906 |
3,906 |
0 |
721 |
1,921 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
806 |
1 |
2 |
3.5 |
9.2 |
151,892 |
10,759 |
2,973 |
14,781 |
72,395 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,356 |
2 |
75 |
14.8 |
34.7 |
1,750,753 |
35,388 |
28,945 |
93,076 |
869,712 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,376 |
3 |
74 |
21.6 |
39.7 |
2,705,290 |
37,461 |
66,334 |
119,745 |
1,291,807 |
1,293,738 |
32,527 |
42 |
132,668 |
1 |
| configure.ocaml |
no-host |
3,887 |
1 |
2 |
2.8 |
28.7 |
149,692 |
12,652 |
6,567 |
9,213 |
70,295 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.2 |
30,541 |
30,541 |
0 |
1,680 |
14,472 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,790 |
1 |
2 |
2.7 |
33.4 |
143,454 |
11,464 |
6,620 |
7,166 |
70,508 |
65,780 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
23 |
1 |
3 |
3.0 |
10.0 |
117,223 |
65,793 |
42,003 |
4,975 |
54,597 |
57,651 |
277 |
3 |
84,006 |
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 |
9 |
7 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
4.1 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
15 |
6 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
23 |
13 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
20 |
12 |
9 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
628 |
325 |
342 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
445 |
277 |
173 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
809 |
310 |
516 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
806 |
321 |
500 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
666 |
319 |
364 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,639 |
7,975 |
7,071 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,866 |
8,047 |
7,240 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
14,273 |
7,523 |
7,033 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,356 |
7,563 |
7,095 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,851 |
7,627 |
6,469 |
34.5 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,737 |
1,508 |
1,271 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,809 |
1,552 |
1,281 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,878 |
1,538 |
1,382 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,887 |
1,597 |
1,332 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,794 |
1,506 |
1,319 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
20 |
27 |
26.0 |
bash |
| 13 |
no-host |
configure.tcc |
43 |
25 |
19 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
50 |
21 |
29 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
48 |
29 |
19 |
26.2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
28 |
17 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,268 |
6,956 |
6,797 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
14,437 |
6,949 |
8,016 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,605 |
6,683 |
7,155 |
39.8 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,376 |
6,586 |
7,024 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,920 |
6,596 |
6,539 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,735 |
1,009 |
734 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,717 |
956 |
762 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,793 |
997 |
799 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,790 |
1,018 |
774 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,767 |
982 |
787 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
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 |
1 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
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,404 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,179 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,275 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,382 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,855 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
102,430 |
0 |
0 |
0 |
8 |
0 |
1,999 |
67 |
bash |
| 9 |
no-host |
bin-true |
49,387 |
0 |
0 |
0 |
8 |
0 |
2,994 |
39 |
dash |
| 17 |
no-host |
bin-true |
131,923 |
0 |
0 |
0 |
16 |
0 |
1,997 |
76 |
osh-native |
| 25 |
no-host |
bin-true |
131,364 |
0 |
0 |
0 |
16 |
0 |
2,001 |
101 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,704 |
0 |
0 |
0 |
8 |
0 |
1,997 |
70 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,526 |
0 |
0 |
0 |
25,272 |
0 |
14,068 |
1,160 |
bash |
| 10 |
no-host |
configure.cpython |
1,633,693 |
0 |
0 |
0 |
25,272 |
0 |
14,156 |
987 |
dash |
| 18 |
no-host |
configure.cpython |
1,586,233 |
0 |
0 |
0 |
25,280 |
0 |
11,296 |
853 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,608,018 |
0 |
0 |
0 |
25,280 |
0 |
11,301 |
860 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,525,134 |
0 |
0 |
0 |
25,272 |
0 |
11,305 |
868 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,686 |
0 |
0 |
0 |
4,432 |
0 |
2,013 |
191 |
bash |
| 12 |
no-host |
configure.ocaml |
280,474 |
0 |
0 |
0 |
4,432 |
0 |
2,105 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
306,899 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
224 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,680 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
197 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,285 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
216 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,226 |
0 |
0 |
0 |
80 |
0 |
48 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,206 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,624 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,712 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,132 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,544,786 |
0 |
0 |
232 |
35,944 |
0 |
18,950 |
1,102 |
bash |
| 11 |
no-host |
configure.util-linux |
1,697,266 |
1 |
0 |
0 |
35,936 |
0 |
17,151 |
1,226 |
dash |
| 19 |
no-host |
configure.util-linux |
1,497,240 |
1 |
0 |
0 |
35,952 |
0 |
16,203 |
864 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,511,927 |
0 |
0 |
0 |
35,944 |
0 |
16,198 |
892 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,452,739 |
3 |
0 |
0 |
35,936 |
0 |
16,119 |
994 |
osh-static |
| 6 |
no-host |
configure.yash |
173,243 |
0 |
0 |
0 |
3,616 |
0 |
881 |
96 |
bash |
| 14 |
no-host |
configure.yash |
159,481 |
0 |
0 |
0 |
3,616 |
0 |
1,003 |
114 |
dash |
| 22 |
no-host |
configure.yash |
176,510 |
0 |
0 |
0 |
3,624 |
0 |
856 |
94 |
osh-native |
| 30 |
no-host |
configure.yash |
176,807 |
0 |
0 |
0 |
3,624 |
0 |
856 |
102 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,980 |
0 |
0 |
0 |
3,624 |
0 |
858 |
105 |
osh-static |
| 0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
| 16 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
398 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host