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 |
455 |
23 |
23.94 |
1.19 |
bin-true |
no-host |
676 |
539 |
2,205 |
806 |
3.26 |
1.19 |
configure.cpython |
no-host |
14,808 |
14,924 |
28,181 |
15,051 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,792 |
3,719 |
4,563 |
3,781 |
1.20 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
191 |
49 |
4.02 |
1.02 |
configure.util-linux |
no-host |
13,850 |
14,763 |
30,688 |
14,184 |
2.22 |
1.02 |
configure.yash |
no-host |
1,806 |
1,749 |
2,394 |
1,814 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
31.00 |
1.81 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,539 |
1,101 |
23,685 |
3,178 |
9.33 |
1.25 |
bin-true |
no-host |
108,378 |
66,492 |
742,687 |
125,100 |
6.85 |
1.15 |
configure.cpython |
no-host |
2,219,956 |
2,247,306 |
6,128,284 |
2,236,091 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,551 |
391,089 |
638,805 |
413,732 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,534 |
5,491 |
23,171 |
6,970 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,098,798 |
2,265,946 |
5,302,489 |
2,008,902 |
2.53 |
0.96 |
configure.yash |
no-host |
256,772 |
244,097 |
384,690 |
258,993 |
1.50 |
1.01 |
hello-world |
no-host |
155 |
84 |
3,665 |
347 |
23.65 |
2.24 |
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,722 |
3,722 |
0 |
684 |
1,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
806 |
1 |
2 |
2.7 |
7.9 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,051 |
1 |
58 |
15.8 |
27.3 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,049 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,184 |
2 |
58 |
22.2 |
30.0 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,493 |
1,256,653 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,781 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,627 |
69,800 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,522 |
30,522 |
0 |
1,599 |
14,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,814 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,299 |
61,833 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.9 |
116,265 |
64,454 |
42,662 |
4,610 |
54,542 |
57,113 |
478 |
3 |
85,324 |
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.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
411 |
48 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
22 |
1 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
676 |
508 |
198 |
2.9 |
bash |
9 |
no-host |
bin-true |
539 |
416 |
132 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,205 |
1,463 |
996 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
806 |
569 |
251 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,808 |
8,785 |
6,418 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,924 |
9,070 |
6,276 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,181 |
17,259 |
12,735 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,051 |
8,954 |
6,363 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,792 |
1,623 |
1,205 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,719 |
1,638 |
1,099 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,563 |
2,123 |
1,642 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,781 |
1,496 |
1,326 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
26 |
15 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
149 |
45 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
13,850 |
8,780 |
5,533 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,763 |
9,096 |
6,163 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,688 |
20,568 |
11,179 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,184 |
8,524 |
5,861 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,806 |
1,077 |
738 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,749 |
1,044 |
707 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,394 |
1,469 |
968 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,814 |
1,070 |
747 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
47 |
34 |
13 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,539 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,101 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,685 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,178 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
108,378 |
0 |
0 |
0 |
8 |
0 |
1,989 |
78 |
bash |
9 |
no-host |
bin-true |
66,492 |
0 |
0 |
0 |
8 |
0 |
1,979 |
98 |
dash |
17 |
no-host |
bin-true |
742,687 |
0 |
0 |
0 |
8 |
0 |
1,995 |
194 |
osh-cpython |
25 |
no-host |
bin-true |
125,100 |
0 |
0 |
0 |
16 |
0 |
1,989 |
97 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,956 |
0 |
0 |
0 |
32,928 |
0 |
14,545 |
1,074 |
bash |
10 |
no-host |
configure.cpython |
2,247,306 |
0 |
0 |
0 |
32,992 |
0 |
14,575 |
1,032 |
dash |
18 |
no-host |
configure.cpython |
6,128,284 |
0 |
0 |
0 |
27,512 |
0 |
13,241 |
1,157 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,091 |
0 |
0 |
0 |
27,520 |
0 |
13,313 |
987 |
osh-native |
4 |
no-host |
configure.ocaml |
410,551 |
0 |
0 |
0 |
5,120 |
0 |
1,957 |
182 |
bash |
12 |
no-host |
configure.ocaml |
391,089 |
0 |
0 |
0 |
5,112 |
0 |
1,943 |
158 |
dash |
20 |
no-host |
configure.ocaml |
638,805 |
1 |
0 |
0 |
5,112 |
0 |
1,863 |
178 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,732 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,534 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,491 |
0 |
0 |
0 |
96 |
0 |
46 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,171 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,970 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,798 |
2 |
0 |
0 |
42,400 |
0 |
18,566 |
1,055 |
bash |
11 |
no-host |
configure.util-linux |
2,265,946 |
0 |
0 |
0 |
42,584 |
0 |
17,511 |
1,126 |
dash |
19 |
no-host |
configure.util-linux |
5,302,489 |
10 |
0 |
0 |
39,120 |
0 |
17,042 |
1,297 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,008,902 |
3 |
0 |
0 |
39,120 |
0 |
17,100 |
999 |
osh-native |
6 |
no-host |
configure.yash |
256,772 |
0 |
0 |
0 |
4,120 |
0 |
866 |
79 |
bash |
14 |
no-host |
configure.yash |
244,097 |
0 |
0 |
0 |
3,720 |
0 |
868 |
88 |
dash |
22 |
no-host |
configure.yash |
384,690 |
0 |
0 |
0 |
3,728 |
0 |
856 |
75 |
osh-cpython |
30 |
no-host |
configure.yash |
258,993 |
0 |
0 |
0 |
3,736 |
0 |
851 |
81 |
osh-native |
0 |
no-host |
hello-world |
155 |
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,665 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host