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 |
452 |
22 |
21 |
23.40 |
1.15 |
bin-true |
no-host |
673 |
547 |
2,238 |
813 |
818 |
3.32 |
1.21 |
configure.cpython |
no-host |
15,024 |
14,995 |
28,868 |
15,408 |
15,355 |
1.92 |
1.03 |
configure.ocaml |
no-host |
3,910 |
3,711 |
4,688 |
3,856 |
3,811 |
1.20 |
0.99 |
configure.tcc |
no-host |
48 |
41 |
194 |
49 |
49 |
4.04 |
1.02 |
configure.util-linux |
no-host |
14,121 |
14,762 |
31,398 |
14,495 |
14,381 |
2.22 |
1.03 |
configure.yash |
no-host |
1,879 |
1,740 |
2,468 |
1,824 |
1,834 |
1.31 |
0.97 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
32.56 |
1.97 |
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,526 |
1,124 |
23,211 |
3,193 |
3,163 |
9.19 |
1.26 |
bin-true |
no-host |
104,385 |
67,446 |
753,344 |
126,112 |
127,839 |
7.22 |
1.21 |
configure.cpython |
no-host |
2,220,400 |
2,242,617 |
6,219,384 |
2,218,807 |
2,214,006 |
2.80 |
1.00 |
configure.ocaml |
no-host |
410,292 |
390,576 |
644,830 |
413,424 |
413,422 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,558 |
5,470 |
23,523 |
6,988 |
6,934 |
3.59 |
1.07 |
configure.util-linux |
no-host |
2,110,736 |
2,259,244 |
5,335,260 |
2,000,025 |
1,993,970 |
2.53 |
0.95 |
configure.yash |
no-host |
256,695 |
244,014 |
387,022 |
257,338 |
258,407 |
1.51 |
1.00 |
hello-world |
no-host |
150 |
85 |
3,734 |
351 |
345 |
24.89 |
2.34 |
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.4 |
3,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.3 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,408 |
1 |
62 |
15.0 |
27.5 |
1,772,722 |
49,854 |
28,587 |
86,397 |
908,073 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,495 |
3 |
60 |
21.3 |
30.3 |
2,703,490 |
29,146 |
65,890 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,856 |
1 |
2 |
2.6 |
20.4 |
150,096 |
11,051 |
5,221 |
7,531 |
71,606 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,581 |
30,581 |
0 |
1,520 |
14,776 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,824 |
1 |
2 |
2.6 |
24.4 |
139,749 |
8,020 |
6,679 |
6,336 |
70,281 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,324 |
64,530 |
42,740 |
4,571 |
54,521 |
57,232 |
270 |
3 |
85,480 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
818 |
1 |
2 |
2.6 |
7.5 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,355 |
1 |
62 |
14.9 |
27.4 |
1,772,721 |
49,105 |
28,525 |
86,398 |
908,073 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,381 |
3 |
61 |
21.3 |
30.1 |
2,703,490 |
42,741 |
65,828 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,811 |
1 |
2 |
2.6 |
20.6 |
150,096 |
10,989 |
5,159 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,834 |
1 |
2 |
2.6 |
24.2 |
139,749 |
7,958 |
6,617 |
6,338 |
70,281 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.8 |
116,323 |
64,468 |
42,678 |
4,572 |
54,521 |
57,230 |
270 |
3 |
85,356 |
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 |
16 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
9 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
410 |
45 |
22.0 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
10 |
13 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.8 |
osh-native-souffle |
1 |
no-host |
bin-true |
673 |
497 |
208 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
418 |
140 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,238 |
1,474 |
1,015 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
579 |
250 |
8.3 |
osh-native |
33 |
no-host |
bin-true |
818 |
574 |
260 |
7.5 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,024 |
9,079 |
6,338 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,995 |
9,148 |
6,266 |
27.5 |
dash |
18 |
no-host |
configure.cpython |
28,868 |
17,493 |
13,257 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,408 |
9,104 |
6,574 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,355 |
8,927 |
6,611 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,910 |
1,663 |
1,287 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,711 |
1,622 |
1,110 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,688 |
2,266 |
1,632 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,856 |
1,696 |
1,197 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,811 |
1,589 |
1,261 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
28 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
27 |
14 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
136 |
61 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
30 |
19 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
42 |
7 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,121 |
9,008 |
5,593 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,762 |
9,042 |
6,215 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,398 |
20,854 |
11,644 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,495 |
8,804 |
5,886 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,381 |
8,630 |
5,943 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,879 |
1,007 |
881 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,740 |
1,035 |
710 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,468 |
1,525 |
984 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,824 |
1,054 |
774 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,834 |
1,032 |
805 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
36 |
13 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.4 |
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,526 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,124 |
0 |
0 |
0 |
8 |
0 |
39 |
2 |
dash |
23 |
no-host |
abuild-print-help |
23,211 |
0 |
0 |
0 |
8 |
0 |
45 |
10 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,193 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,163 |
0 |
0 |
0 |
16 |
0 |
39 |
0 |
osh-native-souffle |
1 |
no-host |
bin-true |
104,385 |
0 |
0 |
0 |
8 |
0 |
1,995 |
93 |
bash |
9 |
no-host |
bin-true |
67,446 |
0 |
0 |
0 |
8 |
0 |
1,990 |
36 |
dash |
17 |
no-host |
bin-true |
753,344 |
0 |
0 |
0 |
8 |
0 |
2,001 |
92 |
osh-cpython |
25 |
no-host |
bin-true |
126,112 |
0 |
0 |
0 |
16 |
0 |
1,990 |
46 |
osh-native |
33 |
no-host |
bin-true |
127,839 |
0 |
0 |
0 |
16 |
0 |
1,988 |
64 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,220,400 |
0 |
0 |
0 |
32,928 |
0 |
14,529 |
1,082 |
bash |
10 |
no-host |
configure.cpython |
2,242,617 |
0 |
0 |
0 |
32,992 |
0 |
14,678 |
1,163 |
dash |
18 |
no-host |
configure.cpython |
6,219,384 |
0 |
0 |
0 |
27,512 |
0 |
13,327 |
1,225 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,218,807 |
0 |
0 |
0 |
27,520 |
0 |
13,313 |
1,228 |
osh-native |
34 |
no-host |
configure.cpython |
2,214,006 |
0 |
0 |
0 |
27,520 |
0 |
13,325 |
1,146 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,292 |
0 |
0 |
0 |
5,120 |
0 |
1,947 |
143 |
bash |
12 |
no-host |
configure.ocaml |
390,576 |
0 |
0 |
0 |
5,112 |
0 |
1,919 |
150 |
dash |
20 |
no-host |
configure.ocaml |
644,830 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
182 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,424 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
191 |
osh-native |
36 |
no-host |
configure.ocaml |
413,422 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
196 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,558 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,470 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,523 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,988 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,934 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,110,736 |
0 |
0 |
0 |
42,400 |
0 |
18,579 |
1,080 |
bash |
11 |
no-host |
configure.util-linux |
2,259,244 |
1 |
0 |
0 |
42,584 |
0 |
17,434 |
1,311 |
dash |
19 |
no-host |
configure.util-linux |
5,335,260 |
12 |
0 |
0 |
39,120 |
0 |
16,970 |
1,362 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,000,025 |
0 |
0 |
0 |
39,120 |
0 |
16,960 |
1,081 |
osh-native |
35 |
no-host |
configure.util-linux |
1,993,970 |
0 |
0 |
0 |
39,128 |
0 |
16,915 |
1,022 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,695 |
0 |
0 |
0 |
4,120 |
0 |
872 |
72 |
bash |
14 |
no-host |
configure.yash |
244,014 |
0 |
0 |
0 |
3,720 |
0 |
868 |
79 |
dash |
22 |
no-host |
configure.yash |
387,022 |
0 |
0 |
0 |
3,728 |
0 |
854 |
111 |
osh-cpython |
30 |
no-host |
configure.yash |
257,338 |
0 |
0 |
0 |
3,736 |
0 |
849 |
74 |
osh-native |
38 |
no-host |
configure.yash |
258,407 |
0 |
0 |
0 |
3,736 |
0 |
849 |
98 |
osh-native-souffle |
0 |
no-host |
hello-world |
150 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
85 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,734 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
351 |
0 |
0 |
0 |
16 |
0 |
1 |
2 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host