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 |
21 |
18 |
1.27 |
1.14 |
| bin-true |
no-host |
632 |
446 |
807 |
815 |
650 |
1.28 |
1.03 |
| configure.cpython |
no-host |
14,335 |
13,824 |
13,397 |
13,421 |
12,917 |
0.93 |
0.90 |
| configure.ocaml |
no-host |
3,715 |
3,604 |
3,745 |
3,670 |
3,611 |
1.01 |
0.97 |
| configure.tcc |
no-host |
46 |
41 |
47 |
49 |
43 |
1.00 |
0.93 |
| configure.util-linux |
no-host |
12,986 |
13,213 |
12,424 |
12,416 |
11,974 |
0.96 |
0.92 |
| configure.yash |
no-host |
1,707 |
1,641 |
1,690 |
1,676 |
1,652 |
0.99 |
0.97 |
| hello-world |
no-host |
1 |
1 |
3 |
3 |
1 |
2.18 |
0.94 |
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,408 |
1,180 |
3,321 |
3,407 |
2,846 |
1.38 |
1.18 |
| bin-true |
no-host |
103,447 |
49,448 |
134,988 |
136,667 |
111,744 |
1.30 |
1.08 |
| configure.cpython |
no-host |
1,623,300 |
1,635,188 |
1,585,398 |
1,606,538 |
1,521,498 |
0.98 |
0.94 |
| configure.ocaml |
no-host |
298,894 |
280,540 |
305,676 |
307,395 |
300,038 |
1.02 |
1.00 |
| configure.tcc |
no-host |
5,249 |
4,206 |
5,581 |
5,687 |
5,136 |
1.06 |
0.98 |
| configure.util-linux |
no-host |
1,537,334 |
1,698,330 |
1,495,269 |
1,516,052 |
1,478,331 |
0.97 |
0.96 |
| configure.yash |
no-host |
173,276 |
159,521 |
176,663 |
176,550 |
172,952 |
1.02 |
1.00 |
| hello-world |
no-host |
152 |
87 |
393 |
396 |
181 |
2.59 |
1.19 |
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.8 |
3,910 |
3,910 |
0 |
722 |
1,924 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
807 |
1 |
2 |
3.5 |
8.9 |
151,895 |
10,758 |
2,972 |
14,781 |
72,398 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,397 |
1 |
67 |
14.8 |
34.4 |
1,750,792 |
35,391 |
28,948 |
93,077 |
869,750 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,424 |
3 |
67 |
21.6 |
39.7 |
2,705,328 |
37,463 |
66,336 |
119,745 |
1,291,845 |
1,293,738 |
32,527 |
42 |
132,672 |
1 |
| configure.ocaml |
no-host |
3,745 |
1 |
2 |
2.8 |
28.5 |
149,695 |
12,650 |
6,565 |
9,213 |
70,298 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
47 |
0 |
0 |
1.4 |
26.1 |
30,544 |
30,544 |
0 |
1,680 |
14,475 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,690 |
1 |
2 |
2.7 |
33.4 |
143,457 |
11,463 |
6,619 |
7,164 |
70,521 |
65,772 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
20 |
1 |
2 |
3.0 |
9.6 |
117,226 |
65,792 |
42,002 |
4,975 |
54,600 |
57,651 |
277 |
3 |
84,004 |
1 |
| hello-world |
no-host |
3 |
0 |
0 |
0.3 |
6.8 |
3,909 |
3,909 |
0 |
721 |
1,924 |
1,264 |
2 |
0 |
50,000 |
0 |
| bin-true |
no-host |
815 |
1 |
2 |
3.5 |
9.2 |
151,895 |
10,762 |
2,976 |
14,781 |
72,398 |
64,716 |
3,008 |
3 |
50,000 |
0 |
| configure.cpython |
no-host |
13,421 |
1 |
66 |
14.8 |
34.5 |
1,750,791 |
35,396 |
28,953 |
93,076 |
869,750 |
787,965 |
25,789 |
61 |
50,000 |
0 |
| configure.util-linux |
no-host |
12,416 |
3 |
65 |
21.6 |
39.6 |
2,705,328 |
37,469 |
66,342 |
119,745 |
1,291,845 |
1,293,738 |
32,527 |
42 |
132,684 |
1 |
| configure.ocaml |
no-host |
3,670 |
1 |
2 |
2.8 |
28.7 |
149,695 |
12,655 |
6,570 |
9,213 |
70,298 |
70,184 |
1,693 |
3 |
50,000 |
0 |
| configure.tcc |
no-host |
49 |
0 |
0 |
1.4 |
26.3 |
30,544 |
30,544 |
0 |
1,680 |
14,475 |
14,389 |
271 |
0 |
50,000 |
0 |
| configure.yash |
no-host |
1,676 |
1 |
2 |
2.7 |
33.4 |
143,457 |
11,467 |
6,623 |
7,164 |
70,521 |
65,772 |
2,095 |
3 |
50,000 |
0 |
| abuild-print-help |
no-host |
21 |
1 |
2 |
3.0 |
10.0 |
117,226 |
65,796 |
42,006 |
4,975 |
54,600 |
57,651 |
277 |
3 |
84,012 |
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 |
10 |
6 |
4.7 |
bash |
| 15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.8 |
dash |
| 23 |
no-host |
abuild-print-help |
20 |
11 |
10 |
9.6 |
osh-native |
| 31 |
no-host |
abuild-print-help |
21 |
10 |
11 |
10.0 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
18 |
13 |
6 |
6.4 |
osh-static |
| 1 |
no-host |
bin-true |
632 |
304 |
367 |
3.1 |
bash |
| 9 |
no-host |
bin-true |
446 |
268 |
183 |
1.6 |
dash |
| 17 |
no-host |
bin-true |
807 |
291 |
533 |
8.9 |
osh-native |
| 25 |
no-host |
bin-true |
815 |
309 |
521 |
9.2 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
650 |
311 |
357 |
5.1 |
osh-static |
| 2 |
no-host |
configure.cpython |
14,335 |
7,874 |
6,863 |
34.5 |
bash |
| 10 |
no-host |
configure.cpython |
13,824 |
7,530 |
6,701 |
34.8 |
dash |
| 18 |
no-host |
configure.cpython |
13,397 |
7,147 |
6,528 |
34.4 |
osh-native |
| 26 |
no-host |
configure.cpython |
13,421 |
7,095 |
6,615 |
34.5 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
12,917 |
7,085 |
6,075 |
34.6 |
osh-static |
| 4 |
no-host |
configure.ocaml |
3,715 |
1,469 |
1,287 |
28.7 |
bash |
| 12 |
no-host |
configure.ocaml |
3,604 |
1,486 |
1,143 |
28.6 |
dash |
| 20 |
no-host |
configure.ocaml |
3,745 |
1,510 |
1,275 |
28.5 |
osh-native |
| 28 |
no-host |
configure.ocaml |
3,670 |
1,466 |
1,245 |
28.7 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
3,611 |
1,450 |
1,193 |
28.7 |
osh-static |
| 5 |
no-host |
configure.tcc |
46 |
24 |
23 |
26.1 |
bash |
| 13 |
no-host |
configure.tcc |
41 |
26 |
16 |
26.3 |
dash |
| 21 |
no-host |
configure.tcc |
47 |
22 |
25 |
26.1 |
osh-native |
| 29 |
no-host |
configure.tcc |
49 |
22 |
27 |
26.3 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
43 |
21 |
22 |
26.2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
12,986 |
6,740 |
6,713 |
39.6 |
bash |
| 11 |
no-host |
configure.util-linux |
13,213 |
6,509 |
7,199 |
39.6 |
dash |
| 19 |
no-host |
configure.util-linux |
12,424 |
6,133 |
6,513 |
39.7 |
osh-native |
| 27 |
no-host |
configure.util-linux |
12,416 |
6,139 |
6,498 |
39.6 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
11,974 |
6,097 |
6,086 |
39.5 |
osh-static |
| 6 |
no-host |
configure.yash |
1,707 |
986 |
729 |
33.3 |
bash |
| 14 |
no-host |
configure.yash |
1,641 |
931 |
711 |
33.4 |
dash |
| 22 |
no-host |
configure.yash |
1,690 |
938 |
755 |
33.4 |
osh-native |
| 30 |
no-host |
configure.yash |
1,676 |
957 |
721 |
33.4 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
1,652 |
938 |
718 |
33.4 |
osh-static |
| 0 |
no-host |
hello-world |
1 |
0 |
1 |
3.1 |
bash |
| 8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
| 16 |
no-host |
hello-world |
3 |
3 |
0 |
6.8 |
osh-native |
| 24 |
no-host |
hello-world |
3 |
1 |
2 |
6.8 |
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,408 |
0 |
0 |
0 |
8 |
0 |
41 |
0 |
bash |
| 15 |
no-host |
abuild-print-help |
1,180 |
0 |
0 |
0 |
8 |
0 |
40 |
0 |
dash |
| 23 |
no-host |
abuild-print-help |
3,321 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
| 31 |
no-host |
abuild-print-help |
3,407 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-nosouffle |
| 39 |
no-host |
abuild-print-help |
2,846 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
osh-static |
| 1 |
no-host |
bin-true |
103,447 |
0 |
0 |
0 |
8 |
0 |
1,995 |
64 |
bash |
| 9 |
no-host |
bin-true |
49,448 |
0 |
0 |
0 |
8 |
0 |
2,994 |
66 |
dash |
| 17 |
no-host |
bin-true |
134,988 |
0 |
0 |
0 |
16 |
0 |
1,995 |
86 |
osh-native |
| 25 |
no-host |
bin-true |
136,667 |
0 |
0 |
0 |
16 |
0 |
1,999 |
96 |
osh-nosouffle |
| 33 |
no-host |
bin-true |
111,744 |
0 |
0 |
0 |
8 |
0 |
1,999 |
69 |
osh-static |
| 2 |
no-host |
configure.cpython |
1,623,300 |
0 |
0 |
0 |
25,272 |
0 |
14,101 |
1,104 |
bash |
| 10 |
no-host |
configure.cpython |
1,635,188 |
0 |
0 |
0 |
25,272 |
0 |
14,135 |
1,063 |
dash |
| 18 |
no-host |
configure.cpython |
1,585,398 |
0 |
0 |
0 |
25,280 |
0 |
11,297 |
879 |
osh-native |
| 26 |
no-host |
configure.cpython |
1,606,538 |
0 |
0 |
0 |
25,280 |
0 |
11,315 |
843 |
osh-nosouffle |
| 34 |
no-host |
configure.cpython |
1,521,498 |
0 |
0 |
0 |
25,272 |
0 |
11,304 |
884 |
osh-static |
| 4 |
no-host |
configure.ocaml |
298,894 |
0 |
0 |
0 |
4,432 |
0 |
2,019 |
185 |
bash |
| 12 |
no-host |
configure.ocaml |
280,540 |
0 |
0 |
0 |
4,432 |
0 |
2,111 |
190 |
dash |
| 20 |
no-host |
configure.ocaml |
305,676 |
0 |
0 |
0 |
4,440 |
0 |
1,999 |
211 |
osh-native |
| 28 |
no-host |
configure.ocaml |
307,395 |
0 |
0 |
0 |
4,440 |
0 |
1,998 |
223 |
osh-nosouffle |
| 36 |
no-host |
configure.ocaml |
300,038 |
0 |
0 |
0 |
4,432 |
0 |
2,004 |
218 |
osh-static |
| 5 |
no-host |
configure.tcc |
5,249 |
0 |
0 |
0 |
80 |
0 |
49 |
4 |
bash |
| 13 |
no-host |
configure.tcc |
4,206 |
0 |
0 |
0 |
88 |
0 |
52 |
2 |
dash |
| 21 |
no-host |
configure.tcc |
5,581 |
0 |
0 |
0 |
96 |
0 |
45 |
2 |
osh-native |
| 29 |
no-host |
configure.tcc |
5,687 |
0 |
0 |
0 |
96 |
0 |
45 |
1 |
osh-nosouffle |
| 37 |
no-host |
configure.tcc |
5,136 |
0 |
0 |
0 |
88 |
0 |
45 |
2 |
osh-static |
| 3 |
no-host |
configure.util-linux |
1,537,334 |
1 |
0 |
0 |
35,944 |
0 |
19,008 |
1,032 |
bash |
| 11 |
no-host |
configure.util-linux |
1,698,330 |
1 |
0 |
336 |
35,936 |
0 |
17,110 |
1,188 |
dash |
| 19 |
no-host |
configure.util-linux |
1,495,269 |
1 |
0 |
0 |
35,952 |
0 |
16,182 |
928 |
osh-native |
| 27 |
no-host |
configure.util-linux |
1,516,052 |
1 |
0 |
0 |
35,952 |
0 |
16,141 |
953 |
osh-nosouffle |
| 35 |
no-host |
configure.util-linux |
1,478,331 |
0 |
0 |
0 |
35,936 |
0 |
16,155 |
963 |
osh-static |
| 6 |
no-host |
configure.yash |
173,276 |
0 |
0 |
0 |
3,616 |
0 |
879 |
103 |
bash |
| 14 |
no-host |
configure.yash |
159,521 |
0 |
0 |
0 |
3,616 |
0 |
1,004 |
102 |
dash |
| 22 |
no-host |
configure.yash |
176,663 |
0 |
0 |
0 |
3,632 |
0 |
857 |
104 |
osh-native |
| 30 |
no-host |
configure.yash |
176,550 |
0 |
0 |
0 |
3,624 |
0 |
858 |
111 |
osh-nosouffle |
| 38 |
no-host |
configure.yash |
172,952 |
0 |
0 |
0 |
3,616 |
0 |
857 |
91 |
osh-static |
| 0 |
no-host |
hello-world |
152 |
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 |
396 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-nosouffle |
| 32 |
no-host |
hello-world |
181 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
osh-static |
Shell and Host