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 |
23 |
22 |
24.07 |
1.20 |
bin-true |
no-host |
686 |
544 |
2,271 |
818 |
829 |
3.31 |
1.19 |
configure.cpython |
no-host |
14,882 |
15,022 |
28,570 |
15,196 |
16,172 |
1.92 |
1.02 |
configure.ocaml |
no-host |
3,798 |
3,712 |
4,623 |
3,985 |
3,979 |
1.22 |
1.05 |
configure.tcc |
no-host |
48 |
42 |
203 |
51 |
50 |
4.26 |
1.06 |
configure.util-linux |
no-host |
13,891 |
14,804 |
31,438 |
14,865 |
15,048 |
2.26 |
1.07 |
configure.yash |
no-host |
1,796 |
1,760 |
2,459 |
1,919 |
1,913 |
1.37 |
1.07 |
hello-world |
no-host |
1 |
1 |
56 |
3 |
3 |
37.66 |
1.90 |
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,513 |
1,092 |
23,757 |
3,207 |
3,114 |
9.45 |
1.28 |
bin-true |
no-host |
109,409 |
67,459 |
765,490 |
126,264 |
124,285 |
7.00 |
1.15 |
configure.cpython |
no-host |
2,224,156 |
2,242,428 |
6,217,367 |
2,223,403 |
2,209,129 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,796 |
390,710 |
647,196 |
413,433 |
412,474 |
1.58 |
1.01 |
configure.tcc |
no-host |
6,544 |
5,457 |
24,033 |
6,994 |
6,915 |
3.67 |
1.07 |
configure.util-linux |
no-host |
2,106,582 |
2,263,646 |
5,360,975 |
1,989,964 |
1,988,982 |
2.54 |
0.94 |
configure.yash |
no-host |
255,483 |
245,076 |
387,668 |
258,122 |
256,945 |
1.52 |
1.01 |
hello-world |
no-host |
153 |
80 |
3,930 |
342 |
335 |
25.69 |
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 |
818 |
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,196 |
1 |
65 |
14.9 |
27.3 |
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,865 |
3 |
67 |
21.2 |
30.0 |
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,985 |
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 |
51 |
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,919 |
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 |
23 |
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 |
829 |
1 |
2 |
2.6 |
7.5 |
153,745 |
12,111 |
2,825 |
8,744 |
78,327 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
16,172 |
1 |
69 |
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 |
15,048 |
3 |
67 |
21.2 |
30.0 |
2,702,513 |
53,693 |
65,629 |
108,693 |
1,320,585 |
1,273,235 |
32,239 |
41 |
131,258 |
1 |
configure.ocaml |
no-host |
3,979 |
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 |
50 |
0 |
0 |
1.3 |
19.1 |
30,586 |
30,586 |
0 |
1,520 |
14,782 |
14,284 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,913 |
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 |
22 |
1 |
2 |
2.8 |
8.8 |
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 |
18 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
467 |
417 |
52 |
22.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
19 |
4 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
22 |
21 |
2 |
8.8 |
osh-native-souffle |
1 |
no-host |
bin-true |
686 |
503 |
213 |
2.9 |
bash |
9 |
no-host |
bin-true |
544 |
429 |
124 |
1.3 |
dash |
17 |
no-host |
bin-true |
2,271 |
1,519 |
1,006 |
18.4 |
osh-cpython |
25 |
no-host |
bin-true |
818 |
589 |
243 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
829 |
595 |
248 |
7.5 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,882 |
9,047 |
6,235 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,022 |
9,051 |
6,387 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,570 |
17,522 |
12,891 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,196 |
9,130 |
6,332 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
16,172 |
9,407 |
6,913 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,798 |
1,696 |
1,132 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,712 |
1,590 |
1,141 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,623 |
2,261 |
1,575 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,985 |
1,642 |
1,383 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,979 |
1,720 |
1,295 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
19 |
24 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
203 |
132 |
74 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
51 |
26 |
25 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
27 |
23 |
19.1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,891 |
8,675 |
5,684 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,804 |
9,084 |
6,213 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
31,438 |
21,184 |
11,326 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,865 |
8,850 |
6,211 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
15,048 |
9,048 |
6,205 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,796 |
1,058 |
746 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,760 |
985 |
779 |
24.5 |
dash |
22 |
no-host |
configure.yash |
2,459 |
1,486 |
1,014 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,919 |
1,153 |
770 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,913 |
1,118 |
800 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
56 |
38 |
18 |
18.2 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
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,513 |
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,757 |
0 |
0 |
0 |
8 |
0 |
45 |
14 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,207 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native |
39 |
no-host |
abuild-print-help |
3,114 |
0 |
0 |
0 |
16 |
0 |
40 |
2 |
osh-native-souffle |
1 |
no-host |
bin-true |
109,409 |
0 |
0 |
0 |
8 |
0 |
1,993 |
44 |
bash |
9 |
no-host |
bin-true |
67,459 |
0 |
0 |
0 |
8 |
0 |
1,982 |
35 |
dash |
17 |
no-host |
bin-true |
765,490 |
0 |
0 |
0 |
8 |
0 |
1,995 |
230 |
osh-cpython |
25 |
no-host |
bin-true |
126,264 |
0 |
0 |
0 |
16 |
0 |
1,983 |
84 |
osh-native |
33 |
no-host |
bin-true |
124,285 |
0 |
0 |
0 |
16 |
0 |
1,985 |
57 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,224,156 |
0 |
0 |
0 |
32,928 |
0 |
14,500 |
1,004 |
bash |
10 |
no-host |
configure.cpython |
2,242,428 |
0 |
0 |
0 |
32,992 |
0 |
14,529 |
1,189 |
dash |
18 |
no-host |
configure.cpython |
6,217,367 |
0 |
0 |
0 |
27,512 |
0 |
13,193 |
1,085 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,403 |
0 |
0 |
0 |
27,520 |
0 |
13,164 |
959 |
osh-native |
34 |
no-host |
configure.cpython |
2,209,129 |
0 |
0 |
0 |
27,520 |
0 |
13,222 |
899 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,796 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
149 |
bash |
12 |
no-host |
configure.ocaml |
390,710 |
0 |
0 |
0 |
5,112 |
0 |
1,870 |
147 |
dash |
20 |
no-host |
configure.ocaml |
647,196 |
0 |
0 |
0 |
5,112 |
0 |
1,858 |
194 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,433 |
0 |
0 |
0 |
5,120 |
0 |
1,929 |
169 |
osh-native |
36 |
no-host |
configure.ocaml |
412,474 |
0 |
0 |
0 |
5,120 |
0 |
1,932 |
142 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,544 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,457 |
0 |
0 |
0 |
96 |
0 |
47 |
3 |
dash |
21 |
no-host |
configure.tcc |
24,033 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,994 |
0 |
0 |
0 |
104 |
0 |
47 |
9 |
osh-native |
37 |
no-host |
configure.tcc |
6,915 |
0 |
0 |
0 |
104 |
0 |
47 |
8 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,106,582 |
0 |
0 |
0 |
42,400 |
0 |
18,602 |
1,035 |
bash |
11 |
no-host |
configure.util-linux |
2,263,646 |
0 |
0 |
0 |
42,584 |
0 |
17,433 |
1,018 |
dash |
19 |
no-host |
configure.util-linux |
5,360,975 |
9 |
0 |
0 |
39,120 |
0 |
17,112 |
1,290 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,989,964 |
0 |
0 |
0 |
39,120 |
0 |
16,973 |
1,053 |
osh-native |
35 |
no-host |
configure.util-linux |
1,988,982 |
0 |
0 |
0 |
39,128 |
0 |
16,963 |
952 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,483 |
0 |
0 |
0 |
4,120 |
0 |
870 |
62 |
bash |
14 |
no-host |
configure.yash |
245,076 |
0 |
0 |
0 |
3,720 |
0 |
868 |
81 |
dash |
22 |
no-host |
configure.yash |
387,668 |
0 |
0 |
0 |
3,728 |
0 |
852 |
69 |
osh-cpython |
30 |
no-host |
configure.yash |
258,122 |
0 |
0 |
0 |
3,736 |
0 |
845 |
89 |
osh-native |
38 |
no-host |
configure.yash |
256,945 |
0 |
0 |
0 |
3,736 |
0 |
849 |
78 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,930 |
0 |
0 |
0 |
8 |
0 |
7 |
6 |
osh-cpython |
24 |
no-host |
hello-world |
342 |
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