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 |
468 |
22 |
21 |
24.45 |
1.15 |
bin-true |
no-host |
670 |
544 |
2,258 |
815 |
798 |
3.37 |
1.22 |
configure.cpython |
no-host |
15,044 |
15,057 |
28,706 |
15,494 |
15,317 |
1.91 |
1.03 |
configure.ocaml |
no-host |
3,790 |
3,727 |
4,680 |
3,814 |
3,825 |
1.23 |
1.01 |
configure.tcc |
no-host |
48 |
41 |
204 |
49 |
48 |
4.30 |
1.03 |
configure.util-linux |
no-host |
13,951 |
14,815 |
31,361 |
14,424 |
14,351 |
2.25 |
1.03 |
configure.yash |
no-host |
1,821 |
1,759 |
2,488 |
1,824 |
1,836 |
1.37 |
1.00 |
hello-world |
no-host |
2 |
1 |
56 |
3 |
3 |
36.21 |
1.84 |
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,543 |
1,107 |
23,855 |
3,161 |
3,051 |
9.38 |
1.24 |
bin-true |
no-host |
107,397 |
65,370 |
765,748 |
126,237 |
123,179 |
7.13 |
1.18 |
configure.cpython |
no-host |
2,223,020 |
2,239,473 |
6,222,043 |
2,225,021 |
2,212,883 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,630 |
391,222 |
647,131 |
413,001 |
412,489 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,554 |
5,486 |
24,064 |
6,968 |
6,915 |
3.67 |
1.06 |
configure.util-linux |
no-host |
2,104,502 |
2,260,749 |
5,369,711 |
1,990,939 |
1,987,501 |
2.55 |
0.95 |
configure.yash |
no-host |
256,699 |
245,147 |
388,004 |
257,762 |
256,441 |
1.51 |
1.00 |
hello-world |
no-host |
152 |
79 |
3,933 |
344 |
340 |
25.88 |
2.26 |
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,782 |
3,782 |
0 |
694 |
1,858 |
1,230 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
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,494 |
1 |
65 |
14.9 |
27.1 |
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,424 |
3 |
65 |
21.2 |
30.1 |
2,702,513 |
53,766 |
65,691 |
108,691 |
1,320,585 |
1,273,237 |
32,239 |
41 |
131,382 |
1 |
configure.ocaml |
no-host |
3,814 |
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,824 |
1 |
2 |
2.5 |
24.4 |
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 |
8.9 |
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 |
6.0 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
798 |
1 |
2 |
2.6 |
7.9 |
153,745 |
12,111 |
2,825 |
8,744 |
78,327 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,317 |
1 |
64 |
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,351 |
3 |
62 |
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,825 |
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 |
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,836 |
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.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 |
10 |
9 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
468 |
410 |
61 |
22.3 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
18 |
5 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
11 |
11 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
670 |
499 |
203 |
2.9 |
bash |
9 |
no-host |
bin-true |
544 |
409 |
143 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,258 |
1,491 |
1,022 |
18.2 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
587 |
244 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
798 |
553 |
259 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,044 |
9,026 |
6,429 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,057 |
9,181 |
6,300 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,706 |
17,625 |
12,925 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,494 |
9,088 |
6,671 |
27.1 |
osh-native |
34 |
no-host |
configure.cpython |
15,317 |
8,911 |
6,547 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,790 |
1,674 |
1,156 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,727 |
1,575 |
1,172 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,680 |
2,312 |
1,579 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,814 |
1,641 |
1,211 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,825 |
1,633 |
1,229 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
31 |
17 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
204 |
162 |
46 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
26 |
23 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
31 |
18 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,951 |
8,886 |
5,543 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,815 |
9,096 |
6,212 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,361 |
20,875 |
11,562 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,424 |
8,797 |
5,808 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,351 |
8,496 |
6,051 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,821 |
1,040 |
789 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,759 |
1,086 |
677 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,488 |
1,491 |
1,038 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,824 |
1,046 |
782 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,836 |
1,119 |
721 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
56 |
32 |
23 |
18.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
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,543 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,107 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,855 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,161 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native |
39 |
no-host |
abuild-print-help |
3,051 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
107,397 |
0 |
0 |
0 |
8 |
0 |
1,997 |
45 |
bash |
9 |
no-host |
bin-true |
65,370 |
0 |
0 |
0 |
8 |
0 |
1,990 |
39 |
dash |
17 |
no-host |
bin-true |
765,748 |
0 |
0 |
0 |
8 |
0 |
1,995 |
97 |
osh-cpython |
25 |
no-host |
bin-true |
126,237 |
0 |
0 |
0 |
16 |
0 |
1,994 |
106 |
osh-native |
33 |
no-host |
bin-true |
123,179 |
0 |
0 |
0 |
16 |
0 |
1,987 |
47 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,223,020 |
0 |
0 |
0 |
32,928 |
0 |
14,493 |
914 |
bash |
10 |
no-host |
configure.cpython |
2,239,473 |
0 |
0 |
0 |
32,992 |
0 |
14,613 |
922 |
dash |
18 |
no-host |
configure.cpython |
6,222,043 |
1 |
0 |
0 |
27,512 |
0 |
13,178 |
1,142 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,225,021 |
0 |
0 |
0 |
27,520 |
0 |
13,248 |
949 |
osh-native |
34 |
no-host |
configure.cpython |
2,212,883 |
3 |
0 |
0 |
27,520 |
0 |
13,269 |
925 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,630 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
168 |
bash |
12 |
no-host |
configure.ocaml |
391,222 |
0 |
0 |
0 |
5,112 |
0 |
1,865 |
159 |
dash |
20 |
no-host |
configure.ocaml |
647,131 |
0 |
0 |
0 |
5,112 |
0 |
1,852 |
175 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,001 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
183 |
osh-native |
36 |
no-host |
configure.ocaml |
412,489 |
0 |
0 |
0 |
5,120 |
0 |
1,927 |
166 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,554 |
0 |
0 |
0 |
104 |
0 |
49 |
5 |
bash |
13 |
no-host |
configure.tcc |
5,486 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
24,064 |
0 |
0 |
0 |
96 |
0 |
52 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,968 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,915 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,502 |
1 |
0 |
0 |
42,408 |
0 |
18,609 |
1,026 |
bash |
11 |
no-host |
configure.util-linux |
2,260,749 |
1 |
0 |
0 |
42,592 |
0 |
17,491 |
947 |
dash |
19 |
no-host |
configure.util-linux |
5,369,711 |
17 |
0 |
0 |
39,112 |
0 |
16,968 |
1,351 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,990,939 |
1 |
0 |
0 |
39,120 |
0 |
16,950 |
1,097 |
osh-native |
35 |
no-host |
configure.util-linux |
1,987,501 |
1 |
0 |
0 |
39,128 |
0 |
16,977 |
917 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,699 |
0 |
0 |
0 |
4,120 |
0 |
872 |
64 |
bash |
14 |
no-host |
configure.yash |
245,147 |
0 |
0 |
0 |
3,720 |
0 |
865 |
77 |
dash |
22 |
no-host |
configure.yash |
388,004 |
0 |
0 |
0 |
3,728 |
0 |
855 |
117 |
osh-cpython |
30 |
no-host |
configure.yash |
257,762 |
0 |
0 |
0 |
3,736 |
0 |
848 |
56 |
osh-native |
38 |
no-host |
configure.yash |
256,441 |
0 |
0 |
0 |
3,736 |
0 |
850 |
71 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
79 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,933 |
0 |
0 |
0 |
8 |
0 |
7 |
7 |
osh-cpython |
24 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
340 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host