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 |
17 |
19 |
16 |
1.37 |
1.28 |
| bin-true |
no-host |
452 |
309 |
616 |
638 |
504 |
1.36 |
1.11 |
| configure.cpython |
no-host |
11,980 |
11,970 |
11,637 |
11,897 |
11,375 |
0.97 |
0.95 |
| configure.ocaml |
no-host |
3,326 |
3,324 |
3,405 |
3,432 |
3,358 |
1.02 |
1.01 |
| configure.tcc |
no-host |
39 |
34 |
40 |
40 |
37 |
1.04 |
0.95 |
| configure.util-linux |
no-host |
10,543 |
11,199 |
10,775 |
10,992 |
10,558 |
1.02 |
1.00 |
| configure.yash |
no-host |
1,476 |
1,424 |
1,494 |
1,497 |
1,466 |
1.01 |
0.99 |
| hello-world |
no-host |
1 |
1 |
2 |
2 |
1 |
2.38 |
1.14 |
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,410 |
1,179 |
3,339 |
3,449 |
2,831 |
1.39 |
1.17 |
| bin-true |
no-host |
100,887 |
49,777 |
135,730 |
135,459 |
112,450 |
1.35 |
1.11 |
| configure.cpython |
no-host |
1,638,574 |
1,641,677 |
1,592,284 |
1,612,144 |
1,519,458 |
0.97 |
0.93 |
| configure.ocaml |
no-host |
299,742 |
281,514 |
306,434 |
307,510 |
301,015 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,245 |
4,231 |
5,620 |
5,696 |
5,133 |
1.07 |
0.98 |
| configure.util-linux |
no-host |
1,542,341 |
1,712,172 |
1,514,694 |
1,516,611 |
1,484,767 |
0.98 |
0.96 |
| configure.yash |
no-host |
173,745 |
159,948 |
176,655 |
177,349 |
173,124 |
1.02 |
1.00 |
| hello-world |
no-host |
150 |
85 |
395 |
399 |
184 |
2.63 |
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 |
2 |
0 |
0 |
0.3 |
6.7 |
3,920 |
3,920 |
0 |
726 |
1,923 |
1,271 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
616 |
1 |
2 |
3.5 |
8.9 |
151,905 |
10,764 |
2,978 |
14,785 |
72,397 |
64,723 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
11,637 |
1 |
60 |
14.8 |
34.6 |
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,775 |
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,405 |
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.3 |
30,556 |
30,556 |
0 |
1,684 |
14,475 |
14,397 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,494 |
1 |
2 |
2.7 |
33.1 |
143,481 |
11,508 |
6,625 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
17 |
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 |
2 |
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 |
638 |
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 |
11,897 |
1 |
61 |
14.9 |
34.7 |
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,992 |
3 |
64 |
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,432 |
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 |
40 |
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,497 |
1 |
2 |
2.7 |
33.2 |
143,481 |
11,512 |
6,629 |
7,171 |
70,527 |
65,783 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
19 |
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 |
7 |
6 |
4.8 |
bash |
| 15 |
no-host |
abuild-print-help |
7 |
6 |
2 |
3.9 |
dash |
| 23 |
no-host |
abuild-print-help |
17 |
13 |
5 |
9.4 |
osh-native |
| 31 |
no-host |
abuild-print-help |
19 |
10 |
9 |
10.1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
16 |
9 |
8 |
6.3 |
osh-static |
| 1 |
no-host |
bin-true |
452 |
283 |
199 |
3.3 |
bash |
| 9 |
no-host |
bin-true |
309 |
227 |
83 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
616 |
323 |
306 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
638 |
329 |
321 |
9.0 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
504 |
290 |
224 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
11,980 |
7,684 |
4,540 |
34.6 |
bash |
| 10 |
no-host |
configure.cpython |
11,970 |
7,704 |
4,532 |
34.5 |
dash |
| 18 |
no-host |
configure.cpython |
11,637 |
7,265 |
4,526 |
34.6 |
osh-native |
| 26 |
no-host |
configure.cpython |
11,897 |
7,334 |
4,729 |
34.7 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
11,375 |
7,211 |
4,294 |
34.4 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,326 |
1,487 |
849 |
28.8 |
bash |
| 12 |
no-host |
configure.ocaml |
3,324 |
1,488 |
830 |
28.7 |
dash |
| 20 |
no-host |
configure.ocaml |
3,405 |
1,530 |
876 |
28.8 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,432 |
1,536 |
903 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,358 |
1,517 |
842 |
28.8 |
osh-static |
| 5 |
no-host |
configure.tcc |
39 |
23 |
16 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
34 |
24 |
10 |
26.1 |
dash |
| 21 |
no-host |
configure.tcc |
40 |
25 |
15 |
26.3 |
osh-native |
| 29 |
no-host |
configure.tcc |
40 |
19 |
22 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
37 |
28 |
9 |
26.1 |
osh-static |
| 3 |
no-host |
configure.util-linux |
10,543 |
6,681 |
4,183 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
11,199 |
6,694 |
4,859 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
10,775 |
6,394 |
4,497 |
39.6 |
osh-native |
| 27 |
no-host |
configure.util-linux |
10,992 |
6,456 |
4,664 |
39.7 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
10,558 |
6,315 |
4,357 |
39.6 |
osh-static |
| 6 |
no-host |
configure.yash |
1,476 |
955 |
515 |
33.4 |
bash |
| 14 |
no-host |
configure.yash |
1,424 |
934 |
479 |
33.1 |
dash |
| 22 |
no-host |
configure.yash |
1,494 |
943 |
539 |
33.1 |
osh-native |
| 30 |
no-host |
configure.yash |
1,497 |
947 |
538 |
33.2 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,466 |
980 |
476 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
1 |
0 |
3.0 |
bash |
| 8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
| 16 |
no-host |
hello-world |
2 |
1 |
1 |
6.7 |
osh-native |
| 24 |
no-host |
hello-world |
2 |
1 |
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,410 |
0 |
0 |
0 |
8 |
0 |
41 |
1 |
bash |
| 15 |
no-host |
abuild-print-help |
1,179 |
0 |
0 |
0 |
8 |
0 |
40 |
1 |
dash |
| 23 |
no-host |
abuild-print-help |
3,339 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,449 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,831 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
100,887 |
0 |
0 |
0 |
8 |
0 |
2,000 |
55 |
bash |
| 9 |
no-host |
bin-true |
49,777 |
0 |
0 |
0 |
8 |
0 |
2,995 |
31 |
dash |
| 17 |
no-host |
bin-true |
135,730 |
0 |
0 |
0 |
16 |
0 |
1,998 |
61 |
osh-native |
| 25 |
no-host |
bin-true |
135,459 |
0 |
0 |
0 |
16 |
0 |
1,998 |
90 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
112,450 |
0 |
0 |
0 |
8 |
0 |
1,996 |
59 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,638,574 |
0 |
0 |
0 |
25,272 |
0 |
14,071 |
934 |
bash |
| 10 |
no-host |
configure.cpython |
1,641,677 |
0 |
0 |
0 |
25,272 |
0 |
14,101 |
917 |
dash |
| 18 |
no-host |
configure.cpython |
1,592,284 |
0 |
0 |
0 |
25,280 |
0 |
11,309 |
844 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,612,144 |
0 |
0 |
0 |
25,280 |
0 |
11,294 |
827 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,519,458 |
0 |
0 |
0 |
25,272 |
0 |
11,282 |
785 |
osh-static |
| 4 |
no-host |
configure.ocaml |
299,742 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
179 |
bash |
| 12 |
no-host |
configure.ocaml |
281,514 |
0 |
0 |
0 |
4,432 |
0 |
2,113 |
193 |
dash |
| 20 |
no-host |
configure.ocaml |
306,434 |
0 |
0 |
0 |
4,440 |
0 |
2,003 |
203 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,510 |
0 |
0 |
0 |
4,440 |
0 |
2,004 |
200 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
301,015 |
0 |
0 |
0 |
4,432 |
0 |
1,999 |
208 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,245 |
0 |
0 |
0 |
80 |
0 |
49 |
2 |
bash |
| 13 |
no-host |
configure.tcc |
4,231 |
0 |
0 |
0 |
88 |
0 |
52 |
3 |
dash |
| 21 |
no-host |
configure.tcc |
5,620 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,696 |
0 |
0 |
0 |
96 |
0 |
45 |
3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,133 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,542,341 |
0 |
0 |
0 |
35,936 |
0 |
18,839 |
1,021 |
bash |
| 11 |
no-host |
configure.util-linux |
1,712,172 |
0 |
0 |
0 |
35,936 |
0 |
16,965 |
1,297 |
dash |
| 19 |
no-host |
configure.util-linux |
1,514,694 |
4 |
0 |
0 |
35,960 |
0 |
16,180 |
900 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,611 |
2 |
0 |
0 |
35,944 |
0 |
16,219 |
912 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,484,767 |
3 |
0 |
0 |
35,936 |
0 |
16,172 |
860 |
osh-static |
| 6 |
no-host |
configure.yash |
173,745 |
0 |
0 |
0 |
3,616 |
0 |
878 |
82 |
bash |
| 14 |
no-host |
configure.yash |
159,948 |
0 |
0 |
0 |
3,616 |
0 |
1,001 |
96 |
dash |
| 22 |
no-host |
configure.yash |
176,655 |
0 |
0 |
0 |
3,624 |
0 |
855 |
90 |
osh-native |
| 30 |
no-host |
configure.yash |
177,349 |
0 |
0 |
0 |
3,624 |
0 |
855 |
97 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
173,124 |
0 |
0 |
0 |
3,616 |
0 |
858 |
89 |
osh-static |
| 0 |
no-host |
hello-world |
150 |
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 |
395 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
| 24 |
no-host |
hello-world |
399 |
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