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 |
20 |
10 |
483 |
23 |
23.98 |
1.13 |
bin-true |
no-host |
684 |
557 |
2,287 |
836 |
3.35 |
1.22 |
configure.cpython |
no-host |
15,869 |
15,725 |
30,298 |
16,030 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,945 |
3,871 |
4,823 |
3,952 |
1.22 |
1.00 |
configure.tcc |
no-host |
50 |
43 |
202 |
50 |
4.06 |
1.00 |
configure.util-linux |
no-host |
14,616 |
15,520 |
32,645 |
15,061 |
2.23 |
1.03 |
configure.yash |
no-host |
1,909 |
1,830 |
2,555 |
1,907 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
53 |
3 |
32.87 |
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,127 |
22,865 |
3,182 |
9.01 |
1.25 |
bin-true |
no-host |
103,345 |
66,442 |
754,262 |
127,327 |
7.30 |
1.23 |
configure.cpython |
no-host |
2,221,468 |
2,248,439 |
6,122,099 |
2,222,943 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,389 |
390,648 |
636,873 |
413,882 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,558 |
5,456 |
23,240 |
7,019 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,108,195 |
2,269,523 |
5,299,704 |
1,999,726 |
2.51 |
0.95 |
configure.yash |
no-host |
256,491 |
244,212 |
383,831 |
257,984 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
84 |
3,690 |
351 |
24.60 |
2.34 |
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.3 |
3,752 |
3,752 |
0 |
681 |
1,894 |
1,177 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
836 |
1 |
2 |
2.6 |
7.9 |
154,717 |
13,069 |
2,822 |
9,731 |
78,363 |
66,623 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,030 |
1 |
66 |
15.0 |
27.3 |
1,772,693 |
49,814 |
28,531 |
86,378 |
908,115 |
778,200 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,061 |
3 |
66 |
21.3 |
30.3 |
2,703,429 |
44,790 |
65,816 |
109,640 |
1,320,613 |
1,273,176 |
49,081 |
41 |
131,632 |
1 |
configure.ocaml |
no-host |
3,952 |
1 |
2 |
2.6 |
20.6 |
150,063 |
11,069 |
5,162 |
7,510 |
71,651 |
70,902 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.4 |
30,552 |
30,552 |
0 |
1,501 |
14,818 |
14,233 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,907 |
1 |
2 |
2.6 |
24.4 |
139,720 |
7,987 |
6,623 |
6,317 |
70,323 |
63,080 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,295 |
64,478 |
42,686 |
4,552 |
54,563 |
57,180 |
478 |
3 |
85,372 |
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 |
20 |
10 |
10 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
483 |
412 |
74 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
19 |
4 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
684 |
511 |
203 |
2.9 |
bash |
9 |
no-host |
bin-true |
557 |
424 |
140 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,287 |
1,473 |
1,087 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
836 |
579 |
272 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,869 |
9,429 |
6,820 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,725 |
9,429 |
6,710 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
30,298 |
18,482 |
13,764 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,030 |
9,387 |
6,853 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,945 |
1,684 |
1,293 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,871 |
1,671 |
1,218 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,823 |
2,265 |
1,776 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,952 |
1,655 |
1,334 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
50 |
27 |
23 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
43 |
27 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
202 |
137 |
69 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
25 |
25 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,616 |
9,026 |
6,066 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,520 |
9,418 |
6,593 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,645 |
21,958 |
11,805 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,061 |
9,041 |
6,174 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,909 |
1,158 |
756 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,830 |
1,107 |
727 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,555 |
1,555 |
1,043 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,907 |
1,102 |
809 |
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 |
53 |
39 |
14 |
17.4 |
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,539 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,127 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
22,865 |
0 |
0 |
0 |
8 |
0 |
45 |
17 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,182 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
103,345 |
0 |
0 |
0 |
8 |
0 |
1,983 |
42 |
bash |
9 |
no-host |
bin-true |
66,442 |
0 |
0 |
0 |
8 |
0 |
1,986 |
50 |
dash |
17 |
no-host |
bin-true |
754,262 |
0 |
0 |
0 |
8 |
0 |
1,998 |
236 |
osh-cpython |
25 |
no-host |
bin-true |
127,327 |
0 |
0 |
0 |
16 |
0 |
1,985 |
60 |
osh-native |
2 |
no-host |
configure.cpython |
2,221,468 |
1 |
0 |
0 |
32,928 |
0 |
14,495 |
1,198 |
bash |
10 |
no-host |
configure.cpython |
2,248,439 |
0 |
0 |
0 |
32,992 |
0 |
14,661 |
1,369 |
dash |
18 |
no-host |
configure.cpython |
6,122,099 |
1 |
0 |
0 |
27,512 |
0 |
13,251 |
1,393 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,222,943 |
0 |
0 |
0 |
27,520 |
0 |
12,919 |
1,203 |
osh-native |
4 |
no-host |
configure.ocaml |
410,389 |
0 |
0 |
0 |
5,120 |
0 |
1,959 |
224 |
bash |
12 |
no-host |
configure.ocaml |
390,648 |
0 |
0 |
0 |
5,112 |
0 |
1,880 |
146 |
dash |
20 |
no-host |
configure.ocaml |
636,873 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
159 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,882 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
171 |
osh-native |
5 |
no-host |
configure.tcc |
6,558 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,456 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,240 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,019 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,108,195 |
0 |
0 |
0 |
42,408 |
0 |
18,761 |
1,220 |
bash |
11 |
no-host |
configure.util-linux |
2,269,523 |
1 |
0 |
0 |
42,592 |
0 |
17,463 |
1,134 |
dash |
19 |
no-host |
configure.util-linux |
5,299,704 |
5 |
0 |
0 |
39,144 |
0 |
16,995 |
1,381 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,726 |
0 |
0 |
0 |
39,128 |
0 |
16,977 |
1,085 |
osh-native |
6 |
no-host |
configure.yash |
256,491 |
0 |
0 |
0 |
4,120 |
0 |
869 |
100 |
bash |
14 |
no-host |
configure.yash |
244,212 |
0 |
0 |
0 |
3,720 |
0 |
871 |
71 |
dash |
22 |
no-host |
configure.yash |
383,831 |
0 |
0 |
0 |
3,728 |
0 |
850 |
115 |
osh-cpython |
30 |
no-host |
configure.yash |
257,984 |
0 |
0 |
0 |
3,736 |
0 |
845 |
74 |
osh-native |
0 |
no-host |
hello-world |
150 |
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,690 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host