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 |
22 |
23.78 |
1.17 |
bin-true |
no-host |
682 |
547 |
2,243 |
826 |
3.29 |
1.21 |
configure.cpython |
no-host |
15,061 |
15,356 |
28,642 |
15,328 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,810 |
3,742 |
4,697 |
3,831 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
195 |
49 |
4.08 |
1.02 |
configure.util-linux |
no-host |
14,221 |
15,078 |
31,458 |
14,424 |
2.21 |
1.01 |
configure.yash |
no-host |
1,869 |
1,768 |
2,473 |
1,844 |
1.32 |
0.99 |
hello-world |
no-host |
2 |
1 |
47 |
3 |
31.09 |
1.89 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,549 |
1,116 |
23,052 |
3,205 |
9.04 |
1.26 |
bin-true |
no-host |
105,396 |
66,413 |
746,949 |
128,623 |
7.09 |
1.22 |
configure.cpython |
no-host |
2,222,968 |
2,243,301 |
6,066,934 |
2,244,534 |
2.73 |
1.01 |
configure.ocaml |
no-host |
410,575 |
390,771 |
634,120 |
413,928 |
1.54 |
1.01 |
configure.tcc |
no-host |
6,581 |
5,479 |
22,959 |
6,953 |
3.49 |
1.06 |
configure.util-linux |
no-host |
2,100,542 |
2,263,479 |
5,291,121 |
2,012,559 |
2.52 |
0.96 |
configure.yash |
no-host |
256,213 |
244,030 |
383,477 |
258,283 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
83 |
3,631 |
340 |
23.73 |
2.22 |
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.0 |
3,673 |
3,673 |
0 |
681 |
1,828 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
826 |
1 |
2 |
2.7 |
8.0 |
154,619 |
12,860 |
2,762 |
12,730 |
77,280 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,328 |
1 |
61 |
15.9 |
27.3 |
1,765,934 |
39,052 |
24,503 |
101,923 |
901,347 |
762,664 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,424 |
3 |
58 |
22.2 |
30.3 |
2,695,085 |
29,056 |
65,754 |
126,121 |
1,312,366 |
1,256,598 |
49,081 |
41 |
131,508 |
1 |
configure.ocaml |
no-host |
3,831 |
1 |
2 |
2.7 |
20.4 |
149,110 |
10,969 |
5,100 |
8,602 |
70,893 |
69,615 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,387 |
30,387 |
0 |
1,599 |
14,663 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,844 |
1 |
2 |
2.6 |
24.2 |
138,968 |
6,642 |
6,495 |
7,554 |
69,574 |
61,840 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,013 |
64,388 |
42,627 |
4,601 |
54,295 |
57,117 |
478 |
3 |
85,254 |
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 |
16 |
4 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
455 |
418 |
41 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
2 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
682 |
500 |
212 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
423 |
133 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,243 |
1,408 |
1,088 |
17.2 |
osh-cpython |
25 |
no-host |
bin-true |
826 |
572 |
268 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,061 |
9,040 |
6,420 |
27.7 |
bash |
10 |
no-host |
configure.cpython |
15,356 |
9,096 |
6,695 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,642 |
17,447 |
13,009 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,328 |
9,068 |
6,495 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,810 |
1,598 |
1,249 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,742 |
1,521 |
1,238 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,697 |
2,266 |
1,635 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,831 |
1,602 |
1,268 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
30 |
18 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
20 |
22 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
157 |
42 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,221 |
8,848 |
5,852 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,078 |
9,282 |
6,301 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,458 |
21,064 |
11,476 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,424 |
8,626 |
5,997 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,869 |
1,076 |
776 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,768 |
1,026 |
746 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,473 |
1,507 |
1,009 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,844 |
1,072 |
775 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
47 |
35 |
11 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
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,549 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,116 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,052 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,205 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,396 |
0 |
0 |
0 |
8 |
0 |
1,992 |
81 |
bash |
9 |
no-host |
bin-true |
66,413 |
0 |
0 |
0 |
8 |
0 |
1,990 |
45 |
dash |
17 |
no-host |
bin-true |
746,949 |
0 |
0 |
0 |
8 |
0 |
2,001 |
234 |
osh-cpython |
25 |
no-host |
bin-true |
128,623 |
0 |
0 |
0 |
16 |
0 |
1,989 |
140 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,968 |
0 |
0 |
0 |
32,928 |
0 |
14,471 |
1,093 |
bash |
10 |
no-host |
configure.cpython |
2,243,301 |
0 |
0 |
0 |
32,992 |
0 |
14,711 |
950 |
dash |
18 |
no-host |
configure.cpython |
6,066,934 |
0 |
0 |
0 |
27,512 |
0 |
13,397 |
1,126 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,244,534 |
0 |
0 |
0 |
27,520 |
0 |
13,305 |
1,000 |
osh-native |
4 |
no-host |
configure.ocaml |
410,575 |
0 |
0 |
0 |
5,120 |
0 |
1,941 |
171 |
bash |
12 |
no-host |
configure.ocaml |
390,771 |
0 |
0 |
0 |
5,112 |
0 |
1,880 |
151 |
dash |
20 |
no-host |
configure.ocaml |
634,120 |
1 |
0 |
0 |
5,112 |
0 |
1,859 |
162 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,928 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
142 |
osh-native |
5 |
no-host |
configure.tcc |
6,581 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
22,959 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,953 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,100,542 |
0 |
0 |
0 |
42,400 |
0 |
18,678 |
1,086 |
bash |
11 |
no-host |
configure.util-linux |
2,263,479 |
1 |
0 |
0 |
42,584 |
0 |
17,434 |
1,153 |
dash |
19 |
no-host |
configure.util-linux |
5,291,121 |
11 |
0 |
0 |
39,112 |
0 |
17,089 |
1,321 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,012,559 |
6 |
0 |
0 |
39,120 |
0 |
17,054 |
954 |
osh-native |
6 |
no-host |
configure.yash |
256,213 |
0 |
0 |
0 |
4,120 |
0 |
872 |
124 |
bash |
14 |
no-host |
configure.yash |
244,030 |
0 |
0 |
0 |
3,720 |
0 |
867 |
81 |
dash |
22 |
no-host |
configure.yash |
383,477 |
0 |
0 |
0 |
3,728 |
0 |
853 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
258,283 |
0 |
0 |
0 |
3,736 |
0 |
851 |
85 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,631 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
340 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host