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 |
452 |
22 |
23.61 |
1.15 |
bin-true |
no-host |
678 |
547 |
2,286 |
813 |
3.37 |
1.20 |
configure.cpython |
no-host |
14,758 |
14,916 |
28,138 |
15,025 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,776 |
3,704 |
4,576 |
3,795 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
192 |
49 |
4.06 |
1.04 |
configure.util-linux |
no-host |
13,884 |
14,688 |
30,651 |
14,176 |
2.21 |
1.02 |
configure.yash |
no-host |
1,797 |
1,740 |
2,399 |
1,811 |
1.33 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.92 |
1.85 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,517 |
1,134 |
23,080 |
3,159 |
9.17 |
1.26 |
bin-true |
no-host |
106,431 |
66,408 |
760,324 |
128,171 |
7.14 |
1.20 |
configure.cpython |
no-host |
2,220,460 |
2,252,806 |
6,165,222 |
2,232,098 |
2.78 |
1.01 |
configure.ocaml |
no-host |
410,591 |
391,545 |
640,275 |
413,930 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,555 |
5,468 |
23,258 |
6,994 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,103,744 |
2,257,352 |
5,331,047 |
2,002,287 |
2.53 |
0.95 |
configure.yash |
no-host |
255,005 |
244,224 |
385,744 |
258,133 |
1.51 |
1.01 |
hello-world |
no-host |
151 |
82 |
3,691 |
351 |
24.44 |
2.32 |
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,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,025 |
1 |
59 |
15.0 |
27.5 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,176 |
3 |
58 |
21.3 |
30.0 |
2,703,426 |
42,745 |
65,832 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,795 |
1 |
2 |
2.6 |
20.4 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,811 |
1 |
2 |
2.6 |
24.2 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
3 |
85,362 |
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 |
19 |
0 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
452 |
399 |
56 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
678 |
511 |
199 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
422 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,286 |
1,567 |
981 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
574 |
253 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,758 |
9,000 |
6,155 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,916 |
9,277 |
6,069 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,138 |
17,522 |
12,452 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,025 |
8,954 |
6,343 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,776 |
1,600 |
1,213 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,704 |
1,553 |
1,170 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,576 |
2,186 |
1,594 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,795 |
1,629 |
1,206 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
33 |
14 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
23 |
19 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
146 |
49 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
35 |
15 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,884 |
8,852 |
5,510 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,688 |
9,207 |
5,978 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,651 |
20,581 |
11,143 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,176 |
8,611 |
5,768 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,797 |
1,054 |
751 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,740 |
970 |
774 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,399 |
1,551 |
890 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,811 |
1,019 |
797 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.6 |
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,517 |
0 |
0 |
0 |
16 |
0 |
41 |
6 |
bash |
15 |
no-host |
abuild-print-help |
1,134 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,080 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,159 |
0 |
0 |
0 |
16 |
0 |
40 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,431 |
0 |
0 |
0 |
8 |
0 |
1,991 |
64 |
bash |
9 |
no-host |
bin-true |
66,408 |
0 |
0 |
0 |
8 |
0 |
1,988 |
66 |
dash |
17 |
no-host |
bin-true |
760,324 |
0 |
0 |
0 |
8 |
0 |
1,993 |
445 |
osh-cpython |
25 |
no-host |
bin-true |
128,171 |
0 |
0 |
0 |
16 |
0 |
1,988 |
66 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,460 |
0 |
0 |
0 |
32,928 |
0 |
14,458 |
1,098 |
bash |
10 |
no-host |
configure.cpython |
2,252,806 |
0 |
0 |
0 |
32,992 |
0 |
14,631 |
1,183 |
dash |
18 |
no-host |
configure.cpython |
6,165,222 |
0 |
0 |
0 |
27,512 |
0 |
13,243 |
1,232 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,232,098 |
0 |
0 |
0 |
27,520 |
0 |
13,271 |
1,125 |
osh-native |
4 |
no-host |
configure.ocaml |
410,591 |
0 |
0 |
0 |
5,120 |
0 |
1,960 |
196 |
bash |
12 |
no-host |
configure.ocaml |
391,545 |
0 |
0 |
0 |
5,112 |
0 |
1,914 |
155 |
dash |
20 |
no-host |
configure.ocaml |
640,275 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
327 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,930 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
173 |
osh-native |
5 |
no-host |
configure.tcc |
6,555 |
0 |
0 |
0 |
104 |
0 |
49 |
0 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,258 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,994 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,744 |
0 |
0 |
0 |
42,408 |
0 |
18,578 |
996 |
bash |
11 |
no-host |
configure.util-linux |
2,257,352 |
0 |
0 |
0 |
42,592 |
0 |
17,411 |
1,059 |
dash |
19 |
no-host |
configure.util-linux |
5,331,047 |
4 |
0 |
0 |
39,112 |
0 |
16,945 |
1,202 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,287 |
4 |
0 |
0 |
39,120 |
0 |
16,999 |
960 |
osh-native |
6 |
no-host |
configure.yash |
255,005 |
0 |
0 |
0 |
4,120 |
0 |
870 |
87 |
bash |
14 |
no-host |
configure.yash |
244,224 |
0 |
0 |
0 |
3,720 |
0 |
866 |
79 |
dash |
22 |
no-host |
configure.yash |
385,744 |
0 |
0 |
0 |
3,728 |
0 |
851 |
82 |
osh-cpython |
30 |
no-host |
configure.yash |
258,133 |
0 |
0 |
0 |
3,736 |
0 |
848 |
82 |
osh-native |
0 |
no-host |
hello-world |
151 |
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,691 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host