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 |
459 |
24 |
24.29 |
1.28 |
bin-true |
no-host |
689 |
558 |
2,255 |
816 |
3.27 |
1.18 |
configure.cpython |
no-host |
15,081 |
15,167 |
28,739 |
15,325 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,818 |
3,751 |
4,658 |
3,845 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
193 |
50 |
4.05 |
1.05 |
configure.util-linux |
no-host |
14,134 |
14,943 |
31,305 |
14,488 |
2.21 |
1.03 |
configure.yash |
no-host |
1,825 |
1,794 |
2,456 |
1,843 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.51 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,504 |
1,122 |
23,495 |
3,233 |
9.38 |
1.29 |
bin-true |
no-host |
109,276 |
66,461 |
754,859 |
128,279 |
6.91 |
1.17 |
configure.cpython |
no-host |
2,223,889 |
2,243,561 |
6,144,944 |
2,234,038 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,419 |
390,884 |
639,912 |
413,655 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,535 |
5,477 |
23,280 |
7,000 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,097,070 |
2,261,019 |
5,326,707 |
2,017,218 |
2.54 |
0.96 |
configure.yash |
no-host |
256,093 |
245,182 |
384,704 |
259,098 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,684 |
350 |
24.40 |
2.32 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.7 |
8.0 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,325 |
1 |
61 |
15.8 |
27.3 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,488 |
2 |
60 |
22.2 |
30.3 |
2,703,404 |
44,766 |
65,792 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,845 |
1 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,843 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
24 |
1 |
2 |
2.8 |
8.9 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,326 |
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 |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
459 |
400 |
63 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
19 |
5 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
689 |
510 |
208 |
2.9 |
bash |
9 |
no-host |
bin-true |
558 |
423 |
144 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,255 |
1,495 |
1,019 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
584 |
247 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,081 |
9,266 |
6,214 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,167 |
8,995 |
6,581 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,739 |
17,615 |
12,990 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,325 |
9,109 |
6,480 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,818 |
1,624 |
1,232 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,751 |
1,557 |
1,214 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,658 |
2,275 |
1,588 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,845 |
1,691 |
1,194 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
27 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
31 |
11 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
193 |
150 |
46 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
37 |
13 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,134 |
8,998 |
5,610 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,943 |
9,248 |
6,188 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,305 |
20,441 |
11,957 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,488 |
8,672 |
6,008 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,825 |
1,074 |
759 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,794 |
995 |
801 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,456 |
1,509 |
987 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,843 |
1,091 |
756 |
24.4 |
osh-native |
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 |
49 |
33 |
16 |
17.3 |
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,504 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,122 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,495 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,233 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
109,276 |
0 |
0 |
0 |
8 |
0 |
1,992 |
213 |
bash |
9 |
no-host |
bin-true |
66,461 |
0 |
0 |
0 |
8 |
0 |
1,983 |
53 |
dash |
17 |
no-host |
bin-true |
754,859 |
0 |
0 |
0 |
8 |
0 |
1,996 |
212 |
osh-cpython |
25 |
no-host |
bin-true |
128,279 |
0 |
0 |
0 |
16 |
0 |
1,991 |
70 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,889 |
0 |
0 |
0 |
32,928 |
0 |
14,531 |
1,155 |
bash |
10 |
no-host |
configure.cpython |
2,243,561 |
0 |
0 |
0 |
32,992 |
0 |
14,599 |
1,170 |
dash |
18 |
no-host |
configure.cpython |
6,144,944 |
0 |
0 |
0 |
27,512 |
0 |
13,331 |
1,285 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,038 |
0 |
0 |
0 |
27,520 |
0 |
13,305 |
1,161 |
osh-native |
4 |
no-host |
configure.ocaml |
410,419 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
154 |
bash |
12 |
no-host |
configure.ocaml |
390,884 |
0 |
0 |
0 |
5,112 |
0 |
1,901 |
145 |
dash |
20 |
no-host |
configure.ocaml |
639,912 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
215 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,655 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
177 |
osh-native |
5 |
no-host |
configure.tcc |
6,535 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,280 |
0 |
0 |
0 |
96 |
0 |
53 |
17 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,000 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
3 |
no-host |
configure.util-linux |
2,097,070 |
1 |
0 |
0 |
42,400 |
0 |
18,550 |
1,291 |
bash |
11 |
no-host |
configure.util-linux |
2,261,019 |
1 |
0 |
0 |
42,584 |
0 |
17,389 |
1,192 |
dash |
19 |
no-host |
configure.util-linux |
5,326,707 |
9 |
0 |
0 |
39,112 |
0 |
17,076 |
1,289 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,218 |
0 |
0 |
0 |
39,120 |
0 |
17,063 |
1,131 |
osh-native |
6 |
no-host |
configure.yash |
256,093 |
0 |
0 |
0 |
4,120 |
0 |
873 |
82 |
bash |
14 |
no-host |
configure.yash |
245,182 |
0 |
0 |
0 |
3,720 |
0 |
866 |
75 |
dash |
22 |
no-host |
configure.yash |
384,704 |
1 |
0 |
0 |
3,728 |
0 |
860 |
105 |
osh-cpython |
30 |
no-host |
configure.yash |
259,098 |
0 |
0 |
0 |
3,736 |
0 |
851 |
96 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,684 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host