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 |
451 |
22 |
23.85 |
1.14 |
bin-true |
no-host |
676 |
535 |
2,229 |
811 |
3.29 |
1.20 |
configure.cpython |
no-host |
14,772 |
14,828 |
28,154 |
14,997 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,749 |
3,687 |
4,576 |
3,770 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
190 |
48 |
4.02 |
1.02 |
configure.util-linux |
no-host |
13,765 |
14,652 |
30,568 |
14,096 |
2.22 |
1.02 |
configure.yash |
no-host |
1,794 |
1,745 |
2,419 |
1,803 |
1.35 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
32.91 |
1.91 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,537 |
1,104 |
22,841 |
3,194 |
9.00 |
1.26 |
bin-true |
no-host |
108,308 |
65,384 |
755,353 |
128,162 |
6.97 |
1.18 |
configure.cpython |
no-host |
2,220,996 |
2,246,544 |
6,164,544 |
2,218,998 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,938 |
391,404 |
641,335 |
413,697 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,552 |
5,499 |
23,306 |
6,989 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,101,540 |
2,256,348 |
5,321,807 |
1,990,488 |
2.53 |
0.95 |
configure.yash |
no-host |
256,640 |
243,931 |
385,300 |
257,933 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
83 |
3,692 |
352 |
24.13 |
2.30 |
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 |
811 |
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 |
14,997 |
2 |
57 |
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 |
14,096 |
3 |
57 |
21.3 |
30.1 |
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,770 |
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 |
48 |
0 |
0 |
1.3 |
19.3 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,803 |
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 |
14 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
451 |
406 |
48 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
3 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
676 |
510 |
199 |
3.0 |
bash |
9 |
no-host |
bin-true |
535 |
418 |
126 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,229 |
1,475 |
1,013 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
581 |
247 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,772 |
8,891 |
6,278 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
14,828 |
9,009 |
6,242 |
27.7 |
dash |
18 |
no-host |
configure.cpython |
28,154 |
17,311 |
12,653 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,997 |
8,678 |
6,581 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,749 |
1,550 |
1,237 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,687 |
1,581 |
1,125 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,576 |
2,271 |
1,510 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,770 |
1,589 |
1,221 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
36 |
12 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
29 |
13 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
190 |
142 |
51 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,765 |
8,602 |
5,641 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,652 |
8,934 |
6,213 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,568 |
20,459 |
11,165 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,096 |
8,684 |
5,615 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,794 |
1,046 |
754 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,745 |
954 |
792 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,419 |
1,494 |
965 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,803 |
1,016 |
791 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
49 |
26 |
22 |
17.4 |
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,537 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,104 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,841 |
0 |
0 |
0 |
8 |
0 |
45 |
15 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,194 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
1 |
no-host |
bin-true |
108,308 |
0 |
0 |
0 |
8 |
0 |
1,994 |
89 |
bash |
9 |
no-host |
bin-true |
65,384 |
0 |
0 |
0 |
8 |
0 |
1,987 |
75 |
dash |
17 |
no-host |
bin-true |
755,353 |
0 |
0 |
0 |
8 |
0 |
1,996 |
161 |
osh-cpython |
25 |
no-host |
bin-true |
128,162 |
0 |
0 |
0 |
16 |
0 |
1,997 |
165 |
osh-native |
2 |
no-host |
configure.cpython |
2,220,996 |
1 |
0 |
0 |
32,928 |
0 |
14,523 |
1,144 |
bash |
10 |
no-host |
configure.cpython |
2,246,544 |
0 |
0 |
0 |
32,992 |
0 |
14,641 |
943 |
dash |
18 |
no-host |
configure.cpython |
6,164,544 |
0 |
0 |
0 |
27,512 |
0 |
13,289 |
1,185 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,998 |
0 |
0 |
0 |
27,520 |
0 |
13,330 |
1,087 |
osh-native |
4 |
no-host |
configure.ocaml |
410,938 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
178 |
bash |
12 |
no-host |
configure.ocaml |
391,404 |
0 |
0 |
0 |
5,112 |
0 |
1,918 |
142 |
dash |
20 |
no-host |
configure.ocaml |
641,335 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
202 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,697 |
0 |
0 |
0 |
5,120 |
0 |
1,925 |
166 |
osh-native |
5 |
no-host |
configure.tcc |
6,552 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,499 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,306 |
0 |
0 |
0 |
96 |
0 |
53 |
5 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,989 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
3 |
no-host |
configure.util-linux |
2,101,540 |
1 |
0 |
0 |
42,400 |
0 |
18,552 |
1,160 |
bash |
11 |
no-host |
configure.util-linux |
2,256,348 |
1 |
0 |
0 |
42,592 |
0 |
17,478 |
1,152 |
dash |
19 |
no-host |
configure.util-linux |
5,321,807 |
6 |
0 |
0 |
39,112 |
0 |
16,963 |
1,298 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,990,488 |
4 |
0 |
0 |
39,128 |
0 |
16,964 |
981 |
osh-native |
6 |
no-host |
configure.yash |
256,640 |
0 |
0 |
0 |
4,120 |
0 |
881 |
84 |
bash |
14 |
no-host |
configure.yash |
243,931 |
0 |
0 |
0 |
3,720 |
0 |
862 |
76 |
dash |
22 |
no-host |
configure.yash |
385,300 |
0 |
0 |
0 |
3,728 |
0 |
852 |
90 |
osh-cpython |
30 |
no-host |
configure.yash |
257,933 |
0 |
0 |
0 |
3,736 |
0 |
850 |
85 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
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 |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host