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 |
23 |
24.66 |
1.20 |
bin-true |
no-host |
688 |
546 |
2,240 |
814 |
3.25 |
1.18 |
configure.cpython |
no-host |
15,671 |
15,372 |
29,108 |
15,615 |
1.86 |
1.00 |
configure.ocaml |
no-host |
3,857 |
3,783 |
4,741 |
3,888 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
195 |
49 |
4.02 |
1.01 |
configure.util-linux |
no-host |
14,296 |
15,159 |
31,953 |
14,801 |
2.24 |
1.04 |
configure.yash |
no-host |
1,865 |
1,813 |
2,489 |
1,866 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
33.25 |
1.86 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,505 |
1,120 |
23,211 |
3,199 |
9.27 |
1.28 |
bin-true |
no-host |
107,292 |
65,410 |
750,161 |
126,167 |
6.99 |
1.18 |
configure.cpython |
no-host |
2,213,724 |
2,250,817 |
6,147,693 |
2,225,689 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,543 |
391,080 |
638,914 |
413,928 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,568 |
5,483 |
23,243 |
6,988 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,098,674 |
2,260,919 |
5,319,951 |
2,013,687 |
2.53 |
0.96 |
configure.yash |
no-host |
256,669 |
244,176 |
385,157 |
258,912 |
1.50 |
1.01 |
hello-world |
no-host |
152 |
79 |
3,653 |
344 |
24.03 |
2.26 |
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 |
5.9 |
3,715 |
3,715 |
0 |
681 |
1,869 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
814 |
1 |
2 |
2.7 |
8.0 |
154,680 |
12,986 |
2,793 |
11,734 |
78,338 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,615 |
1 |
64 |
15.8 |
27.4 |
1,772,659 |
49,191 |
28,502 |
101,770 |
908,090 |
762,799 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,801 |
3 |
65 |
22.2 |
30.1 |
2,703,395 |
44,760 |
65,786 |
126,121 |
1,320,588 |
1,256,686 |
49,081 |
41 |
131,572 |
1 |
configure.ocaml |
no-host |
3,888 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,039 |
5,132 |
8,602 |
71,626 |
69,801 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,518 |
30,518 |
0 |
1,599 |
14,793 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,866 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,958 |
6,594 |
7,554 |
70,298 |
61,834 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
9.0 |
116,261 |
64,449 |
42,657 |
4,609 |
54,538 |
57,114 |
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 |
19 |
14 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
465 |
431 |
38 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
17 |
6 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
688 |
507 |
211 |
3.0 |
bash |
9 |
no-host |
bin-true |
546 |
422 |
133 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,240 |
1,517 |
980 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
608 |
221 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,671 |
9,204 |
6,544 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,372 |
9,592 |
6,202 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,108 |
17,395 |
13,593 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,615 |
9,222 |
6,653 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,857 |
1,721 |
1,176 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,783 |
1,640 |
1,160 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,741 |
2,243 |
1,706 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,888 |
1,626 |
1,302 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
22 |
27 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
195 |
142 |
56 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
18 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,296 |
8,970 |
5,785 |
29.9 |
bash |
11 |
no-host |
configure.util-linux |
15,159 |
9,326 |
6,339 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,953 |
21,386 |
11,703 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,801 |
8,922 |
6,080 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,865 |
1,031 |
841 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,813 |
993 |
824 |
24.1 |
dash |
22 |
no-host |
configure.yash |
2,489 |
1,532 |
1,001 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,866 |
1,095 |
775 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
41 |
8 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
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,505 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,120 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,211 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,199 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
osh-native |
1 |
no-host |
bin-true |
107,292 |
0 |
0 |
0 |
8 |
0 |
1,995 |
130 |
bash |
9 |
no-host |
bin-true |
65,410 |
0 |
0 |
0 |
8 |
0 |
1,992 |
108 |
dash |
17 |
no-host |
bin-true |
750,161 |
0 |
0 |
0 |
8 |
0 |
1,996 |
160 |
osh-cpython |
25 |
no-host |
bin-true |
126,167 |
0 |
0 |
0 |
16 |
0 |
1,986 |
39 |
osh-native |
2 |
no-host |
configure.cpython |
2,213,724 |
0 |
0 |
0 |
32,928 |
0 |
14,519 |
1,117 |
bash |
10 |
no-host |
configure.cpython |
2,250,817 |
0 |
0 |
0 |
32,992 |
0 |
14,608 |
969 |
dash |
18 |
no-host |
configure.cpython |
6,147,693 |
1 |
0 |
0 |
27,512 |
0 |
13,248 |
1,270 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,689 |
0 |
0 |
0 |
27,520 |
0 |
13,278 |
1,044 |
osh-native |
4 |
no-host |
configure.ocaml |
410,543 |
0 |
0 |
0 |
5,120 |
0 |
1,942 |
187 |
bash |
12 |
no-host |
configure.ocaml |
391,080 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
178 |
dash |
20 |
no-host |
configure.ocaml |
638,914 |
1 |
0 |
0 |
5,112 |
0 |
1,859 |
167 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,928 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
169 |
osh-native |
5 |
no-host |
configure.tcc |
6,568 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,483 |
0 |
0 |
0 |
96 |
0 |
46 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,243 |
0 |
0 |
0 |
96 |
0 |
53 |
13 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,988 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,674 |
6 |
0 |
0 |
42,408 |
0 |
18,651 |
1,154 |
bash |
11 |
no-host |
configure.util-linux |
2,260,919 |
1 |
0 |
0 |
42,592 |
0 |
17,463 |
1,112 |
dash |
19 |
no-host |
configure.util-linux |
5,319,951 |
11 |
0 |
0 |
39,112 |
0 |
17,097 |
1,224 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,013,687 |
1 |
0 |
0 |
39,128 |
0 |
17,118 |
949 |
osh-native |
6 |
no-host |
configure.yash |
256,669 |
0 |
0 |
0 |
4,120 |
0 |
871 |
92 |
bash |
14 |
no-host |
configure.yash |
244,176 |
0 |
0 |
0 |
3,720 |
0 |
867 |
88 |
dash |
22 |
no-host |
configure.yash |
385,157 |
0 |
0 |
0 |
3,728 |
0 |
857 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
258,912 |
0 |
0 |
0 |
3,736 |
0 |
851 |
88 |
osh-native |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,653 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host