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 |
453 |
22 |
23.71 |
1.16 |
bin-true |
no-host |
668 |
547 |
2,216 |
823 |
3.32 |
1.23 |
configure.cpython |
no-host |
14,662 |
14,819 |
28,202 |
15,021 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,776 |
3,695 |
4,538 |
3,790 |
1.20 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
191 |
48 |
4.03 |
1.02 |
configure.util-linux |
no-host |
13,786 |
14,648 |
30,754 |
14,196 |
2.23 |
1.03 |
configure.yash |
no-host |
1,791 |
1,747 |
2,403 |
1,794 |
1.34 |
1.00 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.40 |
1.95 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,534 |
1,106 |
23,494 |
3,215 |
9.27 |
1.27 |
bin-true |
no-host |
104,283 |
66,393 |
752,875 |
128,179 |
7.22 |
1.23 |
configure.cpython |
no-host |
2,222,236 |
2,240,244 |
6,141,054 |
2,239,466 |
2.76 |
1.01 |
configure.ocaml |
no-host |
410,169 |
391,198 |
639,917 |
413,797 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,592 |
5,489 |
23,255 |
6,984 |
3.53 |
1.06 |
configure.util-linux |
no-host |
2,096,386 |
2,263,568 |
5,331,182 |
2,021,998 |
2.54 |
0.96 |
configure.yash |
no-host |
256,725 |
245,139 |
384,146 |
258,790 |
1.50 |
1.01 |
hello-world |
no-host |
155 |
80 |
3,687 |
348 |
23.79 |
2.25 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
823 |
1 |
2 |
2.7 |
8.0 |
154,692 |
12,992 |
2,799 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,021 |
1 |
60 |
15.8 |
27.5 |
1,772,668 |
49,197 |
28,508 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,196 |
2 |
57 |
22.2 |
30.3 |
2,703,404 |
44,766 |
65,812 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,790 |
0 |
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 |
48 |
0 |
0 |
1.3 |
19.3 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,794 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,964 |
6,600 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.2 |
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 |
19 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
453 |
409 |
47 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
5 |
9.2 |
osh-native |
1 |
no-host |
bin-true |
668 |
490 |
210 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
419 |
137 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,216 |
1,462 |
1,002 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
823 |
581 |
257 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,662 |
8,818 |
6,237 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,819 |
9,050 |
6,183 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,202 |
17,309 |
12,715 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,021 |
8,855 |
6,442 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,776 |
1,656 |
1,154 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,695 |
1,508 |
1,207 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,538 |
2,129 |
1,611 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,790 |
1,490 |
1,340 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
28 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
191 |
143 |
51 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
35 |
14 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,786 |
8,765 |
5,511 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,648 |
8,889 |
6,248 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,754 |
20,755 |
11,074 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,196 |
8,729 |
5,667 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,791 |
1,033 |
766 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,747 |
1,019 |
731 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,403 |
1,401 |
1,044 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,794 |
1,098 |
701 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,534 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,494 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,215 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
104,283 |
0 |
0 |
0 |
8 |
0 |
1,992 |
53 |
bash |
9 |
no-host |
bin-true |
66,393 |
0 |
0 |
0 |
8 |
0 |
1,990 |
146 |
dash |
17 |
no-host |
bin-true |
752,875 |
0 |
0 |
0 |
8 |
0 |
1,997 |
183 |
osh-cpython |
25 |
no-host |
bin-true |
128,179 |
0 |
0 |
0 |
16 |
0 |
1,989 |
87 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,236 |
0 |
0 |
0 |
32,928 |
0 |
14,480 |
1,026 |
bash |
10 |
no-host |
configure.cpython |
2,240,244 |
0 |
0 |
0 |
32,992 |
0 |
14,616 |
1,098 |
dash |
18 |
no-host |
configure.cpython |
6,141,054 |
1 |
0 |
0 |
27,512 |
0 |
13,339 |
1,167 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,239,466 |
0 |
0 |
0 |
27,520 |
0 |
13,321 |
1,153 |
osh-native |
4 |
no-host |
configure.ocaml |
410,169 |
0 |
0 |
0 |
5,120 |
0 |
1,955 |
156 |
bash |
12 |
no-host |
configure.ocaml |
391,198 |
0 |
0 |
0 |
5,112 |
0 |
1,870 |
158 |
dash |
20 |
no-host |
configure.ocaml |
639,917 |
1 |
0 |
0 |
5,112 |
0 |
1,862 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,797 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
167 |
osh-native |
5 |
no-host |
configure.tcc |
6,592 |
0 |
0 |
0 |
104 |
0 |
48 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
23,255 |
0 |
0 |
0 |
96 |
0 |
53 |
13 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
46 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,096,386 |
2 |
0 |
0 |
42,400 |
0 |
18,609 |
1,028 |
bash |
11 |
no-host |
configure.util-linux |
2,263,568 |
0 |
0 |
0 |
42,584 |
0 |
17,447 |
1,039 |
dash |
19 |
no-host |
configure.util-linux |
5,331,182 |
3 |
0 |
0 |
39,120 |
0 |
17,101 |
1,213 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,021,998 |
0 |
0 |
0 |
39,128 |
0 |
17,067 |
1,058 |
osh-native |
6 |
no-host |
configure.yash |
256,725 |
0 |
0 |
0 |
4,120 |
0 |
872 |
75 |
bash |
14 |
no-host |
configure.yash |
245,139 |
0 |
0 |
0 |
3,720 |
0 |
872 |
74 |
dash |
22 |
no-host |
configure.yash |
384,146 |
0 |
0 |
0 |
3,728 |
0 |
856 |
82 |
osh-cpython |
30 |
no-host |
configure.yash |
258,790 |
0 |
0 |
0 |
3,736 |
0 |
854 |
78 |
osh-native |
0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,687 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host