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 |
22 |
19 |
1.29 |
1.18 |
| bin-true |
no-host |
625 |
451 |
802 |
822 |
657 |
1.28 |
1.05 |
| configure.cpython |
no-host |
14,442 |
14,398 |
14,144 |
14,111 |
13,525 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
3,770 |
3,716 |
3,820 |
3,826 |
3,794 |
1.01 |
1.01 |
| configure.tcc |
no-host |
47 |
42 |
48 |
49 |
45 |
1.02 |
0.96 |
| configure.util-linux |
no-host |
12,962 |
13,743 |
13,116 |
13,081 |
12,747 |
1.01 |
0.98 |
| configure.yash |
no-host |
1,781 |
1,705 |
1,781 |
1,780 |
1,746 |
1.00 |
0.98 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.47 |
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,406 |
1,157 |
3,337 |
3,409 |
2,832 |
1.39 |
1.18 |
| bin-true |
no-host |
100,449 |
49,346 |
130,252 |
136,031 |
112,092 |
1.30 |
1.12 |
| configure.cpython |
no-host |
1,624,383 |
1,631,343 |
1,591,795 |
1,595,101 |
1,515,967 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,930 |
281,175 |
306,095 |
307,091 |
300,324 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,211 |
4,212 |
5,566 |
5,664 |
5,132 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,528,676 |
1,700,531 |
1,508,309 |
1,512,857 |
1,479,658 |
0.99 |
0.97 |
| configure.yash |
no-host |
173,252 |
159,467 |
176,775 |
177,017 |
172,781 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
87 |
393 |
401 |
182 |
2.62 |
1.21 |
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,919 |
3,919 |
0 |
726 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
802 |
1 |
2 |
3.5 |
8.7 |
151,904 |
10,764 |
2,978 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,144 |
2 |
71 |
14.8 |
34.5 |
1,750,831 |
35,399 |
28,954 |
93,081 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,116 |
3 |
71 |
21.6 |
39.6 |
2,705,397 |
37,471 |
66,342 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,820 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,656 |
6,571 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
48 |
0 |
0 |
1.4 |
26.2 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,781 |
1 |
2 |
2.7 |
33.3 |
143,480 |
11,508 |
6,625 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
9.4 |
117,238 |
65,801 |
42,008 |
4,980 |
54,600 |
57,658 |
277 |
3 |
84,016 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.9 |
3,918 |
3,918 |
0 |
725 |
1,922 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
822 |
1 |
2 |
3.5 |
9.3 |
151,904 |
10,768 |
2,982 |
14,785 |
72,396 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
14,111 |
1 |
73 |
14.9 |
34.3 |
1,750,830 |
36,458 |
28,959 |
93,080 |
869,763 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
13,081 |
3 |
71 |
21.6 |
39.7 |
2,705,397 |
37,477 |
66,348 |
119,749 |
1,291,873 |
1,293,775 |
32,527 |
42 |
132,696 |
1 |
| configure.ocaml |
no-host |
3,826 |
1 |
2 |
2.8 |
28.7 |
149,704 |
12,661 |
6,576 |
9,217 |
70,296 |
70,191 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.1 |
30,555 |
30,555 |
0 |
1,684 |
14,474 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,780 |
1 |
2 |
2.7 |
33.1 |
143,480 |
11,512 |
6,629 |
7,171 |
70,526 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
1 |
2 |
3.0 |
10.0 |
117,238 |
65,805 |
42,012 |
4,980 |
54,600 |
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 |
9 |
8 |
5.0 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
10 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
11 |
9 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
625 |
322 |
343 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
451 |
278 |
178 |
1.4 |
dash |
| 17 |
no-host |
bin-true |
802 |
315 |
505 |
8.7 |
osh-native |
| 25 |
no-host |
bin-true |
822 |
304 |
536 |
9.3 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
657 |
319 |
354 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,442 |
7,950 |
6,898 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
14,398 |
7,887 |
6,929 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
14,144 |
7,504 |
6,932 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
14,111 |
7,537 |
6,870 |
34.3 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
13,525 |
7,451 |
6,321 |
34.2 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,770 |
1,511 |
1,301 |
28.6 |
bash |
| 12 |
no-host |
configure.ocaml |
3,716 |
1,513 |
1,228 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,820 |
1,570 |
1,291 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,826 |
1,505 |
1,363 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,794 |
1,513 |
1,314 |
28.6 |
osh-static |
| 5 |
no-host |
configure.tcc |
47 |
28 |
20 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
42 |
21 |
21 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
48 |
25 |
24 |
26.2 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
23 |
27 |
26.1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
45 |
26 |
19 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,962 |
6,828 |
6,610 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,743 |
6,631 |
7,615 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
13,116 |
6,516 |
6,833 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
13,081 |
6,424 |
6,894 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,747 |
6,515 |
6,461 |
39.4 |
osh-static |
| 6 |
no-host |
configure.yash |
1,781 |
1,000 |
789 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,705 |
969 |
735 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,781 |
982 |
803 |
33.3 |
osh-native |
| 30 |
no-host |
configure.yash |
1,780 |
974 |
810 |
33.1 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,746 |
1,004 |
744 |
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 |
1 |
2 |
6.6 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
2 |
1 |
6.9 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,406 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,157 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,337 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,409 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,832 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
osh-static |
| 1 |
no-host |
bin-true |
100,449 |
0 |
0 |
0 |
8 |
0 |
2,000 |
62 |
bash |
| 9 |
no-host |
bin-true |
49,346 |
0 |
0 |
0 |
8 |
0 |
2,984 |
58 |
dash |
| 17 |
no-host |
bin-true |
130,252 |
0 |
0 |
0 |
16 |
0 |
1,996 |
85 |
osh-native |
| 25 |
no-host |
bin-true |
136,031 |
0 |
0 |
0 |
16 |
0 |
2,000 |
74 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,092 |
0 |
0 |
0 |
8 |
0 |
1,999 |
77 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,624,383 |
0 |
0 |
0 |
25,272 |
0 |
14,090 |
1,042 |
bash |
| 10 |
no-host |
configure.cpython |
1,631,343 |
0 |
0 |
0 |
25,272 |
0 |
14,153 |
1,011 |
dash |
| 18 |
no-host |
configure.cpython |
1,591,795 |
0 |
0 |
0 |
25,280 |
0 |
11,275 |
819 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,595,101 |
0 |
0 |
0 |
25,280 |
0 |
11,305 |
867 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,515,967 |
0 |
0 |
0 |
25,272 |
0 |
11,297 |
877 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,930 |
0 |
0 |
0 |
4,432 |
0 |
2,017 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
281,175 |
0 |
0 |
0 |
4,432 |
0 |
2,106 |
199 |
dash |
| 20 |
no-host |
configure.ocaml |
306,095 |
0 |
0 |
0 |
4,440 |
0 |
1,997 |
216 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,091 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
209 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,324 |
0 |
0 |
0 |
4,432 |
0 |
2,002 |
217 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,211 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,212 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,566 |
0 |
0 |
0 |
96 |
0 |
45 |
5 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,664 |
0 |
0 |
0 |
96 |
0 |
45 |
0 |
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,528,676 |
2 |
0 |
0 |
35,936 |
0 |
18,907 |
1,103 |
bash |
| 11 |
no-host |
configure.util-linux |
1,700,531 |
1 |
0 |
0 |
35,936 |
0 |
17,128 |
1,239 |
dash |
| 19 |
no-host |
configure.util-linux |
1,508,309 |
0 |
0 |
0 |
35,952 |
0 |
16,137 |
961 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,512,857 |
0 |
0 |
0 |
35,944 |
0 |
16,189 |
964 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,479,658 |
2 |
0 |
0 |
35,936 |
0 |
16,129 |
916 |
osh-static |
| 6 |
no-host |
configure.yash |
173,252 |
0 |
0 |
0 |
3,616 |
0 |
880 |
109 |
bash |
| 14 |
no-host |
configure.yash |
159,467 |
0 |
0 |
0 |
3,616 |
0 |
1,002 |
97 |
dash |
| 22 |
no-host |
configure.yash |
176,775 |
0 |
0 |
0 |
3,624 |
0 |
855 |
97 |
osh-native |
| 30 |
no-host |
configure.yash |
177,017 |
0 |
0 |
0 |
3,624 |
0 |
860 |
87 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,781 |
0 |
0 |
0 |
3,624 |
0 |
854 |
95 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
| 8 |
no-host |
hello-world |
87 |
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 |
401 |
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