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 |
458 |
24 |
24.00 |
1.28 |
bin-true |
no-host |
708 |
544 |
2,226 |
818 |
3.15 |
1.16 |
configure.cpython |
no-host |
15,691 |
15,789 |
30,064 |
16,203 |
1.92 |
1.03 |
configure.ocaml |
no-host |
3,884 |
3,794 |
4,997 |
3,961 |
1.29 |
1.02 |
configure.tcc |
no-host |
50 |
44 |
211 |
49 |
4.24 |
0.98 |
configure.util-linux |
no-host |
14,695 |
16,062 |
32,573 |
14,747 |
2.22 |
1.00 |
configure.yash |
no-host |
1,827 |
1,809 |
2,684 |
1,844 |
1.47 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
30.08 |
1.92 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,514 |
1,105 |
22,759 |
3,201 |
9.05 |
1.27 |
bin-true |
no-host |
106,375 |
65,399 |
728,491 |
127,224 |
6.85 |
1.20 |
configure.cpython |
no-host |
2,217,737 |
2,248,515 |
6,070,092 |
2,235,931 |
2.74 |
1.01 |
configure.ocaml |
no-host |
410,475 |
390,961 |
633,651 |
413,824 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,556 |
5,470 |
22,948 |
6,956 |
3.50 |
1.06 |
configure.util-linux |
no-host |
2,098,873 |
2,258,606 |
5,276,462 |
2,008,896 |
2.51 |
0.96 |
configure.yash |
no-host |
256,060 |
244,026 |
383,363 |
258,820 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,653 |
340 |
23.88 |
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.3 |
3,710 |
3,710 |
0 |
681 |
1,865 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.7 |
7.9 |
154,656 |
12,889 |
2,791 |
11,730 |
78,317 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,203 |
3 |
79 |
15.9 |
27.4 |
1,769,350 |
44,560 |
28,499 |
101,923 |
904,763 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,747 |
3 |
68 |
22.2 |
30.0 |
2,698,087 |
29,091 |
65,783 |
126,121 |
1,315,368 |
1,256,598 |
49,081 |
41 |
131,566 |
1 |
configure.ocaml |
no-host |
3,961 |
1 |
2 |
2.7 |
20.6 |
149,273 |
11,026 |
5,129 |
8,602 |
71,056 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,424 |
30,424 |
0 |
1,599 |
14,700 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,844 |
1 |
2 |
2.6 |
24.2 |
139,384 |
7,140 |
6,531 |
7,554 |
69,998 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
24 |
1 |
2 |
2.8 |
8.9 |
116,050 |
64,417 |
42,656 |
4,601 |
54,332 |
57,117 |
478 |
3 |
85,312 |
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 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
458 |
423 |
38 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
14 |
11 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
708 |
498 |
243 |
2.9 |
bash |
9 |
no-host |
bin-true |
544 |
413 |
139 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,226 |
1,408 |
1,075 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
559 |
275 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,691 |
9,380 |
6,735 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,789 |
9,524 |
6,701 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
30,064 |
18,190 |
13,770 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,203 |
9,418 |
7,068 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,884 |
1,697 |
1,221 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,794 |
1,657 |
1,156 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,997 |
2,388 |
1,832 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,961 |
1,696 |
1,302 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
27 |
23 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
44 |
27 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
211 |
143 |
71 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,695 |
9,142 |
6,041 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
16,062 |
9,640 |
6,937 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,573 |
21,303 |
12,384 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,747 |
8,991 |
5,950 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,827 |
1,027 |
809 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,809 |
1,020 |
791 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,684 |
1,686 |
1,045 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,844 |
1,074 |
775 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
39 |
8 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,514 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,759 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,201 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
106,375 |
0 |
0 |
0 |
8 |
0 |
1,995 |
60 |
bash |
9 |
no-host |
bin-true |
65,399 |
0 |
0 |
0 |
8 |
0 |
1,992 |
96 |
dash |
17 |
no-host |
bin-true |
728,491 |
0 |
0 |
0 |
8 |
0 |
2,001 |
75 |
osh-cpython |
25 |
no-host |
bin-true |
127,224 |
0 |
0 |
0 |
16 |
0 |
1,989 |
212 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,737 |
0 |
0 |
0 |
32,928 |
0 |
14,493 |
1,144 |
bash |
10 |
no-host |
configure.cpython |
2,248,515 |
0 |
0 |
0 |
32,992 |
0 |
14,620 |
1,223 |
dash |
18 |
no-host |
configure.cpython |
6,070,092 |
3 |
0 |
0 |
27,512 |
0 |
13,241 |
1,185 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,931 |
1 |
0 |
0 |
27,520 |
0 |
13,279 |
1,039 |
osh-native |
4 |
no-host |
configure.ocaml |
410,475 |
0 |
0 |
0 |
5,120 |
0 |
1,958 |
182 |
bash |
12 |
no-host |
configure.ocaml |
390,961 |
0 |
0 |
0 |
5,112 |
0 |
1,939 |
156 |
dash |
20 |
no-host |
configure.ocaml |
633,651 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
253 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,824 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,556 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
22,948 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,956 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,873 |
2 |
0 |
0 |
42,400 |
0 |
18,755 |
1,026 |
bash |
11 |
no-host |
configure.util-linux |
2,258,606 |
0 |
0 |
0 |
42,584 |
0 |
17,396 |
1,186 |
dash |
19 |
no-host |
configure.util-linux |
5,276,462 |
12 |
0 |
0 |
39,112 |
0 |
17,078 |
1,314 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,008,896 |
1 |
0 |
0 |
39,128 |
0 |
17,045 |
1,100 |
osh-native |
6 |
no-host |
configure.yash |
256,060 |
0 |
0 |
0 |
4,120 |
0 |
862 |
84 |
bash |
14 |
no-host |
configure.yash |
244,026 |
0 |
0 |
0 |
3,720 |
0 |
870 |
90 |
dash |
22 |
no-host |
configure.yash |
383,363 |
0 |
0 |
0 |
3,728 |
0 |
859 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
258,820 |
0 |
0 |
0 |
3,736 |
0 |
855 |
76 |
osh-native |
0 |
no-host |
hello-world |
153 |
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,653 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
340 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host