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 |
453 |
22 |
23.51 |
1.15 |
bin-true |
no-host |
678 |
553 |
2,272 |
819 |
3.35 |
1.21 |
configure.cpython |
no-host |
15,187 |
15,466 |
29,200 |
15,441 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,895 |
3,795 |
4,657 |
3,788 |
1.20 |
0.97 |
configure.tcc |
no-host |
48 |
42 |
196 |
49 |
4.05 |
1.01 |
configure.util-linux |
no-host |
14,242 |
15,204 |
31,746 |
14,310 |
2.23 |
1.00 |
configure.yash |
no-host |
1,874 |
1,799 |
2,459 |
1,815 |
1.31 |
0.97 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
30.08 |
1.75 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,551 |
1,095 |
22,935 |
3,180 |
8.99 |
1.25 |
bin-true |
no-host |
107,312 |
66,416 |
760,816 |
129,154 |
7.09 |
1.20 |
configure.cpython |
no-host |
2,223,806 |
2,244,496 |
6,189,257 |
2,218,450 |
2.78 |
1.00 |
configure.ocaml |
no-host |
409,982 |
390,975 |
641,019 |
413,015 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,538 |
5,492 |
23,302 |
7,001 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,101,725 |
2,253,496 |
5,332,261 |
1,999,567 |
2.54 |
0.95 |
configure.yash |
no-host |
254,966 |
244,155 |
384,881 |
258,016 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
82 |
3,692 |
346 |
24.13 |
2.26 |
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.3 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.6 |
8.1 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,441 |
1 |
62 |
15.0 |
27.3 |
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,310 |
3 |
58 |
21.3 |
30.3 |
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,788 |
1 |
2 |
2.6 |
20.6 |
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.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,815 |
1 |
2 |
2.6 |
24.4 |
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 |
8.9 |
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 |
14 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
453 |
421 |
35 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
9 |
14 |
8.9 |
osh-native |
1 |
no-host |
bin-true |
678 |
504 |
206 |
3.0 |
bash |
9 |
no-host |
bin-true |
553 |
416 |
143 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,272 |
1,446 |
1,095 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
563 |
272 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,187 |
9,120 |
6,463 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,466 |
9,429 |
6,469 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,200 |
17,908 |
13,210 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,441 |
9,188 |
6,515 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,895 |
1,607 |
1,327 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,795 |
1,606 |
1,204 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,657 |
2,180 |
1,686 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,788 |
1,585 |
1,241 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
29 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
24 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
138 |
61 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
26 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,242 |
9,013 |
5,706 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,204 |
9,185 |
6,507 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,746 |
20,888 |
11,978 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,310 |
8,686 |
5,813 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,874 |
1,137 |
746 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,799 |
1,097 |
705 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,459 |
1,615 |
887 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,815 |
1,040 |
779 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
21 |
28 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,551 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,095 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,935 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,180 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
1 |
no-host |
bin-true |
107,312 |
0 |
0 |
0 |
8 |
0 |
1,991 |
119 |
bash |
9 |
no-host |
bin-true |
66,416 |
0 |
0 |
0 |
8 |
0 |
1,991 |
94 |
dash |
17 |
no-host |
bin-true |
760,816 |
0 |
0 |
0 |
8 |
0 |
1,992 |
152 |
osh-cpython |
25 |
no-host |
bin-true |
129,154 |
0 |
0 |
0 |
16 |
0 |
1,984 |
85 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,806 |
0 |
0 |
0 |
32,928 |
0 |
14,506 |
1,196 |
bash |
10 |
no-host |
configure.cpython |
2,244,496 |
2 |
0 |
0 |
32,992 |
0 |
14,525 |
1,344 |
dash |
18 |
no-host |
configure.cpython |
6,189,257 |
0 |
0 |
0 |
27,512 |
0 |
13,209 |
1,141 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,450 |
0 |
0 |
0 |
27,520 |
0 |
13,281 |
909 |
osh-native |
4 |
no-host |
configure.ocaml |
409,982 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
170 |
bash |
12 |
no-host |
configure.ocaml |
390,975 |
0 |
0 |
0 |
5,112 |
0 |
1,883 |
140 |
dash |
20 |
no-host |
configure.ocaml |
641,019 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
184 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,015 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
171 |
osh-native |
5 |
no-host |
configure.tcc |
6,538 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,492 |
0 |
0 |
0 |
96 |
0 |
47 |
12 |
dash |
21 |
no-host |
configure.tcc |
23,302 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,001 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,725 |
0 |
0 |
0 |
42,400 |
0 |
18,619 |
1,160 |
bash |
11 |
no-host |
configure.util-linux |
2,253,496 |
0 |
0 |
0 |
42,584 |
0 |
17,469 |
1,226 |
dash |
19 |
no-host |
configure.util-linux |
5,332,261 |
3 |
0 |
0 |
39,112 |
0 |
16,952 |
1,374 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,567 |
1 |
0 |
0 |
39,120 |
0 |
16,975 |
1,181 |
osh-native |
6 |
no-host |
configure.yash |
254,966 |
0 |
0 |
0 |
4,120 |
0 |
866 |
97 |
bash |
14 |
no-host |
configure.yash |
244,155 |
0 |
0 |
0 |
3,720 |
0 |
870 |
86 |
dash |
22 |
no-host |
configure.yash |
384,881 |
0 |
0 |
0 |
3,728 |
0 |
854 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
258,016 |
0 |
0 |
0 |
3,736 |
0 |
848 |
80 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
dash |
16 |
no-host |
hello-world |
3,692 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host