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 |
9 |
457 |
23 |
22.38 |
1.10 |
bin-true |
no-host |
680 |
542 |
2,332 |
815 |
3.43 |
1.20 |
configure.cpython |
no-host |
15,383 |
15,243 |
29,421 |
15,631 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,861 |
3,853 |
4,709 |
3,887 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
192 |
49 |
4.01 |
1.03 |
configure.util-linux |
no-host |
14,312 |
15,176 |
31,547 |
14,664 |
2.20 |
1.02 |
configure.yash |
no-host |
1,856 |
1,831 |
2,473 |
1,880 |
1.33 |
1.01 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
28.66 |
1.74 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,538 |
1,108 |
23,181 |
3,228 |
9.13 |
1.27 |
bin-true |
no-host |
107,442 |
66,443 |
753,569 |
126,228 |
7.01 |
1.17 |
configure.cpython |
no-host |
2,222,892 |
2,247,141 |
6,136,215 |
2,236,506 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,853 |
390,911 |
638,448 |
413,487 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,573 |
5,458 |
23,185 |
6,977 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,093,478 |
2,258,705 |
5,315,121 |
2,016,269 |
2.54 |
0.96 |
configure.yash |
no-host |
256,447 |
244,889 |
384,947 |
258,610 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
78 |
3,647 |
341 |
23.99 |
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.2 |
6.3 |
3,711 |
3,711 |
0 |
681 |
1,866 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
8.0 |
154,676 |
12,986 |
2,793 |
11,734 |
78,335 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,631 |
2 |
66 |
15.8 |
27.4 |
1,772,595 |
49,191 |
28,502 |
101,770 |
908,042 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,664 |
3 |
62 |
22.2 |
30.1 |
2,703,259 |
44,760 |
65,786 |
126,121 |
1,320,486 |
1,256,652 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,887 |
1 |
2 |
2.7 |
20.6 |
150,021 |
11,039 |
5,132 |
8,602 |
71,620 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,514 |
30,514 |
0 |
1,599 |
14,790 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,880 |
1 |
2 |
2.6 |
24.4 |
139,678 |
7,958 |
6,594 |
7,554 |
70,292 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,257 |
64,449 |
42,657 |
4,609 |
54,535 |
57,113 |
478 |
3 |
85,314 |
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 |
14 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
457 |
422 |
38 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
680 |
497 |
214 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
419 |
134 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,332 |
1,512 |
1,095 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
597 |
234 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,383 |
9,215 |
6,573 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,243 |
8,987 |
6,677 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,421 |
17,980 |
13,342 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,631 |
9,230 |
6,671 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,861 |
1,620 |
1,281 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,853 |
1,631 |
1,241 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,709 |
2,343 |
1,570 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,887 |
1,683 |
1,245 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
21 |
28 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
34 |
8 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
192 |
150 |
45 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
18 |
31 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,312 |
9,007 |
5,781 |
29.8 |
bash |
11 |
no-host |
configure.util-linux |
15,176 |
9,167 |
6,501 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,547 |
21,043 |
11,595 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,664 |
8,785 |
6,075 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,856 |
1,018 |
847 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,831 |
1,033 |
801 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,473 |
1,540 |
976 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,880 |
1,066 |
817 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
49 |
37 |
12 |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,108 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,181 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,228 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,442 |
0 |
0 |
0 |
8 |
0 |
1,994 |
91 |
bash |
9 |
no-host |
bin-true |
66,443 |
0 |
0 |
0 |
8 |
0 |
1,984 |
63 |
dash |
17 |
no-host |
bin-true |
753,569 |
0 |
0 |
0 |
8 |
0 |
1,995 |
157 |
osh-cpython |
25 |
no-host |
bin-true |
126,228 |
0 |
0 |
0 |
16 |
0 |
1,992 |
44 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,892 |
0 |
0 |
0 |
32,928 |
0 |
14,540 |
1,198 |
bash |
10 |
no-host |
configure.cpython |
2,247,141 |
0 |
0 |
0 |
32,992 |
0 |
14,639 |
1,036 |
dash |
18 |
no-host |
configure.cpython |
6,136,215 |
0 |
0 |
0 |
27,512 |
0 |
13,257 |
1,186 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,506 |
0 |
0 |
0 |
27,520 |
0 |
13,234 |
1,148 |
osh-native |
4 |
no-host |
configure.ocaml |
410,853 |
0 |
0 |
0 |
5,120 |
0 |
1,951 |
150 |
bash |
12 |
no-host |
configure.ocaml |
390,911 |
0 |
0 |
0 |
5,112 |
0 |
1,870 |
144 |
dash |
20 |
no-host |
configure.ocaml |
638,448 |
0 |
0 |
0 |
5,112 |
0 |
1,868 |
194 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,487 |
0 |
0 |
0 |
5,120 |
0 |
1,938 |
166 |
osh-native |
5 |
no-host |
configure.tcc |
6,573 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,458 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,185 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,977 |
0 |
0 |
0 |
104 |
0 |
46 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,093,478 |
0 |
0 |
0 |
42,400 |
0 |
18,581 |
1,230 |
bash |
11 |
no-host |
configure.util-linux |
2,258,705 |
0 |
0 |
0 |
42,584 |
0 |
17,518 |
1,188 |
dash |
19 |
no-host |
configure.util-linux |
5,315,121 |
9 |
0 |
0 |
39,112 |
0 |
17,079 |
1,317 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,016,269 |
0 |
0 |
0 |
39,120 |
0 |
17,043 |
951 |
osh-native |
6 |
no-host |
configure.yash |
256,447 |
0 |
0 |
0 |
4,120 |
0 |
868 |
73 |
bash |
14 |
no-host |
configure.yash |
244,889 |
0 |
0 |
0 |
3,720 |
0 |
868 |
80 |
dash |
22 |
no-host |
configure.yash |
384,947 |
0 |
0 |
0 |
3,728 |
0 |
856 |
96 |
osh-cpython |
30 |
no-host |
configure.yash |
258,610 |
0 |
0 |
0 |
3,736 |
0 |
853 |
81 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,647 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
Shell and Host