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 |
467 |
22 |
21 |
24.56 |
1.16 |
bin-true |
no-host |
670 |
539 |
2,267 |
798 |
809 |
3.38 |
1.19 |
configure.cpython |
no-host |
15,012 |
15,051 |
28,873 |
15,197 |
15,284 |
1.92 |
1.01 |
configure.ocaml |
no-host |
3,800 |
3,728 |
4,653 |
3,824 |
3,822 |
1.22 |
1.01 |
configure.tcc |
no-host |
47 |
42 |
205 |
49 |
48 |
4.36 |
1.03 |
configure.util-linux |
no-host |
13,975 |
14,854 |
31,554 |
14,369 |
14,279 |
2.26 |
1.03 |
configure.yash |
no-host |
1,816 |
1,782 |
2,462 |
1,835 |
1,830 |
1.36 |
1.01 |
hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
36.06 |
1.85 |
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,522 |
1,092 |
23,806 |
3,142 |
3,109 |
9.44 |
1.25 |
bin-true |
no-host |
104,356 |
66,465 |
765,349 |
126,292 |
126,253 |
7.33 |
1.21 |
configure.cpython |
no-host |
2,220,090 |
2,238,337 |
6,219,191 |
2,221,358 |
2,201,489 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,558 |
391,685 |
645,866 |
413,387 |
411,866 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,529 |
5,466 |
24,024 |
6,984 |
6,932 |
3.68 |
1.07 |
configure.util-linux |
no-host |
2,105,629 |
2,267,107 |
5,382,923 |
2,000,721 |
1,984,181 |
2.56 |
0.95 |
configure.yash |
no-host |
256,317 |
245,069 |
387,507 |
258,385 |
258,151 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
81 |
3,940 |
341 |
335 |
25.92 |
2.24 |
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,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
798 |
1 |
2 |
2.6 |
8.0 |
153,746 |
12,267 |
2,887 |
8,743 |
78,327 |
66,676 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,197 |
1 |
61 |
14.9 |
27.4 |
1,771,747 |
49,125 |
28,512 |
85,415 |
908,079 |
778,253 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,369 |
3 |
59 |
21.2 |
30.1 |
2,702,513 |
45,898 |
65,711 |
108,691 |
1,320,585 |
1,273,237 |
32,239 |
41 |
131,422 |
1 |
configure.ocaml |
no-host |
3,824 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,112 |
5,207 |
7,508 |
71,612 |
70,960 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,586 |
30,586 |
0 |
1,518 |
14,782 |
14,286 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,835 |
1 |
2 |
2.5 |
24.2 |
139,412 |
8,024 |
6,686 |
5,989 |
70,287 |
63,136 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,292 |
64,403 |
42,613 |
4,532 |
54,527 |
57,233 |
277 |
3 |
85,226 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
809 |
1 |
2 |
2.6 |
7.6 |
153,745 |
12,111 |
2,825 |
8,744 |
78,327 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,284 |
1 |
60 |
14.9 |
27.4 |
1,771,746 |
44,577 |
28,450 |
85,416 |
908,079 |
778,251 |
25,733 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,279 |
3 |
59 |
21.2 |
30.0 |
2,702,513 |
53,693 |
65,649 |
108,693 |
1,320,585 |
1,273,235 |
32,239 |
41 |
131,298 |
1 |
configure.ocaml |
no-host |
3,822 |
1 |
2 |
2.6 |
20.6 |
150,080 |
11,050 |
5,145 |
7,510 |
71,612 |
70,958 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,586 |
30,586 |
0 |
1,520 |
14,782 |
14,284 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,830 |
1 |
2 |
2.5 |
24.2 |
139,412 |
7,962 |
6,624 |
5,991 |
70,287 |
63,134 |
2,095 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,291 |
64,341 |
42,551 |
4,533 |
54,527 |
57,231 |
277 |
3 |
85,102 |
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 |
10 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
467 |
426 |
44 |
22.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
4 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
19 |
3 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
670 |
492 |
208 |
3.0 |
bash |
9 |
no-host |
bin-true |
539 |
417 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,267 |
1,455 |
1,068 |
18.4 |
osh-cpython |
25 |
no-host |
bin-true |
798 |
548 |
264 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
809 |
584 |
243 |
7.6 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,012 |
8,994 |
6,423 |
27.1 |
bash |
10 |
no-host |
configure.cpython |
15,051 |
9,030 |
6,441 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,873 |
17,763 |
12,983 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,197 |
9,091 |
6,366 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,284 |
8,901 |
6,518 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,800 |
1,613 |
1,224 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,728 |
1,553 |
1,194 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,653 |
2,222 |
1,641 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,824 |
1,587 |
1,275 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,822 |
1,649 |
1,208 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
27 |
21 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
26 |
17 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
205 |
154 |
55 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
31 |
18 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
18 |
30 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,975 |
8,744 |
5,706 |
29.9 |
bash |
11 |
no-host |
configure.util-linux |
14,854 |
9,125 |
6,221 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,554 |
21,088 |
11,539 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,369 |
8,665 |
5,900 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,279 |
8,541 |
5,936 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,816 |
1,091 |
734 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,782 |
1,054 |
732 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,462 |
1,525 |
978 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,835 |
981 |
858 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,830 |
1,091 |
743 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
56 |
36 |
19 |
18.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
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,522 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,092 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,806 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,142 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,109 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,356 |
0 |
0 |
0 |
8 |
0 |
1,993 |
136 |
bash |
9 |
no-host |
bin-true |
66,465 |
0 |
0 |
0 |
8 |
0 |
1,990 |
119 |
dash |
17 |
no-host |
bin-true |
765,349 |
0 |
0 |
0 |
8 |
0 |
1,994 |
158 |
osh-cpython |
25 |
no-host |
bin-true |
126,292 |
0 |
0 |
0 |
16 |
0 |
1,988 |
52 |
osh-native |
33 |
no-host |
bin-true |
126,253 |
0 |
0 |
0 |
16 |
0 |
1,990 |
81 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,220,090 |
0 |
0 |
0 |
32,928 |
0 |
14,416 |
1,055 |
bash |
10 |
no-host |
configure.cpython |
2,238,337 |
0 |
0 |
0 |
32,992 |
0 |
14,553 |
1,027 |
dash |
18 |
no-host |
configure.cpython |
6,219,191 |
0 |
0 |
0 |
27,512 |
0 |
13,207 |
1,145 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,221,358 |
1 |
0 |
0 |
27,520 |
0 |
13,257 |
1,016 |
osh-native |
34 |
no-host |
configure.cpython |
2,201,489 |
1 |
0 |
0 |
27,520 |
0 |
13,265 |
1,008 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,558 |
0 |
0 |
0 |
5,120 |
0 |
1,955 |
207 |
bash |
12 |
no-host |
configure.ocaml |
391,685 |
0 |
0 |
0 |
5,112 |
0 |
1,920 |
132 |
dash |
20 |
no-host |
configure.ocaml |
645,866 |
1 |
0 |
0 |
5,112 |
0 |
1,860 |
182 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,387 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
170 |
osh-native |
36 |
no-host |
configure.ocaml |
411,866 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
253 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,529 |
0 |
0 |
0 |
104 |
0 |
48 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,466 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
24,024 |
0 |
0 |
0 |
96 |
0 |
53 |
17 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,984 |
0 |
0 |
0 |
104 |
0 |
47 |
11 |
osh-native |
37 |
no-host |
configure.tcc |
6,932 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,105,629 |
1 |
0 |
0 |
42,400 |
0 |
18,558 |
1,019 |
bash |
11 |
no-host |
configure.util-linux |
2,267,107 |
0 |
0 |
0 |
42,584 |
0 |
17,506 |
1,040 |
dash |
19 |
no-host |
configure.util-linux |
5,382,923 |
10 |
0 |
0 |
39,144 |
0 |
16,973 |
1,226 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,000,721 |
1 |
0 |
0 |
39,120 |
0 |
16,917 |
954 |
osh-native |
35 |
no-host |
configure.util-linux |
1,984,181 |
3 |
0 |
0 |
39,128 |
0 |
17,069 |
951 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,317 |
0 |
0 |
0 |
4,120 |
0 |
866 |
80 |
bash |
14 |
no-host |
configure.yash |
245,069 |
0 |
0 |
0 |
3,720 |
0 |
867 |
74 |
dash |
22 |
no-host |
configure.yash |
387,507 |
0 |
0 |
0 |
3,728 |
0 |
855 |
94 |
osh-cpython |
30 |
no-host |
configure.yash |
258,385 |
0 |
0 |
0 |
3,736 |
0 |
846 |
92 |
osh-native |
38 |
no-host |
configure.yash |
258,151 |
0 |
0 |
0 |
3,736 |
0 |
850 |
78 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
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,940 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
335 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host