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 |
20 |
9 |
467 |
24 |
23.94 |
1.22 |
bin-true |
no-host |
677 |
553 |
2,253 |
832 |
3.33 |
1.23 |
configure.cpython |
no-host |
15,265 |
15,429 |
29,445 |
15,531 |
1.93 |
1.02 |
configure.ocaml |
no-host |
3,915 |
3,798 |
4,754 |
3,886 |
1.21 |
0.99 |
configure.tcc |
no-host |
48 |
42 |
195 |
49 |
4.07 |
1.02 |
configure.util-linux |
no-host |
14,721 |
15,422 |
32,591 |
14,689 |
2.21 |
1.00 |
configure.yash |
no-host |
1,837 |
1,801 |
2,517 |
1,892 |
1.37 |
1.03 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
32.26 |
1.94 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,557 |
1,102 |
23,321 |
3,209 |
9.12 |
1.25 |
bin-true |
no-host |
105,354 |
65,378 |
754,096 |
130,200 |
7.16 |
1.24 |
configure.cpython |
no-host |
2,232,365 |
2,248,626 |
6,153,381 |
2,234,923 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,269 |
391,269 |
638,421 |
412,697 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,471 |
23,225 |
6,958 |
3.55 |
1.06 |
configure.util-linux |
no-host |
2,103,020 |
2,257,653 |
5,335,473 |
2,015,301 |
2.54 |
0.96 |
configure.yash |
no-host |
256,007 |
244,809 |
386,100 |
257,633 |
1.51 |
1.01 |
hello-world |
no-host |
150 |
79 |
3,666 |
346 |
24.44 |
2.31 |
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,722 |
3,722 |
0 |
684 |
1,874 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
832 |
1 |
2 |
2.7 |
7.9 |
154,687 |
12,991 |
2,798 |
11,737 |
78,343 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,531 |
1 |
64 |
15.8 |
27.1 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,050 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,689 |
3 |
64 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,791 |
126,121 |
1,320,494 |
1,256,652 |
49,081 |
41 |
131,582 |
1 |
configure.ocaml |
no-host |
3,886 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,628 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,522 |
30,522 |
0 |
1,599 |
14,798 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,892 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,300 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
24 |
1 |
2 |
2.8 |
8.7 |
116,265 |
64,454 |
42,662 |
4,610 |
54,543 |
57,112 |
478 |
3 |
85,324 |
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 |
20 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
467 |
406 |
64 |
21.5 |
osh-cpython |
31 |
no-host |
abuild-print-help |
24 |
17 |
7 |
8.7 |
osh-native |
1 |
no-host |
bin-true |
677 |
503 |
208 |
2.9 |
bash |
9 |
no-host |
bin-true |
553 |
414 |
147 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,253 |
1,533 |
979 |
17.4 |
osh-cpython |
25 |
no-host |
bin-true |
832 |
569 |
282 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
15,265 |
9,139 |
6,533 |
27.0 |
bash |
10 |
no-host |
configure.cpython |
15,429 |
9,423 |
6,441 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,445 |
17,829 |
13,523 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,531 |
9,147 |
6,658 |
27.1 |
osh-native |
4 |
no-host |
configure.ocaml |
3,915 |
1,702 |
1,254 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,798 |
1,593 |
1,227 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,754 |
2,297 |
1,664 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,886 |
1,618 |
1,307 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
32 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
28 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
195 |
141 |
57 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
34 |
16 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,721 |
9,176 |
6,041 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,422 |
9,536 |
6,402 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,591 |
21,542 |
12,181 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,689 |
8,725 |
6,165 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,837 |
1,061 |
784 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,801 |
1,044 |
760 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,517 |
1,608 |
953 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,892 |
1,142 |
753 |
24.4 |
osh-native |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
28 |
20 |
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,557 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,102 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,321 |
0 |
0 |
0 |
8 |
0 |
47 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,209 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
105,354 |
0 |
0 |
0 |
8 |
0 |
1,990 |
50 |
bash |
9 |
no-host |
bin-true |
65,378 |
0 |
0 |
0 |
8 |
0 |
1,983 |
126 |
dash |
17 |
no-host |
bin-true |
754,096 |
0 |
0 |
0 |
8 |
0 |
1,997 |
226 |
osh-cpython |
25 |
no-host |
bin-true |
130,200 |
0 |
0 |
0 |
16 |
0 |
1,986 |
157 |
osh-native |
2 |
no-host |
configure.cpython |
2,232,365 |
0 |
0 |
0 |
32,928 |
0 |
14,446 |
1,089 |
bash |
10 |
no-host |
configure.cpython |
2,248,626 |
0 |
0 |
0 |
32,992 |
0 |
14,547 |
1,097 |
dash |
18 |
no-host |
configure.cpython |
6,153,381 |
1 |
0 |
0 |
27,512 |
0 |
13,247 |
1,274 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,923 |
0 |
0 |
0 |
27,520 |
0 |
13,291 |
1,108 |
osh-native |
4 |
no-host |
configure.ocaml |
410,269 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
205 |
bash |
12 |
no-host |
configure.ocaml |
391,269 |
0 |
0 |
0 |
5,112 |
0 |
1,934 |
149 |
dash |
20 |
no-host |
configure.ocaml |
638,421 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
180 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,697 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
152 |
osh-native |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,471 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,225 |
0 |
0 |
0 |
96 |
0 |
54 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,958 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
3 |
no-host |
configure.util-linux |
2,103,020 |
0 |
0 |
0 |
42,400 |
0 |
18,554 |
1,101 |
bash |
11 |
no-host |
configure.util-linux |
2,257,653 |
0 |
0 |
0 |
42,584 |
0 |
17,527 |
1,096 |
dash |
19 |
no-host |
configure.util-linux |
5,335,473 |
12 |
0 |
0 |
39,120 |
0 |
17,055 |
1,251 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,015,301 |
1 |
0 |
0 |
39,128 |
0 |
17,087 |
1,096 |
osh-native |
6 |
no-host |
configure.yash |
256,007 |
0 |
0 |
0 |
4,120 |
0 |
869 |
75 |
bash |
14 |
no-host |
configure.yash |
244,809 |
0 |
0 |
0 |
3,720 |
0 |
870 |
74 |
dash |
22 |
no-host |
configure.yash |
386,100 |
0 |
0 |
0 |
3,728 |
0 |
857 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
257,633 |
0 |
0 |
0 |
3,736 |
0 |
854 |
83 |
osh-native |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,666 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host