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 |
467 |
22 |
22 |
24.06 |
1.14 |
bin-true |
no-host |
707 |
548 |
2,257 |
845 |
820 |
3.19 |
1.20 |
configure.cpython |
no-host |
15,529 |
15,141 |
29,195 |
15,967 |
15,688 |
1.88 |
1.03 |
configure.ocaml |
no-host |
3,843 |
3,747 |
4,681 |
3,835 |
3,831 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
41 |
193 |
49 |
48 |
4.02 |
1.03 |
configure.util-linux |
no-host |
14,093 |
14,918 |
32,402 |
14,780 |
14,420 |
2.30 |
1.05 |
configure.yash |
no-host |
1,828 |
1,771 |
2,501 |
1,833 |
1,855 |
1.37 |
1.00 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
30.38 |
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,535 |
1,110 |
23,308 |
3,212 |
3,115 |
9.19 |
1.27 |
bin-true |
no-host |
105,349 |
66,478 |
759,967 |
126,154 |
128,869 |
7.21 |
1.20 |
configure.cpython |
no-host |
2,229,717 |
2,243,703 |
6,236,904 |
2,228,331 |
2,217,044 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,505 |
390,879 |
646,351 |
413,662 |
412,484 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,557 |
5,459 |
23,502 |
7,021 |
6,905 |
3.58 |
1.07 |
configure.util-linux |
no-host |
2,102,193 |
2,260,247 |
5,341,904 |
1,994,680 |
2,000,425 |
2.54 |
0.95 |
configure.yash |
no-host |
255,629 |
245,245 |
387,475 |
258,780 |
257,923 |
1.52 |
1.01 |
hello-world |
no-host |
150 |
78 |
3,727 |
348 |
345 |
24.85 |
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.0 |
3,773 |
3,773 |
0 |
694 |
1,851 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
845 |
1 |
2 |
2.6 |
8.0 |
154,738 |
13,218 |
2,875 |
9,744 |
78,320 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,967 |
1 |
66 |
15.0 |
27.4 |
1,772,720 |
49,852 |
28,585 |
86,397 |
908,072 |
778,251 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,780 |
3 |
65 |
21.3 |
30.0 |
2,703,597 |
42,056 |
65,868 |
109,705 |
1,320,614 |
1,273,278 |
27,394 |
41 |
131,736 |
1 |
configure.ocaml |
no-host |
3,835 |
1 |
2 |
2.6 |
20.4 |
150,094 |
11,049 |
5,219 |
7,531 |
71,605 |
70,958 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,579 |
30,579 |
0 |
1,520 |
14,775 |
14,284 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,833 |
1 |
2 |
2.6 |
24.2 |
139,747 |
8,018 |
6,677 |
6,336 |
70,280 |
63,131 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,322 |
64,528 |
42,738 |
4,571 |
54,520 |
57,231 |
270 |
3 |
85,476 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.8 |
3,772 |
3,772 |
0 |
695 |
1,851 |
1,226 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.6 |
7.7 |
154,737 |
13,061 |
2,813 |
9,745 |
78,320 |
66,672 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,688 |
1 |
64 |
14.9 |
27.3 |
1,772,719 |
49,103 |
28,523 |
86,398 |
908,072 |
778,249 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,420 |
2 |
60 |
21.3 |
30.3 |
2,703,488 |
44,166 |
65,806 |
109,677 |
1,320,578 |
1,273,233 |
27,391 |
41 |
131,612 |
1 |
configure.ocaml |
no-host |
3,831 |
1 |
2 |
2.6 |
20.6 |
150,094 |
10,987 |
5,157 |
7,533 |
71,605 |
70,956 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,579 |
30,579 |
0 |
1,522 |
14,775 |
14,282 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,855 |
1 |
2 |
2.6 |
24.2 |
139,747 |
7,956 |
6,615 |
6,338 |
70,280 |
63,129 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.5 |
116,321 |
64,466 |
42,676 |
4,572 |
54,520 |
57,229 |
270 |
3 |
85,352 |
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 |
13 |
7 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
7 |
3 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
467 |
415 |
55 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
8 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
22 |
13 |
10 |
8.5 |
osh-native-souffle |
1 |
no-host |
bin-true |
707 |
506 |
233 |
2.8 |
bash |
9 |
no-host |
bin-true |
548 |
415 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,257 |
1,495 |
1,021 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
845 |
589 |
268 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
820 |
590 |
244 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,529 |
9,329 |
6,595 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,141 |
9,036 |
6,525 |
27.1 |
dash |
18 |
no-host |
configure.cpython |
29,195 |
17,644 |
13,402 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,967 |
9,352 |
6,888 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,688 |
9,258 |
6,621 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,843 |
1,639 |
1,244 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,747 |
1,580 |
1,186 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,681 |
2,256 |
1,635 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,835 |
1,563 |
1,310 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,831 |
1,610 |
1,258 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
30 |
18 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
30 |
12 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
154 |
42 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
22 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
29 |
19 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,093 |
8,900 |
5,669 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,918 |
9,219 |
6,196 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,402 |
21,410 |
12,136 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,780 |
8,876 |
6,089 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,420 |
8,546 |
6,038 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,828 |
1,012 |
825 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,771 |
1,107 |
666 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,501 |
1,527 |
1,018 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,833 |
1,087 |
750 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,855 |
1,020 |
820 |
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 |
49 |
21 |
28 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.0 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
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,535 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,110 |
0 |
0 |
0 |
8 |
0 |
39 |
3 |
dash |
23 |
no-host |
abuild-print-help |
23,308 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,212 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,115 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,349 |
0 |
0 |
0 |
8 |
0 |
1,985 |
101 |
bash |
9 |
no-host |
bin-true |
66,478 |
0 |
0 |
0 |
8 |
0 |
1,988 |
36 |
dash |
17 |
no-host |
bin-true |
759,967 |
0 |
0 |
0 |
8 |
0 |
2,003 |
181 |
osh-cpython |
25 |
no-host |
bin-true |
126,154 |
0 |
0 |
0 |
16 |
0 |
1,985 |
183 |
osh-native |
33 |
no-host |
bin-true |
128,869 |
0 |
0 |
0 |
16 |
0 |
1,989 |
115 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,229,717 |
0 |
0 |
0 |
32,928 |
0 |
14,552 |
1,077 |
bash |
10 |
no-host |
configure.cpython |
2,243,703 |
0 |
0 |
0 |
32,992 |
0 |
14,657 |
1,033 |
dash |
18 |
no-host |
configure.cpython |
6,236,904 |
0 |
0 |
0 |
27,512 |
0 |
13,269 |
1,292 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,228,331 |
0 |
0 |
0 |
27,520 |
0 |
13,192 |
1,146 |
osh-native |
34 |
no-host |
configure.cpython |
2,217,044 |
0 |
0 |
0 |
27,520 |
0 |
13,252 |
1,113 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,505 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
197 |
bash |
12 |
no-host |
configure.ocaml |
390,879 |
0 |
0 |
0 |
5,112 |
0 |
1,872 |
143 |
dash |
20 |
no-host |
configure.ocaml |
646,351 |
0 |
0 |
0 |
5,112 |
0 |
1,857 |
193 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,662 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
167 |
osh-native |
36 |
no-host |
configure.ocaml |
412,484 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
164 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,557 |
0 |
0 |
0 |
104 |
0 |
49 |
7 |
bash |
13 |
no-host |
configure.tcc |
5,459 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,502 |
0 |
0 |
0 |
96 |
0 |
53 |
7 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,021 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native |
37 |
no-host |
configure.tcc |
6,905 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,102,193 |
0 |
0 |
0 |
42,400 |
0 |
18,552 |
1,127 |
bash |
11 |
no-host |
configure.util-linux |
2,260,247 |
1 |
0 |
0 |
42,592 |
0 |
17,494 |
1,018 |
dash |
19 |
no-host |
configure.util-linux |
5,341,904 |
9 |
0 |
0 |
39,112 |
0 |
16,981 |
1,272 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,994,680 |
0 |
0 |
0 |
39,136 |
0 |
16,994 |
1,061 |
osh-native |
35 |
no-host |
configure.util-linux |
2,000,425 |
0 |
0 |
0 |
39,136 |
0 |
16,989 |
1,063 |
osh-native-souffle |
6 |
no-host |
configure.yash |
255,629 |
0 |
0 |
0 |
4,120 |
0 |
870 |
101 |
bash |
14 |
no-host |
configure.yash |
245,245 |
0 |
0 |
0 |
3,720 |
0 |
868 |
90 |
dash |
22 |
no-host |
configure.yash |
387,475 |
0 |
0 |
0 |
3,728 |
0 |
854 |
95 |
osh-cpython |
30 |
no-host |
configure.yash |
258,780 |
0 |
0 |
0 |
3,736 |
0 |
848 |
83 |
osh-native |
38 |
no-host |
configure.yash |
257,923 |
0 |
0 |
0 |
3,736 |
0 |
850 |
135 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
78 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,727 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
348 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native-souffle |
Shell and Host