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 |
17 |
10 |
22 |
24 |
20 |
1.33 |
1.22 |
| bin-true |
no-host |
633 |
448 |
830 |
831 |
673 |
1.31 |
1.06 |
| configure.cpython |
no-host |
14,853 |
14,914 |
14,836 |
14,704 |
14,195 |
1.00 |
0.96 |
| configure.ocaml |
no-host |
3,864 |
3,818 |
3,974 |
3,943 |
3,901 |
1.03 |
1.01 |
| configure.tcc |
no-host |
49 |
44 |
50 |
53 |
46 |
1.02 |
0.95 |
| configure.util-linux |
no-host |
13,375 |
14,439 |
13,757 |
13,722 |
13,354 |
1.03 |
1.00 |
| configure.yash |
no-host |
1,822 |
1,777 |
1,858 |
1,865 |
1,808 |
1.02 |
0.99 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.33 |
1.01 |
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,401 |
1,187 |
3,290 |
3,435 |
2,833 |
1.37 |
1.18 |
| bin-true |
no-host |
101,462 |
49,407 |
133,310 |
134,057 |
111,047 |
1.31 |
1.09 |
| configure.cpython |
no-host |
1,622,288 |
1,635,896 |
1,594,089 |
1,593,430 |
1,518,075 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
299,583 |
280,475 |
306,082 |
307,722 |
300,078 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,213 |
4,220 |
5,586 |
5,678 |
5,126 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,531,852 |
1,696,823 |
1,504,887 |
1,523,127 |
1,480,495 |
0.98 |
0.97 |
| configure.yash |
no-host |
173,248 |
159,573 |
177,277 |
176,873 |
172,801 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
82 |
396 |
396 |
183 |
2.61 |
1.20 |
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 |
830 |
1 |
2 |
3.5 |
8.5 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,836 |
2 |
75 |
14.8 |
34.5 |
1,750,832 |
35,399 |
28,954 |
93,081 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,757 |
3 |
74 |
21.6 |
39.8 |
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,974 |
1 |
2 |
2.8 |
28.7 |
149,705 |
12,656 |
6,571 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
50 |
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,858 |
1 |
2 |
2.7 |
33.3 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
831 |
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 |
14,704 |
2 |
74 |
14.9 |
34.5 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,722 |
3 |
73 |
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,943 |
1 |
2 |
2.8 |
28.8 |
149,705 |
12,661 |
6,576 |
9,217 |
70,297 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
53 |
0 |
0 |
1.4 |
26.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,865 |
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 |
24 |
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 |
17 |
8 |
9 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
22 |
13 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
24 |
11 |
14 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
20 |
12 |
9 |
6.2 |
osh-static |
| 1 |
no-host |
bin-true |
633 |
310 |
361 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
448 |
279 |
174 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
830 |
324 |
523 |
8.5 |
osh-native |
| 25 |
no-host |
bin-true |
831 |
310 |
538 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
673 |
322 |
369 |
5.0 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,853 |
8,085 |
7,167 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,914 |
8,113 |
7,222 |
34.7 |
dash |
| 18 |
no-host |
configure.cpython |
14,836 |
7,911 |
7,223 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,704 |
7,809 |
7,199 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
14,195 |
7,800 |
6,655 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,864 |
1,590 |
1,317 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,818 |
1,555 |
1,288 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,974 |
1,613 |
1,400 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,943 |
1,585 |
1,401 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,901 |
1,550 |
1,384 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
49 |
23 |
26 |
26.4 |
bash |
| 13 |
no-host |
configure.tcc |
44 |
21 |
23 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
50 |
27 |
23 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
53 |
21 |
32 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
46 |
28 |
19 |
26.0 |
osh-static |
| 3 |
no-host |
configure.util-linux |
13,375 |
6,899 |
6,965 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
14,439 |
7,004 |
7,952 |
39.8 |
dash |
| 19 |
no-host |
configure.util-linux |
13,757 |
6,799 |
7,198 |
39.8 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,722 |
6,801 |
7,150 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
13,354 |
6,786 |
6,797 |
39.8 |
osh-static |
| 6 |
no-host |
configure.yash |
1,822 |
1,020 |
806 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,777 |
996 |
782 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,858 |
1,013 |
847 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,865 |
1,020 |
847 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,808 |
1,030 |
780 |
33.3 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.3 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
3 |
2 |
1 |
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.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,401 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,187 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,290 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,435 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,833 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,462 |
0 |
0 |
0 |
8 |
0 |
1,998 |
88 |
bash |
| 9 |
no-host |
bin-true |
49,407 |
0 |
0 |
0 |
8 |
0 |
2,986 |
53 |
dash |
| 17 |
no-host |
bin-true |
133,310 |
0 |
0 |
0 |
16 |
0 |
1,997 |
95 |
osh-native |
| 25 |
no-host |
bin-true |
134,057 |
0 |
0 |
0 |
16 |
0 |
1,994 |
77 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,047 |
0 |
0 |
0 |
8 |
0 |
1,998 |
65 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,622,288 |
0 |
0 |
0 |
25,296 |
0 |
14,118 |
1,011 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,896 |
0 |
0 |
0 |
25,272 |
0 |
14,172 |
1,138 |
dash |
| 18 |
no-host |
configure.cpython |
1,594,089 |
0 |
0 |
0 |
25,280 |
0 |
11,293 |
845 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,593,430 |
0 |
0 |
0 |
25,280 |
0 |
11,285 |
825 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,075 |
1 |
0 |
0 |
25,272 |
0 |
11,299 |
819 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,583 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
180 |
bash |
| 12 |
no-host |
configure.ocaml |
280,475 |
0 |
0 |
0 |
4,432 |
0 |
2,107 |
196 |
dash |
| 20 |
no-host |
configure.ocaml |
306,082 |
0 |
0 |
0 |
4,440 |
0 |
1,996 |
230 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,722 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
188 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,078 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
223 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,213 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,220 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,586 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,678 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,126 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,531,852 |
0 |
0 |
0 |
35,936 |
0 |
19,026 |
1,092 |
bash |
| 11 |
no-host |
configure.util-linux |
1,696,823 |
1 |
0 |
0 |
35,936 |
0 |
17,159 |
1,268 |
dash |
| 19 |
no-host |
configure.util-linux |
1,504,887 |
1 |
0 |
0 |
35,952 |
0 |
16,194 |
935 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,523,127 |
0 |
0 |
0 |
35,944 |
0 |
16,205 |
952 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,480,495 |
1 |
0 |
0 |
35,936 |
0 |
16,152 |
1,002 |
osh-static |
| 6 |
no-host |
configure.yash |
173,248 |
0 |
0 |
0 |
3,616 |
0 |
879 |
108 |
bash |
| 14 |
no-host |
configure.yash |
159,573 |
0 |
0 |
0 |
3,616 |
0 |
1,000 |
106 |
dash |
| 22 |
no-host |
configure.yash |
177,277 |
0 |
0 |
0 |
3,624 |
0 |
857 |
100 |
osh-native |
| 30 |
no-host |
configure.yash |
176,873 |
0 |
0 |
0 |
3,624 |
0 |
855 |
117 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,801 |
0 |
0 |
0 |
3,616 |
0 |
857 |
110 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
| 16 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
183 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host