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 |
454 |
22 |
24.08 |
1.17 |
bin-true |
no-host |
672 |
547 |
2,247 |
813 |
3.34 |
1.21 |
configure.cpython |
no-host |
14,951 |
15,035 |
28,630 |
15,169 |
1.91 |
1.01 |
configure.ocaml |
no-host |
3,805 |
3,729 |
4,615 |
3,814 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
194 |
49 |
4.05 |
1.03 |
configure.util-linux |
no-host |
14,002 |
14,816 |
31,045 |
14,315 |
2.22 |
1.02 |
configure.yash |
no-host |
1,805 |
1,754 |
2,430 |
1,830 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
31.49 |
1.88 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,570 |
1,097 |
22,947 |
3,154 |
8.93 |
1.23 |
bin-true |
no-host |
105,334 |
67,398 |
756,660 |
127,187 |
7.18 |
1.21 |
configure.cpython |
no-host |
2,218,961 |
2,247,630 |
6,193,744 |
2,224,894 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,459 |
390,919 |
639,879 |
413,382 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,561 |
5,466 |
23,239 |
6,987 |
3.54 |
1.06 |
configure.util-linux |
no-host |
2,104,953 |
2,263,048 |
5,325,813 |
2,002,313 |
2.53 |
0.95 |
configure.yash |
no-host |
256,633 |
244,979 |
384,090 |
257,300 |
1.50 |
1.00 |
hello-world |
no-host |
154 |
84 |
3,693 |
352 |
23.98 |
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 |
813 |
1 |
2 |
2.6 |
8.0 |
154,714 |
13,066 |
2,818 |
9,734 |
78,361 |
66,619 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,169 |
1 |
60 |
15.0 |
27.4 |
1,772,690 |
49,108 |
28,528 |
86,381 |
908,113 |
778,196 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,315 |
3 |
59 |
21.3 |
30.4 |
2,703,426 |
42,745 |
65,832 |
109,643 |
1,320,611 |
1,273,172 |
27,391 |
41 |
131,664 |
1 |
configure.ocaml |
no-host |
3,814 |
1 |
2 |
2.6 |
20.6 |
150,060 |
10,993 |
5,163 |
7,513 |
71,649 |
70,898 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,549 |
30,549 |
0 |
1,504 |
14,816 |
14,229 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,830 |
1 |
2 |
2.6 |
24.4 |
139,717 |
7,961 |
6,620 |
6,320 |
70,321 |
63,076 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.2 |
116,292 |
64,471 |
42,681 |
4,555 |
54,561 |
57,176 |
270 |
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 |
17 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
0 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
454 |
412 |
47 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
12 |
11 |
9.2 |
osh-native |
1 |
no-host |
bin-true |
672 |
482 |
222 |
3.0 |
bash |
9 |
no-host |
bin-true |
547 |
424 |
132 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,247 |
1,457 |
1,049 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
559 |
268 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
14,951 |
8,897 |
6,444 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,035 |
9,106 |
6,342 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,630 |
17,355 |
13,149 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,169 |
8,998 |
6,438 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,805 |
1,660 |
1,180 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,729 |
1,675 |
1,073 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,615 |
2,284 |
1,540 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,814 |
1,585 |
1,268 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
30 |
19 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
24 |
18 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
194 |
140 |
57 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
24 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
14,002 |
8,814 |
5,655 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,816 |
9,018 |
6,291 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,045 |
20,680 |
11,452 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,315 |
8,555 |
5,957 |
30.4 |
osh-native |
6 |
no-host |
configure.yash |
1,805 |
1,023 |
790 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,754 |
963 |
794 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,430 |
1,530 |
943 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,830 |
1,026 |
809 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
20 |
27 |
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,570 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,097 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
22,947 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,154 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,334 |
0 |
0 |
0 |
8 |
0 |
1,988 |
96 |
bash |
9 |
no-host |
bin-true |
67,398 |
0 |
0 |
0 |
8 |
0 |
1,992 |
116 |
dash |
17 |
no-host |
bin-true |
756,660 |
0 |
0 |
0 |
8 |
0 |
1,994 |
184 |
osh-cpython |
25 |
no-host |
bin-true |
127,187 |
0 |
0 |
0 |
16 |
0 |
1,990 |
265 |
osh-native |
2 |
no-host |
configure.cpython |
2,218,961 |
0 |
0 |
0 |
32,928 |
0 |
14,544 |
1,118 |
bash |
10 |
no-host |
configure.cpython |
2,247,630 |
0 |
0 |
0 |
32,992 |
0 |
14,652 |
1,135 |
dash |
18 |
no-host |
configure.cpython |
6,193,744 |
1 |
0 |
0 |
27,512 |
0 |
13,277 |
1,400 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,894 |
1 |
0 |
0 |
27,520 |
0 |
13,302 |
1,207 |
osh-native |
4 |
no-host |
configure.ocaml |
410,459 |
0 |
0 |
0 |
5,120 |
0 |
1,955 |
171 |
bash |
12 |
no-host |
configure.ocaml |
390,919 |
0 |
0 |
0 |
5,112 |
0 |
1,869 |
130 |
dash |
20 |
no-host |
configure.ocaml |
639,879 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
200 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,382 |
0 |
0 |
0 |
5,120 |
0 |
1,937 |
171 |
osh-native |
5 |
no-host |
configure.tcc |
6,561 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,466 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,239 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,987 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,104,953 |
0 |
0 |
0 |
42,400 |
0 |
18,618 |
1,181 |
bash |
11 |
no-host |
configure.util-linux |
2,263,048 |
0 |
0 |
0 |
42,584 |
0 |
17,455 |
1,117 |
dash |
19 |
no-host |
configure.util-linux |
5,325,813 |
7 |
0 |
0 |
39,112 |
0 |
16,944 |
1,153 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,313 |
0 |
0 |
0 |
39,120 |
0 |
17,113 |
960 |
osh-native |
6 |
no-host |
configure.yash |
256,633 |
0 |
0 |
0 |
4,120 |
0 |
869 |
101 |
bash |
14 |
no-host |
configure.yash |
244,979 |
0 |
0 |
0 |
3,720 |
0 |
871 |
71 |
dash |
22 |
no-host |
configure.yash |
384,090 |
0 |
0 |
0 |
3,728 |
0 |
850 |
102 |
osh-cpython |
30 |
no-host |
configure.yash |
257,300 |
0 |
0 |
0 |
3,736 |
0 |
850 |
71 |
osh-native |
0 |
no-host |
hello-world |
154 |
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,693 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host