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 |
450 |
22 |
23.46 |
1.13 |
bin-true |
no-host |
676 |
547 |
2,234 |
814 |
3.31 |
1.20 |
configure.cpython |
no-host |
14,942 |
14,992 |
28,360 |
15,120 |
1.90 |
1.01 |
configure.ocaml |
no-host |
3,802 |
3,729 |
4,606 |
3,836 |
1.21 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
195 |
49 |
4.12 |
1.03 |
configure.util-linux |
no-host |
13,937 |
14,827 |
30,994 |
14,251 |
2.22 |
1.02 |
configure.yash |
no-host |
1,814 |
1,750 |
2,435 |
1,807 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
32.35 |
1.86 |
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,106 |
22,687 |
3,158 |
8.96 |
1.25 |
bin-true |
no-host |
106,378 |
66,410 |
753,593 |
127,223 |
7.08 |
1.20 |
configure.cpython |
no-host |
2,220,955 |
2,249,116 |
6,127,029 |
2,221,987 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,092 |
391,244 |
638,631 |
413,690 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,541 |
5,479 |
23,293 |
6,996 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,108,681 |
2,255,800 |
5,288,994 |
1,995,494 |
2.51 |
0.95 |
configure.yash |
no-host |
256,407 |
244,263 |
384,617 |
258,502 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,696 |
347 |
24.16 |
2.27 |
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 |
814 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,064 |
2,817 |
9,734 |
78,361 |
66,619 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,120 |
1 |
59 |
15.0 |
27.5 |
1,772,690 |
49,457 |
28,526 |
86,381 |
908,113 |
778,196 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,251 |
3 |
59 |
21.3 |
30.0 |
2,703,426 |
42,790 |
65,831 |
109,643 |
1,320,611 |
1,273,172 |
49,081 |
41 |
131,662 |
1 |
configure.ocaml |
no-host |
3,836 |
1 |
2 |
2.6 |
20.6 |
150,060 |
11,064 |
5,157 |
7,513 |
71,649 |
70,898 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,807 |
1 |
2 |
2.6 |
24.4 |
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.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
450 |
420 |
32 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
15 |
7 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
676 |
511 |
197 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
429 |
126 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,234 |
1,453 |
1,039 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
814 |
583 |
247 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,942 |
9,124 |
6,217 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,992 |
9,196 |
6,214 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,360 |
17,090 |
13,083 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,120 |
9,060 |
6,314 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,802 |
1,673 |
1,159 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,729 |
1,571 |
1,176 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,606 |
2,134 |
1,673 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,836 |
1,647 |
1,228 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
24 |
23 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
26 |
16 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
130 |
68 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
34 |
15 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
13,937 |
8,695 |
5,723 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,827 |
9,090 |
6,233 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,994 |
20,814 |
11,244 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,251 |
8,567 |
5,880 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,814 |
1,035 |
787 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,750 |
1,037 |
714 |
25.4 |
dash |
22 |
no-host |
configure.yash |
2,435 |
1,537 |
941 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,807 |
1,112 |
700 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
36 |
13 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
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,531 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,687 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,158 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
106,378 |
0 |
0 |
0 |
8 |
0 |
1,991 |
152 |
bash |
9 |
no-host |
bin-true |
66,410 |
0 |
0 |
0 |
8 |
0 |
1,991 |
83 |
dash |
17 |
no-host |
bin-true |
753,593 |
0 |
0 |
0 |
8 |
0 |
1,993 |
114 |
osh-cpython |
25 |
no-host |
bin-true |
127,223 |
0 |
0 |
0 |
16 |
0 |
1,991 |
98 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,955 |
0 |
0 |
0 |
32,928 |
0 |
14,501 |
1,143 |
bash |
10 |
no-host |
configure.cpython |
2,249,116 |
0 |
0 |
0 |
32,992 |
0 |
14,621 |
1,130 |
dash |
18 |
no-host |
configure.cpython |
6,127,029 |
2 |
0 |
0 |
27,512 |
0 |
13,229 |
1,100 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,987 |
0 |
0 |
0 |
27,520 |
0 |
13,204 |
1,028 |
osh-native |
4 |
no-host |
configure.ocaml |
410,092 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
171 |
bash |
12 |
no-host |
configure.ocaml |
391,244 |
0 |
0 |
0 |
5,112 |
0 |
1,927 |
149 |
dash |
20 |
no-host |
configure.ocaml |
638,631 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
204 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,690 |
0 |
0 |
0 |
5,120 |
0 |
1,924 |
159 |
osh-native |
5 |
no-host |
configure.tcc |
6,541 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,479 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,293 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,996 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
3 |
no-host |
configure.util-linux |
2,108,681 |
1 |
0 |
0 |
42,400 |
0 |
18,602 |
1,031 |
bash |
11 |
no-host |
configure.util-linux |
2,255,800 |
2 |
0 |
0 |
42,584 |
0 |
17,507 |
1,059 |
dash |
19 |
no-host |
configure.util-linux |
5,288,994 |
4 |
0 |
0 |
39,112 |
0 |
16,942 |
1,182 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,995,494 |
0 |
0 |
0 |
39,120 |
0 |
16,993 |
1,066 |
osh-native |
6 |
no-host |
configure.yash |
256,407 |
0 |
0 |
0 |
4,120 |
0 |
869 |
85 |
bash |
14 |
no-host |
configure.yash |
244,263 |
0 |
0 |
0 |
3,720 |
0 |
870 |
79 |
dash |
22 |
no-host |
configure.yash |
384,617 |
0 |
0 |
0 |
3,728 |
0 |
852 |
115 |
osh-cpython |
30 |
no-host |
configure.yash |
258,502 |
0 |
0 |
0 |
3,736 |
0 |
851 |
55 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,696 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host