oilshell.org
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-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
20 |
10 |
464 |
22 |
22 |
23.33 |
1.12 |
bin-true |
no-host |
709 |
553 |
2,316 |
834 |
823 |
3.27 |
1.18 |
configure.cpython |
no-host |
15,563 |
15,692 |
29,737 |
15,768 |
15,895 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,894 |
3,829 |
4,769 |
3,922 |
3,924 |
1.22 |
1.01 |
configure.tcc |
no-host |
49 |
44 |
202 |
50 |
50 |
4.13 |
1.01 |
configure.util-linux |
no-host |
14,462 |
15,410 |
32,530 |
14,913 |
14,813 |
2.25 |
1.03 |
configure.yash |
no-host |
1,891 |
1,905 |
2,524 |
1,886 |
1,878 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
3 |
32.44 |
1.81 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,568 |
1,101 |
23,419 |
3,145 |
3,114 |
9.12 |
1.22 |
bin-true |
no-host |
108,346 |
66,359 |
776,776 |
126,831 |
126,858 |
7.17 |
1.17 |
configure.cpython |
no-host |
2,218,721 |
2,244,651 |
6,220,242 |
2,223,142 |
2,216,789 |
2.80 |
1.00 |
configure.ocaml |
no-host |
409,951 |
391,453 |
645,138 |
412,568 |
412,776 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,542 |
5,472 |
23,775 |
6,975 |
6,966 |
3.63 |
1.07 |
configure.util-linux |
no-host |
2,098,517 |
2,266,192 |
5,373,867 |
2,003,869 |
1,999,224 |
2.56 |
0.95 |
configure.yash |
no-host |
256,189 |
244,980 |
386,929 |
258,519 |
257,759 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
80 |
3,743 |
351 |
344 |
24.46 |
2.29 |
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.2 |
6.2 |
3,780 |
3,780 |
0 |
695 |
1,857 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
834 |
1 |
2 |
2.6 |
8.1 |
154,745 |
13,282 |
2,884 |
9,745 |
78,326 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,768 |
2 |
66 |
15.0 |
27.5 |
1,772,727 |
49,861 |
28,594 |
86,398 |
908,078 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,913 |
3 |
66 |
21.3 |
30.0 |
2,703,495 |
29,752 |
65,877 |
109,676 |
1,320,584 |
1,273,235 |
27,391 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,922 |
1 |
2 |
2.6 |
20.6 |
150,101 |
11,058 |
5,228 |
7,532 |
71,611 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,521 |
14,781 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,886 |
1 |
2 |
2.6 |
24.2 |
139,754 |
8,027 |
6,686 |
6,337 |
70,286 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,329 |
64,537 |
42,747 |
4,572 |
54,526 |
57,231 |
270 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,857 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
823 |
1 |
2 |
2.6 |
7.7 |
154,744 |
13,070 |
2,822 |
9,746 |
78,326 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,895 |
1 |
65 |
14.9 |
27.4 |
1,772,726 |
49,112 |
28,532 |
86,399 |
908,078 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,813 |
3 |
66 |
21.3 |
30.0 |
2,703,495 |
42,748 |
65,815 |
109,678 |
1,320,584 |
1,273,233 |
27,391 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,924 |
1 |
2 |
2.6 |
20.6 |
150,101 |
10,996 |
5,166 |
7,534 |
71,611 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,523 |
14,781 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,878 |
1 |
2 |
2.6 |
24.4 |
139,754 |
7,965 |
6,624 |
6,339 |
70,286 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,328 |
64,475 |
42,685 |
4,573 |
54,526 |
57,229 |
270 |
3 |
85,370 |
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 |
20 |
7 |
14 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
464 |
428 |
41 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
13 |
10 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
22 |
15 |
7 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
709 |
498 |
243 |
2.9 |
bash |
9 |
no-host |
bin-true |
553 |
429 |
132 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,316 |
1,561 |
1,029 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
834 |
589 |
260 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
823 |
582 |
255 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,563 |
9,334 |
6,632 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,692 |
9,551 |
6,573 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,737 |
18,077 |
13,608 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,768 |
9,271 |
6,769 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,895 |
9,249 |
6,748 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,894 |
1,657 |
1,277 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,829 |
1,639 |
1,209 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,769 |
2,298 |
1,690 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,922 |
1,715 |
1,246 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,924 |
1,687 |
1,273 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
34 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
44 |
34 |
10 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
202 |
145 |
61 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
22 |
28 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
30 |
20 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,462 |
9,124 |
5,821 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,410 |
9,221 |
6,671 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,530 |
21,447 |
12,220 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,913 |
8,785 |
6,313 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,813 |
8,894 |
6,111 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,891 |
1,116 |
784 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,905 |
1,107 |
799 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,524 |
1,544 |
1,024 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,886 |
1,098 |
792 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,878 |
1,098 |
780 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
52 |
39 |
13 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
osh-native-souffle |
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,568 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
8 |
dash |
23 |
no-host |
abuild-print-help |
23,419 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,145 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,114 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
108,346 |
0 |
0 |
0 |
8 |
0 |
1,989 |
114 |
bash |
9 |
no-host |
bin-true |
66,359 |
0 |
0 |
0 |
8 |
0 |
1,979 |
90 |
dash |
17 |
no-host |
bin-true |
776,776 |
0 |
0 |
0 |
8 |
0 |
1,996 |
118 |
osh-cpython |
25 |
no-host |
bin-true |
126,831 |
0 |
0 |
0 |
16 |
0 |
1,987 |
122 |
osh-native |
33 |
no-host |
bin-true |
126,858 |
0 |
0 |
0 |
16 |
0 |
1,984 |
187 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,218,721 |
0 |
0 |
0 |
32,928 |
0 |
14,489 |
1,230 |
bash |
10 |
no-host |
configure.cpython |
2,244,651 |
1 |
0 |
0 |
32,992 |
0 |
14,577 |
1,014 |
dash |
18 |
no-host |
configure.cpython |
6,220,242 |
0 |
0 |
0 |
27,512 |
0 |
13,275 |
1,209 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,142 |
0 |
0 |
0 |
27,520 |
0 |
13,222 |
1,067 |
osh-native |
34 |
no-host |
configure.cpython |
2,216,789 |
0 |
0 |
0 |
27,520 |
0 |
13,319 |
1,129 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
409,951 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
176 |
bash |
12 |
no-host |
configure.ocaml |
391,453 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
151 |
dash |
20 |
no-host |
configure.ocaml |
645,138 |
1 |
0 |
0 |
5,112 |
0 |
1,864 |
185 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,568 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
164 |
osh-native |
36 |
no-host |
configure.ocaml |
412,776 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
183 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,542 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,472 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,775 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,975 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,966 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,098,517 |
1 |
0 |
0 |
42,400 |
0 |
18,630 |
1,028 |
bash |
11 |
no-host |
configure.util-linux |
2,266,192 |
1 |
0 |
0 |
42,584 |
0 |
17,446 |
1,163 |
dash |
19 |
no-host |
configure.util-linux |
5,373,867 |
9 |
0 |
0 |
39,144 |
0 |
16,931 |
1,274 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,003,869 |
0 |
0 |
0 |
39,128 |
0 |
16,919 |
990 |
osh-native |
35 |
no-host |
configure.util-linux |
1,999,224 |
0 |
0 |
0 |
39,136 |
0 |
16,974 |
1,007 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,189 |
0 |
0 |
0 |
4,120 |
0 |
870 |
95 |
bash |
14 |
no-host |
configure.yash |
244,980 |
0 |
0 |
0 |
3,720 |
0 |
868 |
191 |
dash |
22 |
no-host |
configure.yash |
386,929 |
0 |
0 |
0 |
3,728 |
0 |
855 |
91 |
osh-cpython |
30 |
no-host |
configure.yash |
258,519 |
0 |
0 |
0 |
3,736 |
0 |
850 |
88 |
osh-native |
38 |
no-host |
configure.yash |
257,759 |
1 |
0 |
0 |
3,736 |
0 |
847 |
93 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,743 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host