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 |
461 |
22 |
23.90 |
1.11 |
bin-true |
no-host |
676 |
544 |
2,232 |
813 |
3.30 |
1.20 |
configure.cpython |
no-host |
15,047 |
15,137 |
28,914 |
15,293 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,848 |
3,757 |
4,643 |
3,827 |
1.21 |
0.99 |
configure.tcc |
no-host |
48 |
43 |
195 |
49 |
4.05 |
1.02 |
configure.util-linux |
no-host |
14,099 |
14,905 |
31,011 |
14,445 |
2.20 |
1.02 |
configure.yash |
no-host |
1,831 |
1,783 |
2,480 |
1,835 |
1.35 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
31.55 |
1.80 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,542 |
1,102 |
23,443 |
3,175 |
9.22 |
1.25 |
bin-true |
no-host |
107,326 |
65,452 |
747,656 |
127,176 |
6.97 |
1.18 |
configure.cpython |
no-host |
2,219,586 |
2,248,620 |
6,129,789 |
2,220,095 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,408 |
390,656 |
639,785 |
412,722 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,531 |
5,487 |
23,279 |
6,974 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,094,952 |
2,253,192 |
5,319,079 |
2,011,446 |
2.54 |
0.96 |
configure.yash |
no-host |
256,693 |
245,060 |
384,372 |
258,660 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,679 |
343 |
24.05 |
2.24 |
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,727 |
3,727 |
0 |
684 |
1,877 |
1,166 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.7 |
7.6 |
154,692 |
12,780 |
2,737 |
11,737 |
78,346 |
64,609 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,293 |
1 |
61 |
15.8 |
27.3 |
1,772,668 |
44,567 |
28,446 |
101,770 |
908,098 |
762,800 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,445 |
3 |
61 |
22.2 |
30.0 |
2,703,404 |
45,079 |
65,730 |
126,121 |
1,320,596 |
1,256,687 |
49,081 |
41 |
131,460 |
1 |
configure.ocaml |
no-host |
3,827 |
0 |
2 |
2.7 |
20.6 |
150,038 |
10,983 |
5,076 |
8,602 |
71,634 |
69,802 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,527 |
30,527 |
0 |
1,599 |
14,801 |
14,127 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,835 |
1 |
2 |
2.6 |
24.4 |
139,695 |
7,902 |
6,538 |
7,554 |
70,306 |
61,835 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.7 |
116,270 |
64,393 |
42,601 |
4,610 |
54,546 |
57,114 |
478 |
3 |
85,202 |
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 |
11 |
9 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
461 |
432 |
32 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
676 |
494 |
217 |
2.9 |
bash |
9 |
no-host |
bin-true |
544 |
423 |
129 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,232 |
1,464 |
1,031 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
574 |
253 |
7.6 |
osh-native |
2 |
no-host |
configure.cpython |
15,047 |
8,987 |
6,456 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,137 |
9,012 |
6,548 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,914 |
17,741 |
13,069 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,293 |
9,088 |
6,469 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,848 |
1,610 |
1,260 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,757 |
1,598 |
1,179 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,643 |
2,183 |
1,667 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,827 |
1,576 |
1,287 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
32 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
29 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
149 |
49 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
41 |
9 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,099 |
8,790 |
5,783 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,905 |
9,171 |
6,229 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,011 |
20,612 |
11,486 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,445 |
8,701 |
5,934 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,831 |
1,096 |
741 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,783 |
998 |
789 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,480 |
1,534 |
987 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,835 |
1,053 |
785 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
36 |
12 |
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,542 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,443 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,175 |
0 |
0 |
0 |
16 |
0 |
41 |
6 |
osh-native |
1 |
no-host |
bin-true |
107,326 |
0 |
0 |
0 |
8 |
0 |
1,988 |
50 |
bash |
9 |
no-host |
bin-true |
65,452 |
0 |
0 |
0 |
8 |
0 |
1,987 |
34 |
dash |
17 |
no-host |
bin-true |
747,656 |
0 |
0 |
0 |
8 |
0 |
1,991 |
118 |
osh-cpython |
25 |
no-host |
bin-true |
127,176 |
0 |
0 |
0 |
16 |
0 |
1,992 |
59 |
osh-native |
2 |
no-host |
configure.cpython |
2,219,586 |
0 |
0 |
0 |
32,928 |
0 |
14,445 |
1,129 |
bash |
10 |
no-host |
configure.cpython |
2,248,620 |
0 |
0 |
0 |
32,992 |
0 |
14,661 |
1,013 |
dash |
18 |
no-host |
configure.cpython |
6,129,789 |
1 |
0 |
0 |
27,512 |
0 |
13,287 |
1,205 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,220,095 |
0 |
0 |
0 |
27,520 |
0 |
13,226 |
1,079 |
osh-native |
4 |
no-host |
configure.ocaml |
410,408 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
182 |
bash |
12 |
no-host |
configure.ocaml |
390,656 |
0 |
0 |
0 |
5,112 |
0 |
1,912 |
163 |
dash |
20 |
no-host |
configure.ocaml |
639,785 |
0 |
0 |
0 |
5,112 |
0 |
1,856 |
169 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,722 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
136 |
osh-native |
5 |
no-host |
configure.tcc |
6,531 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,487 |
0 |
0 |
0 |
96 |
0 |
47 |
12 |
dash |
21 |
no-host |
configure.tcc |
23,279 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,974 |
0 |
0 |
0 |
104 |
0 |
46 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,952 |
1 |
0 |
0 |
42,400 |
0 |
18,592 |
1,097 |
bash |
11 |
no-host |
configure.util-linux |
2,253,192 |
0 |
0 |
0 |
42,584 |
0 |
17,475 |
1,146 |
dash |
19 |
no-host |
configure.util-linux |
5,319,079 |
10 |
0 |
0 |
39,112 |
0 |
17,059 |
1,234 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,011,446 |
0 |
0 |
0 |
39,120 |
0 |
17,061 |
1,058 |
osh-native |
6 |
no-host |
configure.yash |
256,693 |
0 |
0 |
0 |
4,120 |
0 |
872 |
90 |
bash |
14 |
no-host |
configure.yash |
245,060 |
0 |
0 |
0 |
3,720 |
0 |
867 |
67 |
dash |
22 |
no-host |
configure.yash |
384,372 |
0 |
0 |
0 |
3,728 |
0 |
857 |
243 |
osh-cpython |
30 |
no-host |
configure.yash |
258,660 |
0 |
0 |
0 |
3,736 |
0 |
852 |
95 |
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,679 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host