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 |
457 |
22 |
23.77 |
1.17 |
bin-true |
no-host |
685 |
544 |
2,287 |
822 |
3.34 |
1.20 |
configure.cpython |
no-host |
15,265 |
15,320 |
29,121 |
15,449 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,844 |
3,804 |
4,692 |
3,879 |
1.22 |
1.01 |
configure.tcc |
no-host |
49 |
42 |
200 |
49 |
4.12 |
1.01 |
configure.util-linux |
no-host |
14,263 |
15,112 |
31,671 |
14,511 |
2.22 |
1.02 |
configure.yash |
no-host |
1,843 |
1,809 |
2,477 |
1,858 |
1.34 |
1.01 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
32.42 |
1.84 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,515 |
1,133 |
22,991 |
3,164 |
9.14 |
1.26 |
bin-true |
no-host |
107,346 |
67,452 |
760,444 |
127,162 |
7.08 |
1.18 |
configure.cpython |
no-host |
2,222,250 |
2,249,373 |
6,174,349 |
2,226,959 |
2.78 |
1.00 |
configure.ocaml |
no-host |
410,230 |
391,029 |
641,360 |
413,595 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,576 |
5,471 |
23,349 |
7,011 |
3.55 |
1.07 |
configure.util-linux |
no-host |
2,105,289 |
2,257,744 |
5,335,988 |
1,996,859 |
2.53 |
0.95 |
configure.yash |
no-host |
256,610 |
244,806 |
384,963 |
258,149 |
1.50 |
1.01 |
hello-world |
no-host |
154 |
85 |
3,685 |
351 |
23.93 |
2.28 |
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.4 |
3,749 |
3,749 |
0 |
684 |
1,892 |
1,173 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
822 |
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,449 |
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,511 |
3 |
62 |
21.3 |
30.3 |
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,879 |
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 |
49 |
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,858 |
1 |
2 |
2.6 |
24.5 |
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 |
5 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
457 |
405 |
55 |
21.7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
9 |
14 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
685 |
527 |
189 |
2.9 |
bash |
9 |
no-host |
bin-true |
544 |
420 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,287 |
1,482 |
1,068 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
822 |
572 |
263 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,265 |
9,070 |
6,594 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,320 |
9,162 |
6,582 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
29,121 |
17,871 |
13,163 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,449 |
9,174 |
6,539 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,844 |
1,722 |
1,161 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,804 |
1,581 |
1,238 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,692 |
2,261 |
1,643 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,879 |
1,614 |
1,305 |
20.4 |
osh-native |
5 |
no-host |
configure.tcc |
49 |
31 |
18 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
37 |
6 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
200 |
130 |
73 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
33 |
17 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
14,263 |
9,074 |
5,683 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
15,112 |
9,204 |
6,401 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,671 |
21,074 |
11,702 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,511 |
8,719 |
5,983 |
30.3 |
osh-native |
6 |
no-host |
configure.yash |
1,843 |
1,127 |
724 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,809 |
1,079 |
729 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,477 |
1,481 |
1,040 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,858 |
1,079 |
781 |
24.5 |
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 |
50 |
24 |
25 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
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,515 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,133 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
22,991 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,164 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,346 |
0 |
0 |
0 |
8 |
0 |
1,988 |
158 |
bash |
9 |
no-host |
bin-true |
67,452 |
0 |
0 |
0 |
8 |
0 |
1,989 |
39 |
dash |
17 |
no-host |
bin-true |
760,444 |
0 |
0 |
0 |
8 |
0 |
2,000 |
388 |
osh-cpython |
25 |
no-host |
bin-true |
127,162 |
0 |
0 |
0 |
16 |
0 |
1,996 |
99 |
osh-native |
2 |
no-host |
configure.cpython |
2,222,250 |
0 |
0 |
0 |
32,928 |
0 |
14,502 |
1,065 |
bash |
10 |
no-host |
configure.cpython |
2,249,373 |
0 |
0 |
0 |
32,992 |
0 |
14,628 |
1,141 |
dash |
18 |
no-host |
configure.cpython |
6,174,349 |
0 |
0 |
0 |
27,512 |
0 |
13,230 |
1,252 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,226,959 |
0 |
0 |
0 |
27,520 |
0 |
13,215 |
1,182 |
osh-native |
4 |
no-host |
configure.ocaml |
410,230 |
0 |
0 |
0 |
5,120 |
0 |
1,952 |
143 |
bash |
12 |
no-host |
configure.ocaml |
391,029 |
0 |
0 |
0 |
5,112 |
0 |
1,901 |
153 |
dash |
20 |
no-host |
configure.ocaml |
641,360 |
0 |
0 |
0 |
5,112 |
0 |
1,855 |
195 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,595 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
155 |
osh-native |
5 |
no-host |
configure.tcc |
6,576 |
0 |
0 |
0 |
104 |
0 |
49 |
6 |
bash |
13 |
no-host |
configure.tcc |
5,471 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,349 |
0 |
0 |
0 |
96 |
0 |
53 |
14 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,011 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,105,289 |
0 |
0 |
0 |
42,400 |
0 |
18,777 |
1,095 |
bash |
11 |
no-host |
configure.util-linux |
2,257,744 |
0 |
0 |
0 |
42,592 |
0 |
17,560 |
1,087 |
dash |
19 |
no-host |
configure.util-linux |
5,335,988 |
14 |
0 |
0 |
39,112 |
0 |
16,971 |
1,257 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,859 |
0 |
0 |
0 |
39,120 |
0 |
17,075 |
973 |
osh-native |
6 |
no-host |
configure.yash |
256,610 |
0 |
0 |
0 |
4,120 |
0 |
870 |
96 |
bash |
14 |
no-host |
configure.yash |
244,806 |
0 |
0 |
0 |
3,720 |
0 |
866 |
94 |
dash |
22 |
no-host |
configure.yash |
384,963 |
0 |
0 |
0 |
3,728 |
0 |
853 |
89 |
osh-cpython |
30 |
no-host |
configure.yash |
258,149 |
0 |
0 |
0 |
3,736 |
0 |
850 |
81 |
osh-native |
0 |
no-host |
hello-world |
154 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,685 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host