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 |
10 |
464 |
23 |
24.37 |
1.20 |
bin-true |
no-host |
687 |
545 |
2,244 |
830 |
3.27 |
1.21 |
configure.cpython |
no-host |
15,236 |
15,439 |
29,253 |
15,799 |
1.92 |
1.04 |
configure.ocaml |
no-host |
3,900 |
3,868 |
4,766 |
3,910 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
43 |
195 |
49 |
4.04 |
1.02 |
configure.util-linux |
no-host |
14,184 |
15,203 |
32,384 |
15,044 |
2.28 |
1.06 |
configure.yash |
no-host |
1,866 |
1,829 |
2,515 |
1,883 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
31.48 |
1.83 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,518 |
1,085 |
23,072 |
3,173 |
9.16 |
1.26 |
bin-true |
no-host |
109,410 |
66,433 |
744,973 |
129,528 |
6.81 |
1.18 |
configure.cpython |
no-host |
2,220,410 |
2,243,070 |
6,052,514 |
2,254,957 |
2.73 |
1.02 |
configure.ocaml |
no-host |
410,751 |
390,823 |
634,278 |
413,422 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,526 |
5,470 |
22,947 |
6,972 |
3.52 |
1.07 |
configure.util-linux |
no-host |
2,108,514 |
2,256,250 |
5,296,380 |
2,017,304 |
2.51 |
0.96 |
configure.yash |
no-host |
256,558 |
244,507 |
383,054 |
258,385 |
1.49 |
1.01 |
hello-world |
no-host |
153 |
84 |
3,622 |
339 |
23.67 |
2.22 |
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,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
830 |
1 |
2 |
2.7 |
7.9 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,799 |
1 |
63 |
15.9 |
27.4 |
1,765,934 |
39,052 |
24,503 |
101,923 |
901,347 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,044 |
3 |
63 |
22.2 |
30.0 |
2,695,085 |
29,056 |
65,754 |
126,121 |
1,312,366 |
1,256,598 |
49,081 |
41 |
131,508 |
1 |
configure.ocaml |
no-host |
3,910 |
1 |
2 |
2.7 |
20.6 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,883 |
1 |
2 |
2.6 |
24.4 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,013 |
64,388 |
42,627 |
4,601 |
54,295 |
57,117 |
478 |
3 |
85,254 |
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 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
464 |
413 |
54 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
15 |
9 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
687 |
510 |
210 |
3.0 |
bash |
9 |
no-host |
bin-true |
545 |
425 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,244 |
1,445 |
1,047 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
830 |
585 |
258 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,236 |
9,186 |
6,452 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,439 |
9,234 |
6,620 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,253 |
17,869 |
13,237 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,799 |
9,343 |
6,723 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,900 |
1,687 |
1,223 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,868 |
1,795 |
1,089 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,766 |
2,394 |
1,577 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,910 |
1,669 |
1,279 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
33 |
10 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
129 |
69 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
21 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,184 |
8,887 |
5,776 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,203 |
9,430 |
6,245 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,384 |
21,509 |
11,980 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,044 |
8,904 |
6,314 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,866 |
1,145 |
730 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,829 |
1,024 |
807 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,515 |
1,542 |
1,017 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,883 |
1,094 |
793 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
27 |
22 |
17.0 |
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,518 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,085 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,072 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,173 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
109,410 |
0 |
0 |
0 |
8 |
0 |
1,991 |
63 |
bash |
9 |
no-host |
bin-true |
66,433 |
0 |
0 |
0 |
8 |
0 |
1,990 |
41 |
dash |
17 |
no-host |
bin-true |
744,973 |
0 |
0 |
0 |
8 |
0 |
2,003 |
324 |
osh-cpython |
25 |
no-host |
bin-true |
129,528 |
0 |
0 |
0 |
16 |
0 |
1,991 |
90 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,410 |
0 |
0 |
0 |
32,928 |
0 |
14,540 |
1,160 |
bash |
10 |
no-host |
configure.cpython |
2,243,070 |
0 |
0 |
0 |
32,992 |
0 |
14,734 |
1,072 |
dash |
18 |
no-host |
configure.cpython |
6,052,514 |
0 |
0 |
0 |
27,512 |
0 |
13,306 |
1,249 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,254,957 |
0 |
0 |
0 |
27,520 |
0 |
13,419 |
954 |
osh-native |
4 |
no-host |
configure.ocaml |
410,751 |
0 |
0 |
0 |
5,120 |
0 |
1,970 |
171 |
bash |
12 |
no-host |
configure.ocaml |
390,823 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
202 |
dash |
20 |
no-host |
configure.ocaml |
634,278 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
178 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,422 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
182 |
osh-native |
5 |
no-host |
configure.tcc |
6,526 |
0 |
0 |
0 |
104 |
0 |
48 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
22,947 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,972 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,108,514 |
0 |
0 |
0 |
42,408 |
0 |
18,630 |
1,027 |
bash |
11 |
no-host |
configure.util-linux |
2,256,250 |
0 |
0 |
0 |
42,592 |
0 |
17,438 |
1,174 |
dash |
19 |
no-host |
configure.util-linux |
5,296,380 |
12 |
0 |
0 |
39,136 |
0 |
17,026 |
1,229 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,304 |
6 |
0 |
0 |
39,120 |
0 |
17,101 |
945 |
osh-native |
6 |
no-host |
configure.yash |
256,558 |
0 |
0 |
0 |
4,120 |
0 |
867 |
86 |
bash |
14 |
no-host |
configure.yash |
244,507 |
0 |
0 |
0 |
3,720 |
0 |
871 |
78 |
dash |
22 |
no-host |
configure.yash |
383,054 |
0 |
0 |
0 |
3,728 |
0 |
859 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
258,385 |
0 |
0 |
0 |
3,736 |
0 |
854 |
77 |
osh-native |
0 |
no-host |
hello-world |
153 |
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 |
3,622 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
339 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host