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 |
20 |
10 |
472 |
22 |
21 |
24.04 |
1.14 |
bin-true |
no-host |
682 |
551 |
2,287 |
824 |
813 |
3.35 |
1.21 |
configure.cpython |
no-host |
15,527 |
15,558 |
29,786 |
15,679 |
15,780 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,889 |
3,825 |
4,821 |
3,925 |
3,894 |
1.24 |
1.01 |
configure.tcc |
no-host |
49 |
43 |
204 |
50 |
49 |
4.16 |
1.02 |
configure.util-linux |
no-host |
14,452 |
15,329 |
32,429 |
14,794 |
14,780 |
2.24 |
1.02 |
configure.yash |
no-host |
1,882 |
1,825 |
2,542 |
1,892 |
1,887 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
51 |
3 |
3 |
33.17 |
2.04 |
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,559 |
1,121 |
23,415 |
3,171 |
3,077 |
9.15 |
1.24 |
bin-true |
no-host |
105,323 |
66,415 |
774,670 |
125,217 |
124,213 |
7.36 |
1.19 |
configure.cpython |
no-host |
2,217,673 |
2,240,190 |
6,235,784 |
2,218,325 |
2,205,836 |
2.81 |
1.00 |
configure.ocaml |
no-host |
410,119 |
390,875 |
645,774 |
412,951 |
411,972 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,540 |
5,481 |
23,755 |
6,965 |
6,919 |
3.63 |
1.06 |
configure.util-linux |
no-host |
2,102,167 |
2,260,700 |
5,344,062 |
1,993,108 |
1,992,452 |
2.54 |
0.95 |
configure.yash |
no-host |
256,851 |
245,070 |
385,555 |
258,160 |
257,196 |
1.50 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,744 |
349 |
343 |
24.47 |
2.28 |
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 |
824 |
1 |
2 |
2.6 |
8.0 |
153,744 |
12,264 |
2,884 |
8,744 |
78,325 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,679 |
1 |
63 |
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,794 |
3 |
63 |
21.2 |
30.0 |
2,702,511 |
29,749 |
65,877 |
108,692 |
1,320,583 |
1,273,236 |
32,239 |
41 |
131,754 |
1 |
configure.ocaml |
no-host |
3,925 |
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 |
50 |
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,892 |
1 |
2 |
2.5 |
24.2 |
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 |
813 |
1 |
2 |
2.6 |
7.5 |
153,743 |
12,053 |
2,822 |
8,745 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,780 |
1 |
66 |
14.8 |
27.4 |
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,780 |
3 |
64 |
21.2 |
30.1 |
2,702,511 |
29,763 |
65,815 |
108,694 |
1,320,583 |
1,273,234 |
32,239 |
41 |
131,630 |
1 |
configure.ocaml |
no-host |
3,894 |
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 |
49 |
0 |
0 |
1.3 |
19.3 |
30,584 |
30,584 |
0 |
1,521 |
14,780 |
14,283 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,887 |
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 |
20 |
19 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
472 |
419 |
56 |
22.2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
19 |
3 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
682 |
505 |
209 |
2.9 |
bash |
9 |
no-host |
bin-true |
551 |
421 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,287 |
1,428 |
1,126 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
824 |
583 |
253 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
813 |
589 |
237 |
7.5 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,527 |
9,292 |
6,636 |
27.3 |
bash |
10 |
no-host |
configure.cpython |
15,558 |
9,042 |
6,938 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,786 |
17,683 |
14,063 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,679 |
9,195 |
6,752 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,780 |
9,102 |
6,857 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,889 |
1,605 |
1,326 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,825 |
1,574 |
1,269 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,821 |
2,340 |
1,694 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,925 |
1,677 |
1,287 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,894 |
1,654 |
1,276 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
49 |
27 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
26 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
204 |
128 |
79 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
31 |
19 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
27 |
23 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,452 |
9,055 |
5,859 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,329 |
9,425 |
6,392 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
32,429 |
21,345 |
12,216 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,794 |
8,752 |
6,222 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,780 |
8,801 |
6,153 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,882 |
1,125 |
763 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,825 |
1,018 |
807 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,542 |
1,571 |
1,013 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,892 |
1,068 |
826 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,887 |
969 |
921 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
51 |
39 |
11 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,559 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,121 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,415 |
0 |
0 |
0 |
8 |
0 |
45 |
7 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,171 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,077 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,323 |
0 |
0 |
0 |
8 |
0 |
1,992 |
73 |
bash |
9 |
no-host |
bin-true |
66,415 |
0 |
0 |
0 |
8 |
0 |
1,993 |
50 |
dash |
17 |
no-host |
bin-true |
774,670 |
0 |
0 |
0 |
8 |
0 |
1,994 |
262 |
osh-cpython |
25 |
no-host |
bin-true |
125,217 |
0 |
0 |
0 |
16 |
0 |
1,995 |
157 |
osh-native |
33 |
no-host |
bin-true |
124,213 |
0 |
0 |
0 |
16 |
0 |
1,983 |
53 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,217,673 |
1 |
0 |
0 |
32,928 |
0 |
14,508 |
1,022 |
bash |
10 |
no-host |
configure.cpython |
2,240,190 |
0 |
0 |
0 |
32,992 |
0 |
14,659 |
1,125 |
dash |
18 |
no-host |
configure.cpython |
6,235,784 |
0 |
0 |
0 |
27,512 |
0 |
13,222 |
1,137 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,325 |
0 |
0 |
0 |
27,520 |
0 |
13,330 |
876 |
osh-native |
34 |
no-host |
configure.cpython |
2,205,836 |
1 |
0 |
0 |
27,520 |
0 |
13,308 |
918 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,119 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
163 |
bash |
12 |
no-host |
configure.ocaml |
390,875 |
0 |
0 |
0 |
5,112 |
0 |
1,879 |
148 |
dash |
20 |
no-host |
configure.ocaml |
645,774 |
0 |
0 |
0 |
5,112 |
0 |
1,859 |
218 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,951 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
156 |
osh-native |
36 |
no-host |
configure.ocaml |
411,972 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
146 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,540 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,481 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,755 |
0 |
0 |
0 |
96 |
0 |
53 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,965 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,919 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,167 |
0 |
0 |
0 |
42,408 |
0 |
18,528 |
996 |
bash |
11 |
no-host |
configure.util-linux |
2,260,700 |
1 |
0 |
0 |
42,592 |
0 |
17,512 |
1,058 |
dash |
19 |
no-host |
configure.util-linux |
5,344,062 |
10 |
0 |
0 |
39,112 |
0 |
17,002 |
1,334 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,993,108 |
2 |
0 |
0 |
39,120 |
0 |
16,941 |
1,068 |
osh-native |
35 |
no-host |
configure.util-linux |
1,992,452 |
0 |
0 |
0 |
39,136 |
0 |
16,975 |
911 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,851 |
0 |
0 |
0 |
4,120 |
0 |
863 |
94 |
bash |
14 |
no-host |
configure.yash |
245,070 |
0 |
0 |
0 |
3,720 |
0 |
869 |
87 |
dash |
22 |
no-host |
configure.yash |
385,555 |
0 |
0 |
0 |
3,728 |
0 |
842 |
90 |
osh-cpython |
30 |
no-host |
configure.yash |
258,160 |
0 |
0 |
0 |
3,736 |
0 |
850 |
81 |
osh-native |
38 |
no-host |
configure.yash |
257,196 |
0 |
0 |
0 |
3,736 |
0 |
849 |
92 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,744 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host