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 |
10 |
466 |
22 |
21 |
23.98 |
1.16 |
bin-true |
no-host |
678 |
542 |
2,306 |
811 |
808 |
3.40 |
1.20 |
configure.cpython |
no-host |
15,093 |
15,052 |
28,800 |
15,363 |
15,427 |
1.91 |
1.02 |
configure.ocaml |
no-host |
3,780 |
3,733 |
4,659 |
3,858 |
3,808 |
1.23 |
1.02 |
configure.tcc |
no-host |
47 |
42 |
203 |
49 |
49 |
4.27 |
1.03 |
configure.util-linux |
no-host |
14,004 |
14,865 |
31,400 |
14,461 |
14,367 |
2.24 |
1.03 |
configure.yash |
no-host |
1,812 |
1,761 |
2,483 |
1,841 |
1,826 |
1.37 |
1.02 |
hello-world |
no-host |
1 |
1 |
57 |
3 |
3 |
38.26 |
1.92 |
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,574 |
1,115 |
23,896 |
3,198 |
3,064 |
9.28 |
1.24 |
bin-true |
no-host |
108,353 |
65,452 |
765,086 |
126,205 |
123,182 |
7.06 |
1.16 |
configure.cpython |
no-host |
2,231,118 |
2,236,906 |
6,226,913 |
2,216,009 |
2,208,915 |
2.79 |
0.99 |
configure.ocaml |
no-host |
410,516 |
391,200 |
647,498 |
413,048 |
411,945 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,577 |
5,476 |
24,036 |
6,979 |
6,910 |
3.65 |
1.06 |
configure.util-linux |
no-host |
2,104,180 |
2,258,304 |
5,386,268 |
1,996,374 |
1,992,141 |
2.56 |
0.95 |
configure.yash |
no-host |
256,093 |
245,111 |
387,824 |
257,086 |
258,282 |
1.51 |
1.00 |
hello-world |
no-host |
156 |
83 |
3,928 |
346 |
335 |
25.18 |
2.22 |
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 |
811 |
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,363 |
2 |
63 |
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,461 |
3 |
61 |
21.2 |
30.0 |
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,858 |
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.3 |
30,586 |
30,586 |
0 |
1,518 |
14,782 |
14,286 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,841 |
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.2 |
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 |
808 |
1 |
2 |
2.6 |
7.7 |
153,745 |
12,111 |
2,825 |
8,744 |
78,327 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,427 |
1 |
62 |
14.9 |
27.1 |
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,367 |
3 |
62 |
21.2 |
30.1 |
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,808 |
1 |
2 |
2.6 |
20.4 |
150,080 |
11,050 |
5,145 |
7,510 |
71,612 |
70,958 |
1,695 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
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,826 |
1 |
2 |
2.5 |
24.4 |
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.5 |
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 |
14 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
10 |
1 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
466 |
416 |
52 |
22.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
5 |
9.2 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
19 |
2 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
678 |
492 |
219 |
2.9 |
bash |
9 |
no-host |
bin-true |
542 |
421 |
131 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,306 |
1,520 |
1,046 |
18.2 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
597 |
230 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
808 |
561 |
262 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,093 |
9,265 |
6,224 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,052 |
9,260 |
6,205 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,800 |
17,751 |
12,894 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,363 |
9,162 |
6,471 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,427 |
9,104 |
6,462 |
27.1 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,780 |
1,508 |
1,311 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,733 |
1,563 |
1,189 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,659 |
2,281 |
1,588 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,858 |
1,663 |
1,234 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,808 |
1,682 |
1,162 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
29 |
19 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
42 |
21 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
203 |
133 |
73 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
18 |
31 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
34 |
15 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,004 |
8,931 |
5,554 |
30.0 |
bash |
11 |
no-host |
configure.util-linux |
14,865 |
9,112 |
6,247 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,400 |
20,837 |
11,653 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,461 |
8,749 |
5,915 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,367 |
8,685 |
5,871 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,812 |
1,070 |
751 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,761 |
1,077 |
687 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,483 |
1,531 |
992 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,841 |
1,078 |
767 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,826 |
1,143 |
687 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.6 |
dash |
16 |
no-host |
hello-world |
57 |
38 |
18 |
18.2 |
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,574 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,115 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,896 |
0 |
0 |
0 |
8 |
0 |
45 |
13 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,198 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,064 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
108,353 |
0 |
0 |
0 |
8 |
0 |
1,989 |
82 |
bash |
9 |
no-host |
bin-true |
65,452 |
0 |
0 |
0 |
8 |
0 |
1,994 |
37 |
dash |
17 |
no-host |
bin-true |
765,086 |
0 |
0 |
0 |
8 |
0 |
1,997 |
338 |
osh-cpython |
25 |
no-host |
bin-true |
126,205 |
0 |
0 |
0 |
16 |
0 |
1,994 |
166 |
osh-native |
33 |
no-host |
bin-true |
123,182 |
0 |
0 |
0 |
16 |
0 |
1,988 |
74 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,231,118 |
0 |
0 |
0 |
32,928 |
0 |
14,513 |
1,104 |
bash |
10 |
no-host |
configure.cpython |
2,236,906 |
0 |
0 |
0 |
32,992 |
0 |
14,656 |
1,064 |
dash |
18 |
no-host |
configure.cpython |
6,226,913 |
1 |
0 |
0 |
27,512 |
0 |
13,327 |
1,194 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,216,009 |
0 |
0 |
0 |
27,520 |
0 |
13,261 |
1,144 |
osh-native |
34 |
no-host |
configure.cpython |
2,208,915 |
0 |
0 |
0 |
27,520 |
0 |
13,260 |
1,077 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,516 |
0 |
0 |
0 |
5,120 |
0 |
1,948 |
164 |
bash |
12 |
no-host |
configure.ocaml |
391,200 |
0 |
0 |
0 |
5,112 |
0 |
1,911 |
145 |
dash |
20 |
no-host |
configure.ocaml |
647,498 |
0 |
0 |
0 |
5,112 |
0 |
1,854 |
157 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,048 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
178 |
osh-native |
36 |
no-host |
configure.ocaml |
411,945 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
171 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,577 |
0 |
0 |
0 |
104 |
0 |
49 |
4 |
bash |
13 |
no-host |
configure.tcc |
5,476 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
24,036 |
0 |
0 |
0 |
96 |
0 |
52 |
12 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,979 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,910 |
0 |
0 |
0 |
104 |
0 |
47 |
4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,180 |
0 |
0 |
0 |
42,400 |
0 |
18,453 |
1,120 |
bash |
11 |
no-host |
configure.util-linux |
2,258,304 |
2 |
0 |
0 |
42,584 |
0 |
17,382 |
1,128 |
dash |
19 |
no-host |
configure.util-linux |
5,386,268 |
9 |
0 |
0 |
39,120 |
0 |
16,952 |
1,194 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,374 |
0 |
0 |
0 |
39,120 |
0 |
16,985 |
980 |
osh-native |
35 |
no-host |
configure.util-linux |
1,992,141 |
3 |
0 |
0 |
39,128 |
0 |
16,888 |
1,118 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,093 |
0 |
0 |
0 |
4,120 |
0 |
868 |
81 |
bash |
14 |
no-host |
configure.yash |
245,111 |
0 |
0 |
0 |
3,720 |
0 |
866 |
98 |
dash |
22 |
no-host |
configure.yash |
387,824 |
0 |
0 |
0 |
3,728 |
0 |
854 |
90 |
osh-cpython |
30 |
no-host |
configure.yash |
257,086 |
0 |
0 |
0 |
3,736 |
0 |
849 |
91 |
osh-native |
38 |
no-host |
configure.yash |
258,282 |
0 |
0 |
0 |
3,736 |
0 |
853 |
69 |
osh-native-souffle |
0 |
no-host |
hello-world |
156 |
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 |
3,928 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
335 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native-souffle |
Shell and Host