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 |
451 |
22 |
23.88 |
1.18 |
bin-true |
no-host |
681 |
543 |
2,144 |
752 |
3.15 |
1.11 |
configure.cpython |
no-host |
14,919 |
15,020 |
28,028 |
14,981 |
1.88 |
1.00 |
configure.ocaml |
no-host |
3,806 |
3,714 |
4,598 |
3,778 |
1.21 |
0.99 |
configure.tcc |
no-host |
47 |
41 |
191 |
48 |
4.04 |
1.02 |
configure.util-linux |
no-host |
13,905 |
14,796 |
30,688 |
14,182 |
2.21 |
1.02 |
configure.yash |
no-host |
1,797 |
1,761 |
2,419 |
1,807 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
33.29 |
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,527 |
1,112 |
23,261 |
3,140 |
9.20 |
1.24 |
bin-true |
no-host |
107,399 |
65,437 |
718,805 |
107,911 |
6.69 |
1.00 |
configure.cpython |
no-host |
2,217,760 |
2,245,070 |
6,022,855 |
2,159,686 |
2.72 |
0.97 |
configure.ocaml |
no-host |
411,192 |
391,152 |
633,101 |
409,344 |
1.54 |
1.00 |
configure.tcc |
no-host |
6,547 |
5,490 |
23,076 |
6,874 |
3.52 |
1.05 |
configure.util-linux |
no-host |
2,099,283 |
2,264,695 |
5,232,585 |
1,959,426 |
2.49 |
0.93 |
configure.yash |
no-host |
255,944 |
245,059 |
380,165 |
255,350 |
1.49 |
1.00 |
hello-world |
no-host |
151 |
79 |
3,654 |
346 |
24.20 |
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.0 |
3,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
752 |
1 |
2 |
2.7 |
8.3 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,981 |
2 |
62 |
15.8 |
27.0 |
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,182 |
2 |
60 |
22.2 |
30.0 |
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,778 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
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,807 |
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.8 |
116,265 |
64,454 |
42,662 |
4,610 |
54,543 |
57,112 |
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 |
1 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
451 |
414 |
40 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
681 |
516 |
196 |
3.0 |
bash |
9 |
no-host |
bin-true |
543 |
432 |
118 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,144 |
1,459 |
927 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
752 |
524 |
243 |
8.3 |
osh-native |
2 |
no-host |
configure.cpython |
14,919 |
8,956 |
6,364 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,020 |
9,190 |
6,250 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,028 |
16,821 |
12,973 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,981 |
8,745 |
6,504 |
27.0 |
osh-native |
4 |
no-host |
configure.ocaml |
3,806 |
1,580 |
1,260 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,714 |
1,542 |
1,187 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,598 |
2,220 |
1,575 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,778 |
1,640 |
1,178 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
30 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
151 |
43 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
37 |
12 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,905 |
8,798 |
5,576 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,796 |
9,099 |
6,194 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
30,688 |
20,579 |
11,136 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,182 |
8,572 |
5,803 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,797 |
1,086 |
719 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,761 |
1,039 |
726 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,419 |
1,521 |
939 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,807 |
1,073 |
738 |
24.5 |
osh-native |
0 |
no-host |
hello-world |
1 |
0 |
1 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
24 |
23 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,527 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,112 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,261 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,140 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
osh-native |
1 |
no-host |
bin-true |
107,399 |
0 |
0 |
0 |
8 |
0 |
1,993 |
138 |
bash |
9 |
no-host |
bin-true |
65,437 |
0 |
0 |
0 |
8 |
0 |
1,985 |
42 |
dash |
17 |
no-host |
bin-true |
718,805 |
0 |
0 |
0 |
8 |
0 |
1,995 |
89 |
osh-cpython |
25 |
no-host |
bin-true |
107,911 |
0 |
0 |
0 |
16 |
0 |
1,995 |
49 |
osh-native |
2 |
no-host |
configure.cpython |
2,217,760 |
0 |
0 |
0 |
32,928 |
0 |
14,435 |
1,116 |
bash |
10 |
no-host |
configure.cpython |
2,245,070 |
0 |
0 |
0 |
32,992 |
0 |
14,573 |
1,285 |
dash |
18 |
no-host |
configure.cpython |
6,022,855 |
0 |
0 |
0 |
27,512 |
0 |
13,250 |
1,372 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,159,686 |
0 |
0 |
0 |
27,520 |
0 |
13,278 |
1,063 |
osh-native |
4 |
no-host |
configure.ocaml |
411,192 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
178 |
bash |
12 |
no-host |
configure.ocaml |
391,152 |
0 |
0 |
0 |
5,112 |
0 |
1,911 |
157 |
dash |
20 |
no-host |
configure.ocaml |
633,101 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
206 |
osh-cpython |
28 |
no-host |
configure.ocaml |
409,344 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
168 |
osh-native |
5 |
no-host |
configure.tcc |
6,547 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,490 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,076 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,874 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,099,283 |
0 |
0 |
0 |
42,400 |
0 |
18,574 |
1,233 |
bash |
11 |
no-host |
configure.util-linux |
2,264,695 |
1 |
0 |
0 |
42,584 |
0 |
17,467 |
1,204 |
dash |
19 |
no-host |
configure.util-linux |
5,232,585 |
19 |
0 |
0 |
39,120 |
0 |
17,005 |
1,184 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,959,426 |
0 |
0 |
0 |
39,120 |
0 |
17,028 |
1,113 |
osh-native |
6 |
no-host |
configure.yash |
255,944 |
0 |
0 |
0 |
4,120 |
0 |
870 |
89 |
bash |
14 |
no-host |
configure.yash |
245,059 |
0 |
0 |
0 |
3,720 |
0 |
872 |
87 |
dash |
22 |
no-host |
configure.yash |
380,165 |
0 |
0 |
0 |
3,728 |
0 |
855 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
255,350 |
0 |
0 |
0 |
3,736 |
0 |
852 |
83 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,654 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host