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 |
448 |
22 |
23.10 |
1.14 |
bin-true |
no-host |
671 |
544 |
2,195 |
808 |
3.27 |
1.20 |
configure.cpython |
no-host |
14,788 |
14,979 |
28,056 |
15,039 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,784 |
3,700 |
4,621 |
3,793 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
190 |
49 |
4.00 |
1.02 |
configure.util-linux |
no-host |
13,846 |
14,828 |
30,853 |
14,221 |
2.23 |
1.03 |
configure.yash |
no-host |
1,786 |
1,738 |
2,400 |
1,804 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
33.49 |
1.96 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,529 |
1,129 |
23,527 |
3,200 |
9.30 |
1.27 |
bin-true |
no-host |
104,295 |
66,441 |
743,941 |
127,159 |
7.13 |
1.22 |
configure.cpython |
no-host |
2,212,736 |
2,250,962 |
6,130,523 |
2,234,535 |
2.77 |
1.01 |
configure.ocaml |
no-host |
410,440 |
391,117 |
639,458 |
413,709 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,541 |
5,486 |
23,232 |
6,991 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,098,011 |
2,261,194 |
5,319,621 |
2,017,402 |
2.54 |
0.96 |
configure.yash |
no-host |
256,813 |
244,963 |
384,783 |
259,004 |
1.50 |
1.01 |
hello-world |
no-host |
149 |
86 |
3,665 |
349 |
24.60 |
2.34 |
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,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,039 |
1 |
58 |
15.8 |
27.4 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,049 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,221 |
3 |
57 |
22.2 |
30.0 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,493 |
1,256,653 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,793 |
0 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,627 |
69,800 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,522 |
30,522 |
0 |
1,599 |
14,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,804 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,299 |
61,833 |
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,610 |
54,542 |
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 |
18 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
448 |
409 |
43 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
671 |
498 |
205 |
3.0 |
bash |
9 |
no-host |
bin-true |
544 |
414 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,195 |
1,446 |
1,002 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
808 |
580 |
243 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,788 |
9,007 |
6,177 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,979 |
9,004 |
6,404 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,056 |
17,385 |
12,475 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,039 |
8,755 |
6,554 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,784 |
1,617 |
1,200 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,700 |
1,577 |
1,141 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,621 |
2,124 |
1,698 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,793 |
1,585 |
1,246 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
30 |
11 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
190 |
141 |
52 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,846 |
8,716 |
5,609 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,828 |
9,307 |
6,009 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,853 |
20,637 |
11,292 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,221 |
8,630 |
5,791 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,786 |
1,093 |
701 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,738 |
1,016 |
725 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,400 |
1,425 |
1,018 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,804 |
1,016 |
791 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
29 |
20 |
17.4 |
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,529 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,129 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,527 |
0 |
0 |
0 |
8 |
0 |
46 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,200 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
osh-native |
1 |
no-host |
bin-true |
104,295 |
0 |
0 |
0 |
8 |
0 |
1,994 |
116 |
bash |
9 |
no-host |
bin-true |
66,441 |
0 |
0 |
0 |
8 |
0 |
1,986 |
101 |
dash |
17 |
no-host |
bin-true |
743,941 |
0 |
0 |
0 |
8 |
0 |
1,988 |
131 |
osh-cpython |
25 |
no-host |
bin-true |
127,159 |
0 |
0 |
0 |
16 |
0 |
1,995 |
55 |
osh-native |
2 |
no-host |
configure.cpython |
2,212,736 |
0 |
0 |
0 |
32,928 |
0 |
14,515 |
1,136 |
bash |
10 |
no-host |
configure.cpython |
2,250,962 |
0 |
0 |
0 |
32,992 |
0 |
14,621 |
1,123 |
dash |
18 |
no-host |
configure.cpython |
6,130,523 |
0 |
0 |
0 |
27,512 |
0 |
13,246 |
1,243 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,535 |
0 |
0 |
0 |
27,520 |
0 |
13,320 |
1,211 |
osh-native |
4 |
no-host |
configure.ocaml |
410,440 |
0 |
0 |
0 |
5,120 |
0 |
1,957 |
186 |
bash |
12 |
no-host |
configure.ocaml |
391,117 |
0 |
0 |
0 |
5,112 |
0 |
1,921 |
167 |
dash |
20 |
no-host |
configure.ocaml |
639,458 |
1 |
0 |
0 |
5,112 |
0 |
1,867 |
193 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,709 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
267 |
osh-native |
5 |
no-host |
configure.tcc |
6,541 |
0 |
0 |
0 |
104 |
0 |
48 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,232 |
0 |
0 |
0 |
96 |
0 |
53 |
17 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,991 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,098,011 |
3 |
0 |
0 |
42,400 |
0 |
18,560 |
909 |
bash |
11 |
no-host |
configure.util-linux |
2,261,194 |
1 |
0 |
0 |
42,584 |
0 |
17,390 |
1,178 |
dash |
19 |
no-host |
configure.util-linux |
5,319,621 |
6 |
0 |
0 |
39,120 |
0 |
17,046 |
1,182 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,017,402 |
2 |
0 |
0 |
39,120 |
0 |
17,141 |
985 |
osh-native |
6 |
no-host |
configure.yash |
256,813 |
0 |
0 |
0 |
4,120 |
0 |
863 |
99 |
bash |
14 |
no-host |
configure.yash |
244,963 |
0 |
0 |
0 |
3,720 |
0 |
866 |
82 |
dash |
22 |
no-host |
configure.yash |
384,783 |
0 |
0 |
0 |
3,728 |
0 |
858 |
108 |
osh-cpython |
30 |
no-host |
configure.yash |
259,004 |
0 |
0 |
0 |
3,736 |
0 |
849 |
84 |
osh-native |
0 |
no-host |
hello-world |
149 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
86 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,665 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host