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 |
460 |
23 |
24.40 |
1.20 |
bin-true |
no-host |
678 |
541 |
2,274 |
816 |
3.36 |
1.20 |
configure.cpython |
no-host |
15,422 |
15,375 |
29,713 |
15,639 |
1.93 |
1.01 |
configure.ocaml |
no-host |
3,830 |
3,781 |
4,757 |
3,924 |
1.24 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
199 |
50 |
4.12 |
1.04 |
configure.util-linux |
no-host |
14,311 |
15,323 |
32,461 |
14,857 |
2.27 |
1.04 |
configure.yash |
no-host |
1,851 |
1,806 |
2,534 |
1,895 |
1.37 |
1.02 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
30.88 |
1.82 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,518 |
1,109 |
22,814 |
3,182 |
9.06 |
1.26 |
bin-true |
no-host |
106,292 |
66,452 |
757,124 |
128,173 |
7.12 |
1.21 |
configure.cpython |
no-host |
2,214,108 |
2,238,390 |
6,160,525 |
2,213,700 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,330 |
391,512 |
640,036 |
413,999 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,550 |
5,458 |
23,309 |
6,981 |
3.56 |
1.07 |
configure.util-linux |
no-host |
2,112,128 |
2,255,544 |
5,316,353 |
2,004,824 |
2.52 |
0.95 |
configure.yash |
no-host |
256,301 |
245,209 |
383,588 |
258,227 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
84 |
3,688 |
350 |
24.10 |
2.29 |
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 |
816 |
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,639 |
1 |
64 |
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,857 |
3 |
65 |
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,924 |
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 |
50 |
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,895 |
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 |
23 |
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 |
11 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
460 |
408 |
55 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
20 |
3 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
678 |
498 |
213 |
2.9 |
bash |
9 |
no-host |
bin-true |
541 |
416 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,274 |
1,533 |
1,009 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
816 |
566 |
263 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,422 |
9,250 |
6,581 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,375 |
9,157 |
6,644 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,713 |
17,863 |
13,789 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,639 |
9,226 |
6,680 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,830 |
1,588 |
1,282 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,781 |
1,662 |
1,138 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,757 |
2,324 |
1,644 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,924 |
1,638 |
1,325 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
35 |
13 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
22 |
20 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
199 |
146 |
56 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
34 |
17 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,311 |
9,029 |
5,765 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,323 |
9,280 |
6,526 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,461 |
21,444 |
12,160 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,857 |
9,007 |
6,044 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,851 |
1,118 |
742 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,806 |
1,067 |
742 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,534 |
1,549 |
1,031 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,895 |
1,064 |
834 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
33 |
16 |
17.3 |
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,518 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
22,814 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,182 |
0 |
0 |
0 |
16 |
0 |
39 |
5 |
osh-native |
1 |
no-host |
bin-true |
106,292 |
0 |
0 |
0 |
8 |
0 |
1,993 |
229 |
bash |
9 |
no-host |
bin-true |
66,452 |
0 |
0 |
0 |
8 |
0 |
1,990 |
52 |
dash |
17 |
no-host |
bin-true |
757,124 |
0 |
0 |
0 |
8 |
0 |
1,994 |
185 |
osh-cpython |
25 |
no-host |
bin-true |
128,173 |
0 |
0 |
0 |
16 |
0 |
1,989 |
69 |
osh-native |
2 |
no-host |
configure.cpython |
2,214,108 |
0 |
0 |
0 |
32,928 |
0 |
14,462 |
1,037 |
bash |
10 |
no-host |
configure.cpython |
2,238,390 |
0 |
0 |
0 |
32,992 |
0 |
14,535 |
1,336 |
dash |
18 |
no-host |
configure.cpython |
6,160,525 |
1 |
0 |
0 |
27,512 |
0 |
13,245 |
1,386 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,213,700 |
0 |
0 |
0 |
27,520 |
0 |
13,243 |
1,091 |
osh-native |
4 |
no-host |
configure.ocaml |
410,330 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
164 |
bash |
12 |
no-host |
configure.ocaml |
391,512 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
144 |
dash |
20 |
no-host |
configure.ocaml |
640,036 |
0 |
0 |
0 |
5,112 |
0 |
1,844 |
200 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,999 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
171 |
osh-native |
5 |
no-host |
configure.tcc |
6,550 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,458 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,309 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,981 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,112,128 |
0 |
0 |
0 |
42,408 |
0 |
18,556 |
986 |
bash |
11 |
no-host |
configure.util-linux |
2,255,544 |
1 |
0 |
0 |
42,592 |
0 |
17,454 |
1,107 |
dash |
19 |
no-host |
configure.util-linux |
5,316,353 |
10 |
0 |
0 |
39,112 |
0 |
16,921 |
1,306 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,004,824 |
0 |
0 |
0 |
39,120 |
0 |
16,925 |
1,013 |
osh-native |
6 |
no-host |
configure.yash |
256,301 |
0 |
0 |
0 |
4,120 |
0 |
868 |
82 |
bash |
14 |
no-host |
configure.yash |
245,209 |
0 |
0 |
0 |
3,720 |
0 |
867 |
88 |
dash |
22 |
no-host |
configure.yash |
383,588 |
0 |
0 |
0 |
3,728 |
0 |
849 |
88 |
osh-cpython |
30 |
no-host |
configure.yash |
258,227 |
0 |
0 |
0 |
3,736 |
0 |
849 |
82 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
84 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,688 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host