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 |
456 |
22 |
23.71 |
1.16 |
bin-true |
no-host |
668 |
547 |
2,249 |
811 |
3.37 |
1.21 |
configure.cpython |
no-host |
15,277 |
15,222 |
28,725 |
15,418 |
1.88 |
1.01 |
configure.ocaml |
no-host |
3,879 |
3,779 |
4,658 |
3,874 |
1.20 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
192 |
49 |
4.01 |
1.03 |
configure.util-linux |
no-host |
14,238 |
15,033 |
31,211 |
14,483 |
2.19 |
1.02 |
configure.yash |
no-host |
1,842 |
1,793 |
2,450 |
1,844 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.21 |
1.82 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,553 |
1,132 |
23,378 |
3,183 |
9.16 |
1.25 |
bin-true |
no-host |
105,327 |
66,381 |
752,867 |
127,205 |
7.15 |
1.21 |
configure.cpython |
no-host |
2,218,722 |
2,239,889 |
6,147,485 |
2,235,716 |
2.77 |
1.01 |
configure.ocaml |
no-host |
411,190 |
391,265 |
638,569 |
413,511 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,538 |
5,506 |
23,233 |
6,962 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,103,105 |
2,257,441 |
5,320,939 |
2,010,280 |
2.53 |
0.96 |
configure.yash |
no-host |
255,690 |
244,550 |
384,692 |
259,197 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
83 |
3,653 |
348 |
24.19 |
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.2 |
3,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.7 |
8.0 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,418 |
1 |
61 |
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,483 |
2 |
59 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,874 |
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 |
49 |
0 |
0 |
1.3 |
19.4 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,844 |
1 |
2 |
2.6 |
24.5 |
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 |
8.7 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
456 |
411 |
48 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
668 |
495 |
204 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
411 |
147 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,249 |
1,498 |
1,013 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
567 |
259 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,277 |
9,085 |
6,598 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,222 |
8,995 |
6,649 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,725 |
17,437 |
13,149 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,418 |
9,113 |
6,578 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,879 |
1,663 |
1,255 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,779 |
1,605 |
1,193 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,658 |
2,128 |
1,731 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,874 |
1,641 |
1,272 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
25 |
23 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
192 |
155 |
40 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
25 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,238 |
8,994 |
5,719 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,033 |
9,231 |
6,300 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,211 |
21,127 |
11,181 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,483 |
8,714 |
5,964 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,842 |
995 |
855 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,793 |
1,092 |
704 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,450 |
1,530 |
964 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,844 |
1,062 |
786 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
35 |
14 |
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,553 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,132 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,378 |
0 |
0 |
0 |
8 |
0 |
47 |
16 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,183 |
0 |
0 |
0 |
16 |
0 |
41 |
4 |
osh-native |
1 |
no-host |
bin-true |
105,327 |
0 |
0 |
0 |
8 |
0 |
1,990 |
37 |
bash |
9 |
no-host |
bin-true |
66,381 |
0 |
0 |
0 |
8 |
0 |
1,987 |
42 |
dash |
17 |
no-host |
bin-true |
752,867 |
0 |
0 |
0 |
8 |
0 |
1,994 |
235 |
osh-cpython |
25 |
no-host |
bin-true |
127,205 |
0 |
0 |
0 |
16 |
0 |
1,987 |
64 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,722 |
0 |
0 |
0 |
32,928 |
0 |
14,530 |
1,164 |
bash |
10 |
no-host |
configure.cpython |
2,239,889 |
0 |
0 |
0 |
32,992 |
0 |
14,611 |
1,153 |
dash |
18 |
no-host |
configure.cpython |
6,147,485 |
1 |
0 |
0 |
27,512 |
0 |
13,247 |
1,393 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,235,716 |
0 |
0 |
0 |
27,520 |
0 |
13,333 |
1,062 |
osh-native |
4 |
no-host |
configure.ocaml |
411,190 |
0 |
0 |
0 |
5,120 |
0 |
1,954 |
139 |
bash |
12 |
no-host |
configure.ocaml |
391,265 |
0 |
0 |
0 |
5,112 |
0 |
1,927 |
135 |
dash |
20 |
no-host |
configure.ocaml |
638,569 |
0 |
0 |
0 |
5,112 |
0 |
1,853 |
330 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,511 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
162 |
osh-native |
5 |
no-host |
configure.tcc |
6,538 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,506 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,233 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,962 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,105 |
0 |
0 |
0 |
42,400 |
0 |
18,516 |
1,018 |
bash |
11 |
no-host |
configure.util-linux |
2,257,441 |
0 |
0 |
0 |
42,584 |
0 |
17,456 |
1,095 |
dash |
19 |
no-host |
configure.util-linux |
5,320,939 |
11 |
0 |
0 |
39,112 |
0 |
17,059 |
1,228 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,010,280 |
0 |
0 |
0 |
39,128 |
0 |
17,063 |
871 |
osh-native |
6 |
no-host |
configure.yash |
255,690 |
0 |
0 |
0 |
4,120 |
0 |
863 |
89 |
bash |
14 |
no-host |
configure.yash |
244,550 |
0 |
0 |
0 |
3,720 |
0 |
866 |
81 |
dash |
22 |
no-host |
configure.yash |
384,692 |
0 |
0 |
0 |
3,728 |
0 |
860 |
81 |
osh-cpython |
30 |
no-host |
configure.yash |
259,197 |
0 |
0 |
0 |
3,736 |
0 |
855 |
80 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
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 |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host