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 |
472 |
24 |
24.03 |
1.20 |
bin-true |
no-host |
693 |
559 |
2,257 |
829 |
3.26 |
1.20 |
configure.cpython |
no-host |
15,425 |
15,682 |
29,548 |
15,819 |
1.92 |
1.03 |
configure.ocaml |
no-host |
3,892 |
3,814 |
4,761 |
3,948 |
1.22 |
1.01 |
configure.tcc |
no-host |
49 |
43 |
196 |
52 |
4.03 |
1.06 |
configure.util-linux |
no-host |
14,552 |
15,320 |
32,392 |
15,020 |
2.23 |
1.03 |
configure.yash |
no-host |
1,873 |
1,830 |
2,519 |
1,901 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
52 |
3 |
34.27 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,508 |
1,110 |
23,620 |
3,216 |
9.42 |
1.28 |
bin-true |
no-host |
104,353 |
66,424 |
754,089 |
126,204 |
7.23 |
1.21 |
configure.cpython |
no-host |
2,216,818 |
2,250,888 |
6,133,493 |
2,238,786 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,472 |
390,959 |
639,212 |
413,471 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,482 |
23,255 |
6,998 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,103,210 |
2,268,722 |
5,331,583 |
2,022,821 |
2.53 |
0.96 |
configure.yash |
no-host |
255,104 |
245,199 |
384,635 |
258,993 |
1.51 |
1.02 |
hello-world |
no-host |
151 |
78 |
3,688 |
347 |
24.42 |
2.30 |
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.0 |
3,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
829 |
1 |
2 |
2.7 |
7.9 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,819 |
1 |
64 |
15.8 |
27.4 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,020 |
3 |
66 |
22.2 |
30.1 |
2,703,404 |
44,766 |
65,792 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,584 |
1 |
configure.ocaml |
no-host |
3,948 |
1 |
2 |
2.7 |
20.6 |
150,038 |
11,045 |
5,138 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
52 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,901 |
1 |
2 |
2.6 |
26.4 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
24 |
1 |
2 |
2.8 |
8.8 |
116,270 |
64,455 |
42,663 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,326 |
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 |
15 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
472 |
405 |
70 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
21 |
3 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
693 |
512 |
212 |
3.0 |
bash |
9 |
no-host |
bin-true |
559 |
430 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,257 |
1,576 |
945 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
829 |
568 |
273 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,425 |
9,283 |
6,540 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,682 |
9,186 |
6,919 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,548 |
17,900 |
13,586 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,819 |
9,360 |
6,728 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,892 |
1,684 |
1,248 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,814 |
1,590 |
1,244 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,761 |
2,287 |
1,686 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,948 |
1,699 |
1,289 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
21 |
22 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
147 |
52 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
52 |
37 |
15 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,552 |
9,048 |
5,988 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,320 |
9,425 |
6,395 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,392 |
21,534 |
12,007 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,020 |
9,050 |
6,163 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,873 |
1,108 |
771 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,830 |
1,028 |
805 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,519 |
1,505 |
1,059 |
24.1 |
osh-cpython |
30 |
no-host |
configure.yash |
1,901 |
1,061 |
844 |
26.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 |
52 |
25 |
28 |
17.3 |
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,508 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,110 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,620 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,216 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,353 |
0 |
0 |
0 |
8 |
0 |
1,991 |
71 |
bash |
9 |
no-host |
bin-true |
66,424 |
0 |
0 |
0 |
8 |
0 |
1,990 |
52 |
dash |
17 |
no-host |
bin-true |
754,089 |
0 |
0 |
0 |
8 |
0 |
1,989 |
94 |
osh-cpython |
25 |
no-host |
bin-true |
126,204 |
0 |
0 |
0 |
16 |
0 |
1,985 |
54 |
osh-native |
2 |
no-host |
configure.cpython |
2,216,818 |
0 |
0 |
0 |
32,928 |
0 |
14,514 |
1,130 |
bash |
10 |
no-host |
configure.cpython |
2,250,888 |
0 |
0 |
0 |
32,992 |
0 |
14,651 |
1,043 |
dash |
18 |
no-host |
configure.cpython |
6,133,493 |
0 |
0 |
0 |
27,512 |
0 |
13,237 |
1,170 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,238,786 |
0 |
0 |
0 |
27,520 |
0 |
13,222 |
996 |
osh-native |
4 |
no-host |
configure.ocaml |
410,472 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
160 |
bash |
12 |
no-host |
configure.ocaml |
390,959 |
0 |
0 |
0 |
5,112 |
0 |
1,933 |
149 |
dash |
20 |
no-host |
configure.ocaml |
639,212 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
189 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,471 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
173 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,482 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,255 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,998 |
0 |
0 |
0 |
104 |
0 |
46 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,210 |
0 |
0 |
0 |
42,400 |
0 |
18,506 |
1,050 |
bash |
11 |
no-host |
configure.util-linux |
2,268,722 |
0 |
0 |
0 |
42,584 |
0 |
17,489 |
1,227 |
dash |
19 |
no-host |
configure.util-linux |
5,331,583 |
6 |
0 |
0 |
39,144 |
0 |
17,023 |
1,341 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,022,821 |
0 |
0 |
0 |
39,128 |
0 |
17,012 |
1,109 |
osh-native |
6 |
no-host |
configure.yash |
255,104 |
0 |
0 |
0 |
4,120 |
0 |
871 |
78 |
bash |
14 |
no-host |
configure.yash |
245,199 |
0 |
0 |
0 |
3,720 |
0 |
867 |
84 |
dash |
22 |
no-host |
configure.yash |
384,635 |
0 |
0 |
0 |
3,728 |
0 |
860 |
98 |
osh-cpython |
30 |
no-host |
configure.yash |
258,993 |
0 |
0 |
0 |
3,736 |
0 |
852 |
83 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,688 |
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