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 |
465 |
22 |
24.11 |
1.16 |
bin-true |
no-host |
682 |
546 |
2,289 |
824 |
3.36 |
1.21 |
configure.cpython |
no-host |
15,534 |
15,611 |
29,667 |
15,736 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,887 |
3,819 |
4,788 |
3,926 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
199 |
50 |
4.17 |
1.05 |
configure.util-linux |
no-host |
14,364 |
15,320 |
32,219 |
14,887 |
2.24 |
1.04 |
configure.yash |
no-host |
1,878 |
1,833 |
2,519 |
1,887 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
32.57 |
1.87 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,558 |
1,138 |
22,958 |
3,159 |
8.97 |
1.23 |
bin-true |
no-host |
104,367 |
65,391 |
757,778 |
128,139 |
7.26 |
1.23 |
configure.cpython |
no-host |
2,216,818 |
2,246,072 |
6,185,311 |
2,221,112 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,451 |
390,456 |
640,602 |
413,722 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,536 |
5,485 |
23,320 |
6,987 |
3.57 |
1.07 |
configure.util-linux |
no-host |
2,103,703 |
2,261,422 |
5,328,222 |
1,995,310 |
2.53 |
0.95 |
configure.yash |
no-host |
256,134 |
245,179 |
384,467 |
257,730 |
1.50 |
1.01 |
hello-world |
no-host |
150 |
82 |
3,690 |
347 |
24.60 |
2.31 |
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,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
824 |
1 |
2 |
2.6 |
7.9 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,736 |
1 |
64 |
15.0 |
27.4 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,887 |
3 |
65 |
21.3 |
30.1 |
2,703,535 |
42,745 |
65,812 |
109,673 |
1,320,647 |
1,273,215 |
27,394 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,926 |
1 |
2 |
2.6 |
20.7 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,887 |
1 |
2 |
2.6 |
24.4 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.9 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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 |
15 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
465 |
431 |
38 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
682 |
492 |
219 |
2.9 |
bash |
9 |
no-host |
bin-true |
546 |
415 |
141 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,289 |
1,498 |
1,062 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
577 |
260 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,534 |
9,376 |
6,535 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,611 |
9,488 |
6,543 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,667 |
17,919 |
13,705 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,736 |
9,180 |
6,833 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,887 |
1,667 |
1,262 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,819 |
1,562 |
1,276 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,788 |
2,324 |
1,667 |
20.7 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,926 |
1,669 |
1,297 |
20.7 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
28 |
20 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
20 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
199 |
135 |
67 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
22 |
29 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,364 |
8,998 |
5,835 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,320 |
9,305 |
6,504 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,219 |
21,394 |
11,954 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,887 |
8,884 |
6,179 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,878 |
1,043 |
843 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,833 |
1,078 |
758 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,519 |
1,496 |
1,068 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,887 |
1,089 |
802 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
51 |
39 |
12 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,558 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,138 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,958 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,159 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native |
1 |
no-host |
bin-true |
104,367 |
0 |
0 |
0 |
8 |
0 |
1,991 |
51 |
bash |
9 |
no-host |
bin-true |
65,391 |
0 |
0 |
0 |
8 |
0 |
1,995 |
44 |
dash |
17 |
no-host |
bin-true |
757,778 |
0 |
0 |
0 |
8 |
0 |
2,001 |
282 |
osh-cpython |
25 |
no-host |
bin-true |
128,139 |
0 |
0 |
0 |
16 |
0 |
1,984 |
60 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,818 |
1 |
0 |
0 |
32,928 |
0 |
14,483 |
1,137 |
bash |
10 |
no-host |
configure.cpython |
2,246,072 |
0 |
0 |
0 |
32,992 |
0 |
14,694 |
1,415 |
dash |
18 |
no-host |
configure.cpython |
6,185,311 |
0 |
0 |
0 |
27,512 |
0 |
13,250 |
1,333 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,112 |
0 |
0 |
0 |
27,520 |
0 |
13,259 |
899 |
osh-native |
4 |
no-host |
configure.ocaml |
410,451 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
195 |
bash |
12 |
no-host |
configure.ocaml |
390,456 |
0 |
0 |
0 |
5,112 |
0 |
1,934 |
130 |
dash |
20 |
no-host |
configure.ocaml |
640,602 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
164 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,722 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
153 |
osh-native |
5 |
no-host |
configure.tcc |
6,536 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,485 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,320 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,987 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,703 |
1 |
0 |
0 |
42,400 |
0 |
18,714 |
1,133 |
bash |
11 |
no-host |
configure.util-linux |
2,261,422 |
1 |
0 |
0 |
42,584 |
0 |
17,429 |
1,140 |
dash |
19 |
no-host |
configure.util-linux |
5,328,222 |
6 |
0 |
0 |
39,136 |
0 |
16,918 |
1,409 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,995,310 |
0 |
0 |
0 |
39,136 |
0 |
16,981 |
1,277 |
osh-native |
6 |
no-host |
configure.yash |
256,134 |
0 |
0 |
0 |
4,120 |
0 |
875 |
82 |
bash |
14 |
no-host |
configure.yash |
245,179 |
0 |
0 |
0 |
3,720 |
0 |
868 |
76 |
dash |
22 |
no-host |
configure.yash |
384,467 |
0 |
0 |
0 |
3,728 |
0 |
853 |
107 |
osh-cpython |
30 |
no-host |
configure.yash |
257,730 |
0 |
0 |
0 |
3,736 |
0 |
852 |
79 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
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 |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host