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 |
9 |
466 |
22 |
24.25 |
1.17 |
bin-true |
no-host |
692 |
554 |
2,352 |
844 |
3.40 |
1.22 |
configure.cpython |
no-host |
15,999 |
15,804 |
29,651 |
16,107 |
1.85 |
1.01 |
configure.ocaml |
no-host |
3,976 |
3,847 |
4,854 |
3,973 |
1.22 |
1.00 |
configure.tcc |
no-host |
49 |
43 |
206 |
51 |
4.22 |
1.04 |
configure.util-linux |
no-host |
15,015 |
15,541 |
33,006 |
15,055 |
2.20 |
1.00 |
configure.yash |
no-host |
1,893 |
1,830 |
2,574 |
1,907 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
28.14 |
1.67 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,531 |
1,090 |
22,702 |
3,181 |
8.97 |
1.26 |
bin-true |
no-host |
105,408 |
67,399 |
754,638 |
127,213 |
7.16 |
1.21 |
configure.cpython |
no-host |
2,222,116 |
2,241,681 |
6,131,135 |
2,221,502 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,259 |
391,183 |
638,624 |
413,682 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,581 |
5,489 |
23,297 |
6,987 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,105,569 |
2,257,675 |
5,297,217 |
1,995,912 |
2.52 |
0.95 |
configure.yash |
no-host |
255,947 |
245,227 |
384,001 |
258,438 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
82 |
3,692 |
348 |
23.97 |
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.2 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
844 |
1 |
2 |
2.6 |
8.1 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,107 |
1 |
65 |
15.0 |
27.4 |
1,772,690 |
49,457 |
28,526 |
86,381 |
908,113 |
778,196 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
15,055 |
3 |
66 |
21.3 |
30.1 |
2,703,426 |
44,785 |
65,811 |
109,643 |
1,320,611 |
1,273,172 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,973 |
1 |
2 |
2.6 |
20.4 |
150,060 |
11,064 |
5,157 |
7,513 |
71,649 |
70,898 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
51 |
0 |
0 |
1.3 |
19.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,907 |
1 |
2 |
2.6 |
24.2 |
139,717 |
7,982 |
6,618 |
6,320 |
70,321 |
63,076 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,473 |
42,681 |
4,555 |
54,561 |
57,176 |
478 |
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 |
13 |
7 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
466 |
419 |
50 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
4 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
692 |
495 |
228 |
3.0 |
bash |
9 |
no-host |
bin-true |
554 |
417 |
147 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,352 |
1,499 |
1,129 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
844 |
603 |
253 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,999 |
9,452 |
6,969 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,804 |
9,375 |
6,870 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,651 |
17,971 |
13,592 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
16,107 |
9,378 |
7,002 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,976 |
1,703 |
1,306 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,847 |
1,622 |
1,236 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,854 |
2,313 |
1,761 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,973 |
1,718 |
1,295 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
34 |
15 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
43 |
26 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
206 |
153 |
56 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
40 |
11 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
15,015 |
9,333 |
6,171 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,541 |
9,368 |
6,665 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
33,006 |
21,724 |
12,374 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
15,055 |
9,078 |
6,169 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,893 |
1,108 |
795 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,830 |
1,083 |
750 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,574 |
1,546 |
1,073 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,907 |
1,138 |
773 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
51 |
37 |
13 |
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,531 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,090 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,702 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,181 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
1 |
no-host |
bin-true |
105,408 |
0 |
0 |
0 |
8 |
0 |
1,997 |
86 |
bash |
9 |
no-host |
bin-true |
67,399 |
0 |
0 |
0 |
8 |
0 |
1,985 |
62 |
dash |
17 |
no-host |
bin-true |
754,638 |
0 |
0 |
0 |
8 |
0 |
1,995 |
157 |
osh-cpython |
25 |
no-host |
bin-true |
127,213 |
0 |
0 |
0 |
16 |
0 |
1,989 |
202 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,116 |
0 |
0 |
0 |
32,928 |
0 |
14,140 |
1,145 |
bash |
10 |
no-host |
configure.cpython |
2,241,681 |
0 |
0 |
0 |
32,992 |
0 |
14,659 |
1,089 |
dash |
18 |
no-host |
configure.cpython |
6,131,135 |
1 |
0 |
0 |
27,512 |
0 |
13,171 |
1,212 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,502 |
0 |
0 |
0 |
27,520 |
0 |
13,310 |
1,060 |
osh-native |
4 |
no-host |
configure.ocaml |
410,259 |
0 |
0 |
0 |
5,120 |
0 |
1,961 |
156 |
bash |
12 |
no-host |
configure.ocaml |
391,183 |
0 |
0 |
0 |
5,112 |
0 |
1,930 |
163 |
dash |
20 |
no-host |
configure.ocaml |
638,624 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
190 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,682 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
163 |
osh-native |
5 |
no-host |
configure.tcc |
6,581 |
0 |
0 |
0 |
104 |
0 |
49 |
13 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,297 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,987 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,569 |
0 |
0 |
0 |
42,408 |
0 |
18,521 |
1,103 |
bash |
11 |
no-host |
configure.util-linux |
2,257,675 |
1 |
0 |
0 |
42,592 |
0 |
17,412 |
1,275 |
dash |
19 |
no-host |
configure.util-linux |
5,297,217 |
9 |
0 |
0 |
39,144 |
0 |
16,927 |
1,335 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,995,912 |
0 |
0 |
0 |
39,128 |
0 |
16,923 |
1,102 |
osh-native |
6 |
no-host |
configure.yash |
255,947 |
0 |
0 |
0 |
4,120 |
0 |
868 |
92 |
bash |
14 |
no-host |
configure.yash |
245,227 |
0 |
0 |
0 |
3,720 |
0 |
868 |
80 |
dash |
22 |
no-host |
configure.yash |
384,001 |
0 |
0 |
0 |
3,728 |
0 |
853 |
97 |
osh-cpython |
30 |
no-host |
configure.yash |
258,438 |
0 |
0 |
0 |
3,736 |
0 |
848 |
92 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,692 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host