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 |
462 |
22 |
24.23 |
1.15 |
bin-true |
no-host |
679 |
540 |
2,249 |
815 |
3.31 |
1.20 |
configure.cpython |
no-host |
15,059 |
15,139 |
28,705 |
15,361 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,849 |
3,771 |
4,644 |
3,835 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
193 |
49 |
4.01 |
1.01 |
configure.util-linux |
no-host |
14,091 |
14,900 |
31,139 |
14,491 |
2.21 |
1.03 |
configure.yash |
no-host |
1,817 |
1,778 |
2,461 |
1,836 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.75 |
1.94 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,528 |
1,105 |
22,930 |
3,181 |
9.07 |
1.26 |
bin-true |
no-host |
107,327 |
66,399 |
758,856 |
126,213 |
7.07 |
1.18 |
configure.cpython |
no-host |
2,218,143 |
2,243,335 |
6,187,809 |
2,224,640 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,880 |
390,699 |
640,870 |
413,734 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,485 |
23,309 |
6,993 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,110,227 |
2,257,519 |
5,340,081 |
1,993,188 |
2.53 |
0.94 |
configure.yash |
no-host |
256,164 |
244,587 |
385,195 |
258,044 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,693 |
350 |
24.14 |
2.29 |
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,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
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,361 |
1 |
61 |
15.0 |
27.5 |
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,491 |
3 |
60 |
21.3 |
30.3 |
2,703,426 |
42,745 |
65,832 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,835 |
1 |
2 |
2.6 |
20.4 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
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,836 |
1 |
2 |
2.6 |
24.2 |
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 |
9.2 |
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 |
17 |
3 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
462 |
429 |
36 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
9.2 |
osh-native |
1 |
no-host |
bin-true |
679 |
499 |
213 |
2.9 |
bash |
9 |
no-host |
bin-true |
540 |
407 |
143 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,249 |
1,490 |
1,019 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
578 |
253 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,059 |
9,095 |
6,355 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,139 |
9,132 |
6,415 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,705 |
17,643 |
12,906 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,361 |
8,969 |
6,663 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,849 |
1,717 |
1,160 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,771 |
1,539 |
1,248 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,644 |
2,308 |
1,546 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,835 |
1,618 |
1,254 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
21 |
27 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
42 |
20 |
22 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
149 |
47 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
38 |
11 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,091 |
9,045 |
5,520 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,900 |
9,075 |
6,304 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,139 |
20,396 |
11,830 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,491 |
8,723 |
5,967 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,817 |
1,073 |
753 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,778 |
1,085 |
696 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,461 |
1,570 |
935 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,836 |
1,093 |
746 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
33 |
16 |
17.4 |
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,528 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,105 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
22,930 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,181 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,327 |
0 |
0 |
0 |
8 |
0 |
1,999 |
76 |
bash |
9 |
no-host |
bin-true |
66,399 |
0 |
0 |
0 |
8 |
0 |
1,983 |
90 |
dash |
17 |
no-host |
bin-true |
758,856 |
0 |
0 |
0 |
8 |
0 |
2,001 |
105 |
osh-cpython |
25 |
no-host |
bin-true |
126,213 |
0 |
0 |
0 |
16 |
0 |
1,992 |
110 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,143 |
0 |
0 |
0 |
32,928 |
0 |
14,550 |
1,066 |
bash |
10 |
no-host |
configure.cpython |
2,243,335 |
0 |
0 |
0 |
32,992 |
0 |
14,766 |
990 |
dash |
18 |
no-host |
configure.cpython |
6,187,809 |
0 |
0 |
0 |
27,512 |
0 |
13,277 |
1,243 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,640 |
0 |
0 |
0 |
27,520 |
0 |
13,305 |
1,013 |
osh-native |
4 |
no-host |
configure.ocaml |
410,880 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
182 |
bash |
12 |
no-host |
configure.ocaml |
390,699 |
0 |
0 |
0 |
5,112 |
0 |
1,883 |
274 |
dash |
20 |
no-host |
configure.ocaml |
640,870 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
152 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,734 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,485 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,309 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,993 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,110,227 |
1 |
0 |
0 |
42,400 |
0 |
18,618 |
973 |
bash |
11 |
no-host |
configure.util-linux |
2,257,519 |
1 |
0 |
0 |
42,584 |
0 |
17,475 |
1,087 |
dash |
19 |
no-host |
configure.util-linux |
5,340,081 |
8 |
0 |
0 |
39,112 |
0 |
16,943 |
1,217 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,188 |
0 |
0 |
0 |
39,120 |
0 |
16,995 |
1,006 |
osh-native |
6 |
no-host |
configure.yash |
256,164 |
0 |
0 |
0 |
4,120 |
0 |
873 |
85 |
bash |
14 |
no-host |
configure.yash |
244,587 |
0 |
0 |
0 |
3,720 |
0 |
866 |
73 |
dash |
22 |
no-host |
configure.yash |
385,195 |
0 |
0 |
0 |
3,728 |
0 |
854 |
85 |
osh-cpython |
30 |
no-host |
configure.yash |
258,044 |
0 |
0 |
0 |
3,736 |
0 |
851 |
90 |
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,693 |
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