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 |
483 |
22 |
21 |
24.80 |
1.14 |
bin-true |
no-host |
678 |
543 |
2,361 |
831 |
807 |
3.48 |
1.23 |
configure.cpython |
no-host |
15,227 |
15,308 |
29,344 |
15,666 |
15,483 |
1.93 |
1.03 |
configure.ocaml |
no-host |
3,833 |
3,790 |
4,728 |
3,897 |
3,861 |
1.23 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
207 |
49 |
48 |
4.34 |
1.02 |
configure.util-linux |
no-host |
14,201 |
15,170 |
32,104 |
14,698 |
14,509 |
2.26 |
1.03 |
configure.yash |
no-host |
1,839 |
1,788 |
2,530 |
1,861 |
1,850 |
1.38 |
1.01 |
hello-world |
no-host |
1 |
1 |
58 |
3 |
3 |
39.42 |
1.99 |
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,545 |
1,109 |
24,017 |
3,182 |
3,098 |
9.44 |
1.25 |
bin-true |
no-host |
105,357 |
65,422 |
788,983 |
124,270 |
125,235 |
7.49 |
1.18 |
configure.cpython |
no-host |
2,223,681 |
2,240,956 |
6,267,611 |
2,215,208 |
2,202,592 |
2.82 |
1.00 |
configure.ocaml |
no-host |
410,443 |
390,826 |
649,194 |
412,716 |
411,737 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,546 |
5,475 |
24,494 |
6,965 |
6,875 |
3.74 |
1.06 |
configure.util-linux |
no-host |
2,101,968 |
2,262,156 |
5,407,999 |
1,999,570 |
1,983,915 |
2.57 |
0.95 |
configure.yash |
no-host |
256,610 |
245,114 |
389,915 |
257,097 |
256,347 |
1.52 |
1.00 |
hello-world |
no-host |
152 |
83 |
4,004 |
353 |
343 |
26.34 |
2.32 |
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 |
831 |
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,666 |
1 |
65 |
14.9 |
27.5 |
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,698 |
3 |
63 |
21.2 |
30.3 |
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,897 |
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.3 |
30,584 |
30,584 |
0 |
1,519 |
14,780 |
14,285 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,861 |
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.2 |
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.8 |
3,779 |
3,779 |
0 |
696 |
1,856 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
807 |
1 |
2 |
2.6 |
7.7 |
153,743 |
12,053 |
2,822 |
8,745 |
78,325 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,483 |
1 |
62 |
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,509 |
3 |
61 |
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,861 |
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 |
48 |
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,850 |
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 |
18 |
2 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
9 |
1 |
3.3 |
dash |
23 |
no-host |
abuild-print-help |
483 |
408 |
79 |
23.3 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
3 |
9.2 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
20 |
1 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
678 |
491 |
217 |
2.9 |
bash |
9 |
no-host |
bin-true |
543 |
418 |
135 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,361 |
1,496 |
1,130 |
18.9 |
osh-cpython |
25 |
no-host |
bin-true |
831 |
587 |
256 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
807 |
566 |
257 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,227 |
9,402 |
6,232 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,308 |
9,256 |
6,482 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,344 |
17,754 |
13,509 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,666 |
9,237 |
6,686 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,483 |
9,010 |
6,658 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,833 |
1,635 |
1,236 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,790 |
1,614 |
1,195 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,728 |
2,244 |
1,702 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,897 |
1,611 |
1,324 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,861 |
1,706 |
1,191 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
27 |
21 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
21 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
207 |
150 |
60 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
33 |
16 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,201 |
9,000 |
5,691 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,170 |
9,357 |
6,312 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
32,104 |
21,351 |
11,862 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,698 |
8,994 |
5,909 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,509 |
8,792 |
5,912 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,839 |
1,023 |
825 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,788 |
1,021 |
770 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,530 |
1,609 |
964 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,861 |
1,079 |
787 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,850 |
1,045 |
809 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
58 |
28 |
31 |
18.9 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
0 |
3 |
5.8 |
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,545 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
24,017 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,182 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,098 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,357 |
0 |
0 |
0 |
8 |
0 |
1,991 |
61 |
bash |
9 |
no-host |
bin-true |
65,422 |
0 |
0 |
0 |
8 |
0 |
1,989 |
56 |
dash |
17 |
no-host |
bin-true |
788,983 |
0 |
0 |
0 |
8 |
0 |
1,999 |
314 |
osh-cpython |
25 |
no-host |
bin-true |
124,270 |
0 |
0 |
0 |
16 |
0 |
1,993 |
114 |
osh-native |
33 |
no-host |
bin-true |
125,235 |
0 |
0 |
0 |
16 |
0 |
1,991 |
71 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,223,681 |
0 |
0 |
0 |
32,928 |
0 |
14,532 |
1,034 |
bash |
10 |
no-host |
configure.cpython |
2,240,956 |
0 |
0 |
0 |
32,992 |
0 |
14,699 |
1,224 |
dash |
18 |
no-host |
configure.cpython |
6,267,611 |
0 |
0 |
0 |
27,512 |
0 |
13,256 |
1,108 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,215,208 |
0 |
0 |
0 |
27,520 |
0 |
13,279 |
1,017 |
osh-native |
34 |
no-host |
configure.cpython |
2,202,592 |
1 |
0 |
0 |
27,520 |
0 |
13,285 |
1,012 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,443 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
157 |
bash |
12 |
no-host |
configure.ocaml |
390,826 |
0 |
0 |
0 |
5,112 |
0 |
1,921 |
144 |
dash |
20 |
no-host |
configure.ocaml |
649,194 |
1 |
0 |
0 |
5,112 |
0 |
1,872 |
219 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,716 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
168 |
osh-native |
36 |
no-host |
configure.ocaml |
411,737 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
145 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,546 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,475 |
0 |
0 |
0 |
96 |
0 |
47 |
4 |
dash |
21 |
no-host |
configure.tcc |
24,494 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,965 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,875 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,101,968 |
0 |
0 |
0 |
42,408 |
0 |
18,648 |
1,059 |
bash |
11 |
no-host |
configure.util-linux |
2,262,156 |
2 |
0 |
0 |
42,592 |
0 |
17,448 |
1,151 |
dash |
19 |
no-host |
configure.util-linux |
5,407,999 |
10 |
0 |
0 |
39,136 |
0 |
16,982 |
1,345 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,999,570 |
2 |
0 |
0 |
39,128 |
0 |
17,097 |
1,021 |
osh-native |
35 |
no-host |
configure.util-linux |
1,983,915 |
0 |
0 |
0 |
39,136 |
0 |
16,949 |
900 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,610 |
0 |
0 |
0 |
4,120 |
0 |
867 |
87 |
bash |
14 |
no-host |
configure.yash |
245,114 |
0 |
0 |
0 |
3,720 |
0 |
866 |
89 |
dash |
22 |
no-host |
configure.yash |
389,915 |
1 |
0 |
0 |
3,728 |
0 |
854 |
118 |
osh-cpython |
30 |
no-host |
configure.yash |
257,097 |
0 |
0 |
0 |
3,736 |
0 |
850 |
82 |
osh-native |
38 |
no-host |
configure.yash |
256,347 |
0 |
0 |
0 |
3,736 |
0 |
849 |
83 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
4,004 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
353 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
343 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host