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 |
466 |
22 |
24.43 |
1.17 |
bin-true |
no-host |
675 |
536 |
2,278 |
835 |
3.37 |
1.24 |
configure.cpython |
no-host |
15,115 |
15,142 |
28,556 |
15,346 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,845 |
3,757 |
4,652 |
3,831 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
194 |
50 |
4.00 |
1.04 |
configure.util-linux |
no-host |
14,055 |
14,958 |
31,197 |
14,425 |
2.22 |
1.03 |
configure.yash |
no-host |
1,825 |
1,781 |
2,473 |
1,842 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
34.28 |
1.99 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,541 |
1,102 |
23,419 |
3,194 |
9.22 |
1.26 |
bin-true |
no-host |
104,366 |
65,365 |
753,405 |
129,214 |
7.22 |
1.24 |
configure.cpython |
no-host |
2,220,310 |
2,239,062 |
6,144,765 |
2,241,626 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,709 |
390,457 |
639,028 |
413,542 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,586 |
5,500 |
23,195 |
6,984 |
3.52 |
1.06 |
configure.util-linux |
no-host |
2,096,980 |
2,258,659 |
5,312,075 |
2,005,682 |
2.53 |
0.96 |
configure.yash |
no-host |
256,156 |
245,044 |
386,397 |
258,163 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,657 |
350 |
23.90 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
835 |
1 |
2 |
2.7 |
8.1 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,346 |
1 |
63 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,425 |
3 |
61 |
22.2 |
30.3 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,831 |
1 |
2 |
2.7 |
20.4 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,842 |
1 |
2 |
2.6 |
24.2 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,265 |
64,454 |
42,662 |
4,609 |
54,543 |
57,113 |
478 |
3 |
85,324 |
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 |
13 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
466 |
410 |
59 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
675 |
510 |
197 |
3.0 |
bash |
9 |
no-host |
bin-true |
536 |
406 |
140 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,278 |
1,513 |
1,029 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
835 |
576 |
275 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,115 |
9,185 |
6,330 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,142 |
9,033 |
6,532 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,556 |
17,575 |
12,814 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,346 |
9,070 |
6,540 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,845 |
1,627 |
1,247 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,757 |
1,589 |
1,183 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,652 |
2,255 |
1,599 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,831 |
1,550 |
1,322 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
23 |
26 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
23 |
19 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
145 |
51 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
24 |
27 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,055 |
9,010 |
5,524 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,958 |
9,070 |
6,359 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,197 |
20,827 |
11,452 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,425 |
8,577 |
6,045 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,825 |
1,040 |
793 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,781 |
1,025 |
758 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,473 |
1,512 |
1,004 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,842 |
998 |
848 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
21 |
28 |
17.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,541 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,419 |
0 |
0 |
0 |
8 |
0 |
47 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,194 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
104,366 |
0 |
0 |
0 |
8 |
0 |
1,994 |
84 |
bash |
9 |
no-host |
bin-true |
65,365 |
0 |
0 |
0 |
8 |
0 |
1,989 |
29 |
dash |
17 |
no-host |
bin-true |
753,405 |
0 |
0 |
0 |
8 |
0 |
2,000 |
401 |
osh-cpython |
25 |
no-host |
bin-true |
129,214 |
0 |
0 |
0 |
16 |
0 |
1,989 |
182 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,310 |
0 |
0 |
0 |
32,928 |
0 |
14,462 |
1,148 |
bash |
10 |
no-host |
configure.cpython |
2,239,062 |
0 |
0 |
0 |
32,992 |
0 |
14,260 |
981 |
dash |
18 |
no-host |
configure.cpython |
6,144,765 |
1 |
0 |
0 |
27,512 |
0 |
13,263 |
1,216 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,241,626 |
0 |
0 |
0 |
27,520 |
0 |
13,226 |
1,081 |
osh-native |
4 |
no-host |
configure.ocaml |
410,709 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
253 |
bash |
12 |
no-host |
configure.ocaml |
390,457 |
0 |
0 |
0 |
5,112 |
0 |
1,880 |
162 |
dash |
20 |
no-host |
configure.ocaml |
639,028 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
211 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,542 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
164 |
osh-native |
5 |
no-host |
configure.tcc |
6,586 |
0 |
0 |
0 |
104 |
0 |
49 |
6 |
bash |
13 |
no-host |
configure.tcc |
5,500 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,195 |
0 |
0 |
0 |
96 |
0 |
53 |
4 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,980 |
1 |
0 |
0 |
42,400 |
0 |
18,665 |
1,005 |
bash |
11 |
no-host |
configure.util-linux |
2,258,659 |
0 |
0 |
0 |
42,584 |
0 |
17,442 |
1,073 |
dash |
19 |
no-host |
configure.util-linux |
5,312,075 |
12 |
0 |
0 |
39,112 |
0 |
17,072 |
1,244 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,005,682 |
2 |
0 |
0 |
39,120 |
0 |
17,070 |
1,041 |
osh-native |
6 |
no-host |
configure.yash |
256,156 |
0 |
0 |
0 |
4,120 |
0 |
868 |
81 |
bash |
14 |
no-host |
configure.yash |
245,044 |
0 |
0 |
0 |
3,720 |
0 |
868 |
150 |
dash |
22 |
no-host |
configure.yash |
386,397 |
0 |
0 |
0 |
3,728 |
0 |
855 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
258,163 |
0 |
0 |
0 |
3,736 |
0 |
852 |
83 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,657 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host