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.15 |
| bin-true |
no-host |
626 |
448 |
808 |
811 |
655 |
1.29 |
1.05 |
| configure.cpython |
no-host |
13,975 |
13,875 |
13,530 |
13,620 |
12,992 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
3,643 |
3,603 |
3,711 |
3,682 |
3,674 |
1.02 |
1.01 |
| configure.tcc |
no-host |
46 |
41 |
47 |
47 |
43 |
1.03 |
0.94 |
| configure.util-linux |
no-host |
12,638 |
13,240 |
12,604 |
12,516 |
12,307 |
1.00 |
0.97 |
| configure.yash |
no-host |
1,684 |
1,634 |
1,697 |
1,694 |
1,678 |
1.01 |
1.00 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.47 |
1.09 |
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,414 |
1,146 |
3,342 |
3,438 |
2,837 |
1.38 |
1.18 |
| bin-true |
no-host |
101,381 |
49,389 |
133,324 |
135,006 |
111,050 |
1.32 |
1.10 |
| configure.cpython |
no-host |
1,628,077 |
1,641,632 |
1,589,701 |
1,606,600 |
1,518,073 |
0.98 |
0.93 |
| configure.ocaml |
no-host |
298,750 |
280,842 |
306,649 |
306,381 |
300,186 |
1.03 |
1.00 |
| configure.tcc |
no-host |
5,234 |
4,206 |
5,587 |
5,651 |
5,127 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,537,192 |
1,691,791 |
1,502,677 |
1,522,360 |
1,478,913 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,431 |
159,569 |
176,720 |
177,184 |
172,858 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
84 |
392 |
403 |
184 |
2.61 |
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.6 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
808 |
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 |
13,530 |
1 |
67 |
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 |
12,604 |
3 |
67 |
21.6 |
39.5 |
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,711 |
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 |
47 |
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,697 |
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 |
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 |
7.1 |
3,919 |
3,919 |
0 |
725 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
811 |
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 |
13,620 |
1 |
67 |
14.9 |
34.6 |
1,750,831 |
36,458 |
28,959 |
93,080 |
869,764 |
787,987 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,516 |
3 |
64 |
21.6 |
39.6 |
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,682 |
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 |
47 |
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,694 |
1 |
2 |
2.7 |
33.3 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
22 |
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 |
16 |
7 |
10 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
5 |
4 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
21 |
12 |
9 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
19 |
13 |
6 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
626 |
311 |
353 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
448 |
282 |
171 |
1.7 |
dash |
| 17 |
no-host |
bin-true |
808 |
313 |
511 |
8.8 |
osh-native |
| 25 |
no-host |
bin-true |
811 |
310 |
519 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
655 |
313 |
358 |
5.2 |
osh-static |
| 2 |
no-host |
configure.cpython |
13,975 |
7,529 |
6,688 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,875 |
7,573 |
6,715 |
34.6 |
dash |
| 18 |
no-host |
configure.cpython |
13,530 |
7,214 |
6,594 |
34.5 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,620 |
7,185 |
6,729 |
34.6 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,992 |
7,199 |
6,038 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,643 |
1,498 |
1,186 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,603 |
1,442 |
1,186 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,711 |
1,460 |
1,292 |
28.7 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,682 |
1,474 |
1,248 |
28.8 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,674 |
1,479 |
1,228 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.3 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
20 |
21 |
26.0 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
23 |
25 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
47 |
24 |
24 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
17 |
26 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,638 |
6,610 |
6,505 |
39.7 |
bash |
| 11 |
no-host |
configure.util-linux |
13,240 |
6,548 |
7,190 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,604 |
6,270 |
6,561 |
39.5 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,516 |
6,196 |
6,545 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
12,307 |
6,210 |
6,324 |
39.7 |
osh-static |
| 6 |
no-host |
configure.yash |
1,684 |
926 |
767 |
33.1 |
bash |
| 14 |
no-host |
configure.yash |
1,634 |
968 |
668 |
33.3 |
dash |
| 22 |
no-host |
configure.yash |
1,697 |
928 |
771 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,694 |
942 |
755 |
33.3 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,678 |
952 |
726 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
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 |
7.1 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
1 |
1 |
0 |
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,414 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,146 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,342 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,438 |
0 |
0 |
0 |
16 |
0 |
38 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,837 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
101,381 |
0 |
0 |
0 |
8 |
0 |
2,001 |
54 |
bash |
| 9 |
no-host |
bin-true |
49,389 |
0 |
0 |
0 |
8 |
0 |
2,994 |
50 |
dash |
| 17 |
no-host |
bin-true |
133,324 |
0 |
0 |
0 |
16 |
0 |
1,999 |
72 |
osh-native |
| 25 |
no-host |
bin-true |
135,006 |
0 |
0 |
0 |
16 |
0 |
1,999 |
93 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,050 |
0 |
0 |
0 |
8 |
0 |
1,997 |
71 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,628,077 |
0 |
0 |
0 |
25,272 |
0 |
14,102 |
1,007 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,632 |
0 |
0 |
0 |
25,272 |
0 |
14,122 |
1,116 |
dash |
| 18 |
no-host |
configure.cpython |
1,589,701 |
0 |
0 |
0 |
25,280 |
0 |
11,310 |
839 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,606,600 |
0 |
0 |
0 |
25,280 |
0 |
11,292 |
953 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,518,073 |
0 |
0 |
0 |
25,272 |
0 |
11,302 |
859 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,750 |
0 |
0 |
0 |
4,432 |
0 |
2,020 |
188 |
bash |
| 12 |
no-host |
configure.ocaml |
280,842 |
0 |
0 |
0 |
4,432 |
0 |
2,100 |
195 |
dash |
| 20 |
no-host |
configure.ocaml |
306,649 |
0 |
0 |
0 |
4,440 |
0 |
2,001 |
217 |
osh-native |
| 28 |
no-host |
configure.ocaml |
306,381 |
0 |
0 |
0 |
4,440 |
0 |
2,000 |
192 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,186 |
0 |
0 |
0 |
4,432 |
0 |
2,001 |
192 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,234 |
0 |
0 |
0 |
80 |
0 |
49 |
3 |
bash |
| 13 |
no-host |
configure.tcc |
4,206 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,587 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,651 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,127 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,192 |
0 |
0 |
0 |
35,936 |
0 |
18,975 |
1,035 |
bash |
| 11 |
no-host |
configure.util-linux |
1,691,791 |
1 |
0 |
0 |
35,936 |
0 |
17,105 |
1,285 |
dash |
| 19 |
no-host |
configure.util-linux |
1,502,677 |
2 |
0 |
0 |
35,952 |
0 |
16,127 |
953 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,522,360 |
0 |
0 |
8 |
35,944 |
0 |
16,225 |
970 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,478,913 |
5 |
0 |
0 |
35,944 |
0 |
16,220 |
893 |
osh-static |
| 6 |
no-host |
configure.yash |
173,431 |
0 |
0 |
0 |
3,616 |
0 |
881 |
98 |
bash |
| 14 |
no-host |
configure.yash |
159,569 |
0 |
0 |
0 |
3,624 |
0 |
1,000 |
110 |
dash |
| 22 |
no-host |
configure.yash |
176,720 |
0 |
0 |
0 |
3,624 |
0 |
858 |
96 |
osh-native |
| 30 |
no-host |
configure.yash |
177,184 |
0 |
0 |
0 |
3,632 |
0 |
858 |
105 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,858 |
0 |
0 |
0 |
3,624 |
0 |
858 |
99 |
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 |
392 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
| 24 |
no-host |
hello-world |
403 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
184 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host