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 |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
9 |
459 |
22 |
21 |
24.03 |
1.16 |
bin-true |
no-host |
687 |
538 |
2,340 |
812 |
808 |
3.41 |
1.18 |
configure.cpython |
no-host |
15,362 |
15,196 |
29,267 |
14,995 |
15,039 |
1.91 |
0.98 |
configure.ocaml |
no-host |
3,863 |
3,754 |
4,676 |
3,795 |
3,773 |
1.21 |
0.98 |
configure.tcc |
no-host |
47 |
41 |
255 |
48 |
47 |
5.39 |
1.02 |
configure.util-linux |
no-host |
14,302 |
14,937 |
31,802 |
14,190 |
14,103 |
2.22 |
0.99 |
configure.yash |
no-host |
1,810 |
1,774 |
2,486 |
1,808 |
1,787 |
1.37 |
1.00 |
hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
37.55 |
1.93 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
osh-native-souffle |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,538 |
1,116 |
23,986 |
3,210 |
3,132 |
9.45 |
1.26 |
bin-true |
no-host |
107,403 |
65,468 |
782,785 |
126,155 |
125,245 |
7.29 |
1.17 |
configure.cpython |
no-host |
2,215,135 |
2,238,865 |
6,228,767 |
2,218,592 |
2,198,168 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,591 |
390,916 |
645,944 |
413,310 |
412,556 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,555 |
5,466 |
24,401 |
6,934 |
6,864 |
3.72 |
1.06 |
configure.util-linux |
no-host |
2,100,183 |
2,262,176 |
5,404,155 |
1,995,887 |
1,985,086 |
2.57 |
0.95 |
configure.yash |
no-host |
256,105 |
244,020 |
389,595 |
258,174 |
257,659 |
1.52 |
1.01 |
hello-world |
no-host |
153 |
82 |
4,004 |
347 |
341 |
26.17 |
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.2 |
6.3 |
3,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.6 |
7.9 |
153,744 |
12,264 |
2,884 |
8,744 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,995 |
2 |
60 |
14.9 |
27.3 |
1,771,745 |
49,904 |
28,593 |
85,416 |
908,077 |
778,252 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,190 |
3 |
58 |
21.2 |
30.4 |
2,702,511 |
29,654 |
65,897 |
108,692 |
1,320,583 |
1,273,236 |
32,239 |
41 |
131,794 |
1 |
configure.ocaml |
no-host |
3,795 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,128 |
5,223 |
7,509 |
71,610 |
70,959 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,584 |
30,584 |
0 |
1,519 |
14,780 |
14,285 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,808 |
1 |
2 |
2.5 |
24.4 |
139,404 |
8,024 |
6,686 |
5,987 |
70,285 |
63,132 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,290 |
64,537 |
42,747 |
4,533 |
54,525 |
57,232 |
277 |
3 |
85,494 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
808 |
1 |
2 |
2.6 |
7.6 |
153,743 |
12,053 |
2,822 |
8,745 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,039 |
1 |
60 |
14.8 |
27.3 |
1,771,744 |
49,106 |
28,531 |
85,417 |
908,077 |
778,250 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,103 |
3 |
59 |
21.2 |
30.3 |
2,702,511 |
29,763 |
65,835 |
108,694 |
1,320,583 |
1,273,234 |
32,239 |
41 |
131,670 |
1 |
configure.ocaml |
no-host |
3,773 |
1 |
2 |
2.6 |
20.6 |
150,078 |
11,066 |
5,161 |
7,511 |
71,610 |
70,957 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
47 |
0 |
0 |
1.3 |
19.4 |
30,584 |
30,584 |
0 |
1,521 |
14,780 |
14,283 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,787 |
1 |
2 |
2.5 |
24.2 |
139,404 |
7,962 |
6,624 |
5,989 |
70,285 |
63,130 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,289 |
64,475 |
42,685 |
4,534 |
54,525 |
57,230 |
277 |
3 |
85,370 |
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 |
6 |
13 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
459 |
416 |
47 |
23.1 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
16 |
7 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
687 |
507 |
210 |
2.9 |
bash |
9 |
no-host |
bin-true |
538 |
407 |
139 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,340 |
1,470 |
1,138 |
19.1 |
osh-cpython |
25 |
no-host |
bin-true |
812 |
598 |
231 |
7.9 |
osh-native |
33 |
no-host |
bin-true |
808 |
569 |
253 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,362 |
9,100 |
6,665 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,196 |
9,403 |
6,220 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,267 |
17,635 |
13,542 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,995 |
8,987 |
6,273 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,039 |
8,848 |
6,366 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,863 |
1,594 |
1,301 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,754 |
1,629 |
1,144 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,676 |
2,267 |
1,620 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,795 |
1,653 |
1,182 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,773 |
1,566 |
1,244 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
33 |
15 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
16 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
255 |
126 |
80 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
28 |
20 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
47 |
26 |
22 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,302 |
8,958 |
5,821 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,937 |
9,035 |
6,394 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,802 |
21,178 |
11,738 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,190 |
8,772 |
5,622 |
30.4 |
osh-native |
35 |
no-host |
configure.util-linux |
14,103 |
8,461 |
5,841 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,810 |
1,044 |
770 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,774 |
1,036 |
741 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,486 |
1,482 |
1,047 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,808 |
993 |
820 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,787 |
1,036 |
755 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
56 |
32 |
24 |
18.8 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.9 |
osh-native-souffle |
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,538 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,116 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,986 |
0 |
0 |
0 |
8 |
0 |
45 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,210 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,132 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,403 |
0 |
0 |
0 |
8 |
0 |
1,996 |
91 |
bash |
9 |
no-host |
bin-true |
65,468 |
0 |
0 |
0 |
8 |
0 |
1,988 |
42 |
dash |
17 |
no-host |
bin-true |
782,785 |
0 |
0 |
0 |
8 |
0 |
1,997 |
88 |
osh-cpython |
25 |
no-host |
bin-true |
126,155 |
0 |
0 |
0 |
16 |
0 |
1,994 |
70 |
osh-native |
33 |
no-host |
bin-true |
125,245 |
0 |
0 |
0 |
16 |
0 |
1,994 |
194 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,215,135 |
0 |
0 |
0 |
32,928 |
0 |
14,501 |
925 |
bash |
10 |
no-host |
configure.cpython |
2,238,865 |
0 |
0 |
0 |
32,992 |
0 |
14,612 |
978 |
dash |
18 |
no-host |
configure.cpython |
6,228,767 |
0 |
0 |
0 |
27,512 |
0 |
13,248 |
1,215 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,592 |
0 |
0 |
0 |
27,520 |
0 |
13,231 |
1,088 |
osh-native |
34 |
no-host |
configure.cpython |
2,198,168 |
1 |
0 |
0 |
27,520 |
0 |
13,159 |
1,057 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,591 |
0 |
0 |
0 |
5,120 |
0 |
1,965 |
177 |
bash |
12 |
no-host |
configure.ocaml |
390,916 |
0 |
0 |
0 |
5,112 |
0 |
1,867 |
155 |
dash |
20 |
no-host |
configure.ocaml |
645,944 |
0 |
0 |
0 |
5,112 |
0 |
1,869 |
181 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,310 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
167 |
osh-native |
36 |
no-host |
configure.ocaml |
412,556 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
146 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,555 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,466 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
24,401 |
0 |
0 |
0 |
96 |
0 |
54 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,934 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,864 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,183 |
0 |
0 |
0 |
42,400 |
0 |
18,553 |
1,132 |
bash |
11 |
no-host |
configure.util-linux |
2,262,176 |
1 |
0 |
0 |
42,584 |
0 |
17,468 |
1,064 |
dash |
19 |
no-host |
configure.util-linux |
5,404,155 |
12 |
0 |
0 |
39,120 |
0 |
16,943 |
1,219 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,995,887 |
0 |
0 |
0 |
39,128 |
0 |
17,097 |
1,103 |
osh-native |
35 |
no-host |
configure.util-linux |
1,985,086 |
4 |
0 |
0 |
39,136 |
0 |
17,000 |
1,118 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,105 |
0 |
0 |
0 |
4,120 |
0 |
869 |
105 |
bash |
14 |
no-host |
configure.yash |
244,020 |
0 |
0 |
0 |
3,720 |
0 |
866 |
82 |
dash |
22 |
no-host |
configure.yash |
389,595 |
0 |
0 |
0 |
3,728 |
0 |
851 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
258,174 |
0 |
0 |
0 |
3,736 |
0 |
848 |
96 |
osh-native |
38 |
no-host |
configure.yash |
257,659 |
0 |
0 |
0 |
3,736 |
0 |
845 |
68 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
82 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
4,004 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
347 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host