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 |
450 |
23 |
23.60 |
1.18 |
bin-true |
no-host |
678 |
540 |
2,234 |
819 |
3.30 |
1.21 |
configure.cpython |
no-host |
15,032 |
15,227 |
28,473 |
15,217 |
1.89 |
1.01 |
configure.ocaml |
no-host |
3,807 |
3,752 |
4,618 |
3,823 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
192 |
49 |
4.01 |
1.02 |
configure.util-linux |
no-host |
14,004 |
14,860 |
31,211 |
14,383 |
2.23 |
1.03 |
configure.yash |
no-host |
1,816 |
1,764 |
2,430 |
1,829 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
47 |
3 |
31.56 |
1.95 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,553 |
1,145 |
23,403 |
3,209 |
9.17 |
1.26 |
bin-true |
no-host |
105,385 |
65,398 |
739,680 |
129,182 |
7.02 |
1.23 |
configure.cpython |
no-host |
2,223,419 |
2,240,795 |
6,107,279 |
2,231,650 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,259 |
391,223 |
637,787 |
413,853 |
1.55 |
1.01 |
configure.tcc |
no-host |
6,537 |
5,465 |
23,155 |
6,983 |
3.54 |
1.07 |
configure.util-linux |
no-host |
2,095,637 |
2,264,427 |
5,301,966 |
2,009,541 |
2.53 |
0.96 |
configure.yash |
no-host |
255,656 |
245,101 |
384,279 |
258,990 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
80 |
3,670 |
347 |
23.99 |
2.27 |
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,873 |
1,165 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
819 |
1 |
2 |
2.7 |
8.1 |
154,687 |
12,991 |
2,798 |
11,737 |
78,342 |
64,608 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,217 |
1 |
59 |
15.8 |
27.5 |
1,772,603 |
49,196 |
28,507 |
101,770 |
908,049 |
762,784 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,383 |
2 |
59 |
22.2 |
30.1 |
2,703,267 |
44,765 |
65,811 |
126,121 |
1,320,493 |
1,256,653 |
49,081 |
41 |
131,622 |
1 |
configure.ocaml |
no-host |
3,823 |
1 |
2 |
2.7 |
20.6 |
150,029 |
11,044 |
5,137 |
8,602 |
71,627 |
69,800 |
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,797 |
14,126 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,829 |
1 |
2 |
2.6 |
24.4 |
139,686 |
7,963 |
6,599 |
7,554 |
70,299 |
61,833 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
1 |
2 |
2.8 |
8.8 |
116,265 |
64,454 |
42,662 |
4,610 |
54,542 |
57,113 |
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 |
19 |
7 |
13 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
450 |
405 |
48 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
18 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
678 |
509 |
198 |
2.9 |
bash |
9 |
no-host |
bin-true |
540 |
409 |
141 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,234 |
1,504 |
981 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
819 |
575 |
258 |
8.1 |
osh-native |
2 |
no-host |
configure.cpython |
15,032 |
8,996 |
6,440 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,227 |
9,188 |
6,456 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,473 |
17,295 |
13,023 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,217 |
8,821 |
6,662 |
27.5 |
osh-native |
4 |
no-host |
configure.ocaml |
3,807 |
1,584 |
1,257 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,752 |
1,526 |
1,244 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,618 |
2,186 |
1,634 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,823 |
1,567 |
1,295 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
48 |
30 |
18 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
28 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
192 |
143 |
51 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
19 |
31 |
19.1 |
osh-native |
3 |
no-host |
configure.util-linux |
14,004 |
8,908 |
5,574 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,860 |
9,219 |
6,129 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
31,211 |
20,786 |
11,508 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,383 |
8,533 |
6,045 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,816 |
1,007 |
816 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,764 |
1,045 |
722 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,430 |
1,441 |
1,032 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,829 |
1,122 |
711 |
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 |
47 |
28 |
19 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,553 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,145 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,403 |
0 |
0 |
0 |
8 |
0 |
47 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,209 |
0 |
0 |
0 |
16 |
0 |
41 |
3 |
osh-native |
1 |
no-host |
bin-true |
105,385 |
0 |
0 |
0 |
8 |
0 |
1,991 |
129 |
bash |
9 |
no-host |
bin-true |
65,398 |
0 |
0 |
0 |
8 |
0 |
1,991 |
84 |
dash |
17 |
no-host |
bin-true |
739,680 |
0 |
0 |
0 |
8 |
0 |
2,001 |
428 |
osh-cpython |
25 |
no-host |
bin-true |
129,182 |
0 |
0 |
0 |
16 |
0 |
1,994 |
51 |
osh-native |
2 |
no-host |
configure.cpython |
2,223,419 |
0 |
0 |
0 |
32,928 |
0 |
14,551 |
1,016 |
bash |
10 |
no-host |
configure.cpython |
2,240,795 |
0 |
0 |
0 |
32,992 |
0 |
14,604 |
1,356 |
dash |
18 |
no-host |
configure.cpython |
6,107,279 |
0 |
0 |
0 |
27,512 |
0 |
13,285 |
1,189 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,650 |
0 |
0 |
0 |
27,520 |
0 |
13,274 |
1,075 |
osh-native |
4 |
no-host |
configure.ocaml |
410,259 |
0 |
0 |
0 |
5,120 |
0 |
1,955 |
188 |
bash |
12 |
no-host |
configure.ocaml |
391,223 |
0 |
0 |
0 |
5,112 |
0 |
1,882 |
145 |
dash |
20 |
no-host |
configure.ocaml |
637,787 |
0 |
0 |
0 |
5,112 |
0 |
1,863 |
190 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,853 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
177 |
osh-native |
5 |
no-host |
configure.tcc |
6,537 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,465 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,155 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,983 |
0 |
0 |
0 |
104 |
0 |
47 |
8 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,637 |
0 |
0 |
0 |
42,408 |
0 |
18,610 |
993 |
bash |
11 |
no-host |
configure.util-linux |
2,264,427 |
1 |
0 |
0 |
42,592 |
0 |
17,438 |
1,041 |
dash |
19 |
no-host |
configure.util-linux |
5,301,966 |
16 |
0 |
0 |
39,112 |
0 |
17,082 |
1,236 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,009,541 |
3 |
0 |
0 |
39,128 |
0 |
17,071 |
1,161 |
osh-native |
6 |
no-host |
configure.yash |
255,656 |
0 |
0 |
0 |
4,120 |
0 |
872 |
73 |
bash |
14 |
no-host |
configure.yash |
245,101 |
0 |
0 |
0 |
3,720 |
0 |
867 |
82 |
dash |
22 |
no-host |
configure.yash |
384,279 |
0 |
0 |
0 |
3,728 |
0 |
854 |
106 |
osh-cpython |
30 |
no-host |
configure.yash |
258,990 |
0 |
0 |
0 |
3,736 |
0 |
852 |
103 |
osh-native |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,670 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host