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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
9 |
449 |
22 |
23.21 |
1.15 |
bin-true |
no-host |
683 |
547 |
2,244 |
821 |
3.29 |
1.20 |
configure.cpython |
no-host |
14,984 |
15,028 |
28,616 |
15,169 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,797 |
3,723 |
4,610 |
3,813 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
196 |
49 |
4.06 |
1.02 |
configure.util-linux |
no-host |
13,995 |
14,798 |
31,080 |
14,276 |
2.22 |
1.02 |
configure.yash |
no-host |
1,808 |
1,751 |
2,443 |
1,824 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
33.57 |
1.98 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,501 |
1,109 |
22,913 |
3,162 |
9.16 |
1.26 |
bin-true |
no-host |
103,282 |
65,395 |
751,555 |
125,312 |
7.28 |
1.21 |
configure.cpython |
no-host |
2,220,773 |
2,246,807 |
6,113,412 |
2,223,197 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,745 |
391,628 |
638,856 |
413,438 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,536 |
5,484 |
23,265 |
6,973 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,106,251 |
2,258,775 |
5,295,018 |
1,993,145 |
2.51 |
0.95 |
configure.yash |
no-host |
255,422 |
244,604 |
384,301 |
258,699 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
81 |
3,687 |
347 |
24.58 |
2.31 |
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.2 |
3,736 |
3,736 |
0 |
681 |
1,886 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
821 |
1 |
2 |
2.6 |
8.0 |
154,701 |
13,053 |
2,806 |
9,731 |
78,355 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,169 |
1 |
65 |
15.0 |
27.4 |
1,772,677 |
49,204 |
28,515 |
86,378 |
908,107 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,276 |
3 |
63 |
21.3 |
29.9 |
2,703,413 |
42,779 |
65,820 |
109,640 |
1,320,605 |
1,273,168 |
49,081 |
41 |
131,640 |
1 |
configure.ocaml |
no-host |
3,813 |
1 |
2 |
2.6 |
20.7 |
150,047 |
11,053 |
5,146 |
7,510 |
71,643 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,536 |
30,536 |
0 |
1,501 |
14,810 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,824 |
1 |
2 |
2.6 |
24.4 |
139,704 |
7,971 |
6,607 |
6,317 |
70,315 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,279 |
64,462 |
42,670 |
4,552 |
54,555 |
57,172 |
478 |
3 |
85,340 |
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 |
19 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
449 |
422 |
31 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
683 |
499 |
216 |
2.8 |
bash |
9 |
no-host |
bin-true |
547 |
422 |
136 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,244 |
1,428 |
1,076 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
821 |
581 |
253 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,984 |
9,010 |
6,381 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,028 |
9,256 |
6,210 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,616 |
17,789 |
12,722 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,169 |
9,004 |
6,437 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,797 |
1,627 |
1,207 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,723 |
1,538 |
1,206 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,610 |
2,205 |
1,616 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,813 |
1,636 |
1,218 |
20.7 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
34 |
15 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
21 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
136 |
64 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,995 |
8,764 |
5,717 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,798 |
9,173 |
6,125 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,080 |
20,827 |
11,374 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,276 |
8,701 |
5,778 |
29.9 |
osh-native |
6 |
no-host |
configure.yash |
1,808 |
1,110 |
706 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,751 |
1,073 |
682 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,443 |
1,480 |
1,006 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,824 |
1,029 |
797 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
25 |
24 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.2 |
osh-native |
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,501 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,913 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,162 |
0 |
0 |
0 |
16 |
0 |
39 |
6 |
osh-native |
1 |
no-host |
bin-true |
103,282 |
0 |
0 |
0 |
8 |
0 |
1,990 |
68 |
bash |
9 |
no-host |
bin-true |
65,395 |
0 |
0 |
0 |
8 |
0 |
1,989 |
32 |
dash |
17 |
no-host |
bin-true |
751,555 |
0 |
0 |
0 |
8 |
0 |
2,001 |
327 |
osh-cpython |
25 |
no-host |
bin-true |
125,312 |
0 |
0 |
0 |
16 |
0 |
1,995 |
211 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,773 |
0 |
0 |
0 |
32,928 |
0 |
14,427 |
1,110 |
bash |
10 |
no-host |
configure.cpython |
2,246,807 |
0 |
0 |
0 |
32,992 |
0 |
14,265 |
1,032 |
dash |
18 |
no-host |
configure.cpython |
6,113,412 |
0 |
0 |
0 |
27,512 |
0 |
13,277 |
1,147 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,197 |
0 |
0 |
0 |
27,520 |
0 |
13,139 |
1,167 |
osh-native |
4 |
no-host |
configure.ocaml |
410,745 |
0 |
0 |
0 |
5,120 |
0 |
1,961 |
185 |
bash |
12 |
no-host |
configure.ocaml |
391,628 |
0 |
0 |
0 |
5,112 |
0 |
1,874 |
181 |
dash |
20 |
no-host |
configure.ocaml |
638,856 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
196 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,438 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
178 |
osh-native |
5 |
no-host |
configure.tcc |
6,536 |
0 |
0 |
0 |
104 |
0 |
49 |
13 |
bash |
13 |
no-host |
configure.tcc |
5,484 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,265 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,973 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,106,251 |
2 |
0 |
0 |
42,408 |
0 |
18,584 |
1,136 |
bash |
11 |
no-host |
configure.util-linux |
2,258,775 |
1 |
0 |
0 |
42,592 |
0 |
17,385 |
1,011 |
dash |
19 |
no-host |
configure.util-linux |
5,295,018 |
11 |
0 |
0 |
39,112 |
0 |
17,037 |
1,440 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,145 |
1 |
0 |
0 |
39,120 |
0 |
16,948 |
1,022 |
osh-native |
6 |
no-host |
configure.yash |
255,422 |
0 |
0 |
0 |
4,120 |
0 |
871 |
93 |
bash |
14 |
no-host |
configure.yash |
244,604 |
0 |
0 |
0 |
3,720 |
0 |
868 |
57 |
dash |
22 |
no-host |
configure.yash |
384,301 |
0 |
0 |
0 |
3,728 |
0 |
856 |
95 |
osh-cpython |
30 |
no-host |
configure.yash |
258,699 |
0 |
0 |
0 |
3,736 |
0 |
851 |
93 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,687 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host