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 |
442 |
22 |
21 |
23.53 |
1.16 |
bin-true |
no-host |
678 |
544 |
2,248 |
811 |
816 |
3.31 |
1.20 |
configure.cpython |
no-host |
14,879 |
14,957 |
28,621 |
15,109 |
15,131 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,792 |
3,741 |
4,600 |
3,810 |
3,798 |
1.21 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
196 |
49 |
48 |
4.08 |
1.01 |
configure.util-linux |
no-host |
13,903 |
14,784 |
30,984 |
14,228 |
14,205 |
2.23 |
1.02 |
configure.yash |
no-host |
1,807 |
1,758 |
2,426 |
1,812 |
1,816 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
28.59 |
1.64 |
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,514 |
1,099 |
23,427 |
3,183 |
3,115 |
9.32 |
1.27 |
bin-true |
no-host |
106,263 |
66,397 |
775,663 |
125,248 |
124,248 |
7.30 |
1.18 |
configure.cpython |
no-host |
2,218,774 |
2,245,707 |
6,240,067 |
2,220,611 |
2,204,316 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,360 |
391,245 |
645,810 |
412,772 |
412,110 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,558 |
5,504 |
23,704 |
6,950 |
6,891 |
3.61 |
1.06 |
configure.util-linux |
no-host |
2,097,821 |
2,261,991 |
5,343,385 |
1,996,957 |
1,984,074 |
2.55 |
0.95 |
configure.yash |
no-host |
256,518 |
244,192 |
386,041 |
256,543 |
257,646 |
1.50 |
1.00 |
hello-world |
no-host |
155 |
79 |
3,744 |
349 |
342 |
24.15 |
2.25 |
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.2 |
3,780 |
3,780 |
0 |
695 |
1,856 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
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 |
15,109 |
1 |
61 |
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,228 |
3 |
59 |
21.2 |
30.3 |
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,810 |
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 |
49 |
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,812 |
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 |
8.9 |
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 |
816 |
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,131 |
2 |
64 |
14.8 |
27.5 |
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,205 |
2 |
60 |
21.2 |
30.1 |
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,798 |
1 |
2 |
2.6 |
20.4 |
150,078 |
11,066 |
5,161 |
7,511 |
71,610 |
70,957 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
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,816 |
1 |
2 |
2.5 |
24.5 |
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 |
14 |
6 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
10 |
0 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
442 |
395 |
50 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
12 |
10 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
13 |
8 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
678 |
511 |
199 |
2.9 |
bash |
9 |
no-host |
bin-true |
544 |
420 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,248 |
1,482 |
1,024 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
574 |
254 |
7.9 |
osh-native |
33 |
no-host |
bin-true |
816 |
591 |
241 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,879 |
9,160 |
6,121 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,957 |
8,963 |
6,416 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,621 |
17,369 |
13,102 |
27.1 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,109 |
9,004 |
6,380 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,131 |
8,838 |
6,476 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,792 |
1,637 |
1,193 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,741 |
1,555 |
1,204 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,600 |
2,198 |
1,611 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,810 |
1,664 |
1,187 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,798 |
1,691 |
1,144 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
25 |
23 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
35 |
6 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
196 |
154 |
45 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
20 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
35 |
13 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,903 |
8,830 |
5,544 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,784 |
9,271 |
6,007 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
30,984 |
20,673 |
11,375 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,228 |
8,539 |
5,895 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,205 |
8,562 |
5,847 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,807 |
999 |
817 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,758 |
997 |
764 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,426 |
1,516 |
954 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,812 |
1,005 |
811 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,816 |
1,040 |
781 |
24.5 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
33 |
16 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,514 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,099 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,427 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,183 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,115 |
0 |
0 |
0 |
16 |
0 |
38 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,263 |
0 |
0 |
0 |
8 |
0 |
1,993 |
44 |
bash |
9 |
no-host |
bin-true |
66,397 |
0 |
0 |
0 |
8 |
0 |
1,991 |
34 |
dash |
17 |
no-host |
bin-true |
775,663 |
0 |
0 |
0 |
8 |
0 |
1,997 |
91 |
osh-cpython |
25 |
no-host |
bin-true |
125,248 |
0 |
0 |
0 |
16 |
0 |
1,989 |
60 |
osh-native |
33 |
no-host |
bin-true |
124,248 |
0 |
0 |
0 |
16 |
0 |
1,995 |
244 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,218,774 |
0 |
0 |
0 |
32,928 |
0 |
14,498 |
1,092 |
bash |
10 |
no-host |
configure.cpython |
2,245,707 |
0 |
0 |
0 |
32,992 |
0 |
14,541 |
957 |
dash |
18 |
no-host |
configure.cpython |
6,240,067 |
0 |
0 |
0 |
27,512 |
0 |
13,210 |
1,182 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,220,611 |
0 |
0 |
0 |
27,520 |
0 |
13,287 |
1,068 |
osh-native |
34 |
no-host |
configure.cpython |
2,204,316 |
0 |
0 |
0 |
27,520 |
0 |
13,201 |
978 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,360 |
0 |
0 |
0 |
5,120 |
0 |
1,954 |
157 |
bash |
12 |
no-host |
configure.ocaml |
391,245 |
0 |
0 |
0 |
5,112 |
0 |
1,881 |
173 |
dash |
20 |
no-host |
configure.ocaml |
645,810 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
195 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,772 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
183 |
osh-native |
36 |
no-host |
configure.ocaml |
412,110 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
149 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,558 |
0 |
0 |
0 |
104 |
0 |
49 |
12 |
bash |
13 |
no-host |
configure.tcc |
5,504 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
23,704 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,950 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native |
37 |
no-host |
configure.tcc |
6,891 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,097,821 |
0 |
0 |
0 |
42,400 |
0 |
18,621 |
1,037 |
bash |
11 |
no-host |
configure.util-linux |
2,261,991 |
2 |
0 |
0 |
42,584 |
0 |
17,447 |
1,141 |
dash |
19 |
no-host |
configure.util-linux |
5,343,385 |
11 |
0 |
0 |
39,112 |
0 |
16,989 |
1,179 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,957 |
1 |
0 |
0 |
39,120 |
0 |
16,967 |
1,046 |
osh-native |
35 |
no-host |
configure.util-linux |
1,984,074 |
0 |
0 |
0 |
39,128 |
0 |
16,931 |
913 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,518 |
0 |
0 |
0 |
4,120 |
0 |
871 |
58 |
bash |
14 |
no-host |
configure.yash |
244,192 |
0 |
0 |
0 |
3,720 |
0 |
867 |
79 |
dash |
22 |
no-host |
configure.yash |
386,041 |
0 |
0 |
0 |
3,728 |
0 |
851 |
85 |
osh-cpython |
30 |
no-host |
configure.yash |
256,543 |
0 |
0 |
0 |
3,736 |
0 |
850 |
116 |
osh-native |
38 |
no-host |
configure.yash |
257,646 |
0 |
0 |
0 |
3,736 |
0 |
851 |
62 |
osh-native-souffle |
0 |
no-host |
hello-world |
155 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,744 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native-souffle |
Shell and Host