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 |
455 |
22 |
21 |
23.46 |
1.15 |
bin-true |
no-host |
683 |
547 |
2,265 |
811 |
827 |
3.32 |
1.19 |
configure.cpython |
no-host |
15,138 |
15,260 |
29,039 |
15,586 |
15,510 |
1.92 |
1.03 |
configure.ocaml |
no-host |
3,818 |
3,773 |
4,676 |
3,908 |
3,894 |
1.22 |
1.02 |
configure.tcc |
no-host |
48 |
42 |
197 |
49 |
50 |
4.13 |
1.03 |
configure.util-linux |
no-host |
14,217 |
15,042 |
31,390 |
14,774 |
14,794 |
2.21 |
1.04 |
configure.yash |
no-host |
1,847 |
1,777 |
2,471 |
1,876 |
1,896 |
1.34 |
1.02 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
3 |
32.98 |
1.89 |
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,537 |
1,107 |
23,223 |
3,204 |
3,087 |
9.15 |
1.26 |
bin-true |
no-host |
109,392 |
66,403 |
759,912 |
126,185 |
125,831 |
6.95 |
1.15 |
configure.cpython |
no-host |
2,219,240 |
2,235,680 |
6,180,694 |
2,231,329 |
2,216,622 |
2.79 |
1.01 |
configure.ocaml |
no-host |
410,149 |
391,443 |
644,811 |
413,961 |
412,724 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,528 |
5,477 |
23,571 |
7,003 |
6,931 |
3.61 |
1.07 |
configure.util-linux |
no-host |
2,100,679 |
2,261,183 |
5,335,743 |
2,008,330 |
1,993,906 |
2.54 |
0.96 |
configure.yash |
no-host |
256,777 |
244,539 |
387,004 |
258,988 |
257,892 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
81 |
3,732 |
350 |
342 |
24.39 |
2.29 |
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,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
811 |
1 |
2 |
2.6 |
8.1 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,586 |
2 |
62 |
15.0 |
27.3 |
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,774 |
3 |
62 |
21.3 |
30.1 |
2,703,490 |
29,745 |
65,870 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,740 |
1 |
configure.ocaml |
no-host |
3,908 |
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,876 |
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 |
827 |
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,510 |
1 |
61 |
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,794 |
3 |
62 |
21.3 |
30.3 |
2,703,490 |
42,741 |
65,808 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,616 |
1 |
configure.ocaml |
no-host |
3,894 |
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 |
50 |
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,896 |
1 |
2 |
2.6 |
24.4 |
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.3 |
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 |
11 |
9 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
9 |
4 |
6 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
455 |
410 |
48 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
19 |
4 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
6 |
8.3 |
osh-native-souffle |
1 |
no-host |
bin-true |
683 |
505 |
211 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
426 |
130 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,265 |
1,476 |
1,049 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
811 |
556 |
270 |
8.1 |
osh-native |
33 |
no-host |
bin-true |
827 |
576 |
258 |
7.5 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,138 |
9,113 |
6,417 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,260 |
9,200 |
6,478 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,039 |
17,786 |
13,140 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,586 |
9,142 |
6,713 |
27.3 |
osh-native |
34 |
no-host |
configure.cpython |
15,510 |
9,245 |
6,447 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,818 |
1,694 |
1,163 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,773 |
1,607 |
1,184 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,676 |
2,289 |
1,595 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,908 |
1,659 |
1,290 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,894 |
1,593 |
1,337 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
32 |
10 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
197 |
156 |
44 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
28 |
21 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
50 |
26 |
24 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,217 |
8,960 |
5,729 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,042 |
9,256 |
6,269 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,390 |
20,951 |
11,541 |
30.3 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,774 |
8,788 |
6,177 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,794 |
8,830 |
6,152 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,847 |
1,142 |
713 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,777 |
1,050 |
729 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,471 |
1,545 |
969 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,876 |
1,063 |
817 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,896 |
1,057 |
842 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
0 |
1 |
1.4 |
dash |
16 |
no-host |
hello-world |
50 |
37 |
12 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,537 |
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,223 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,204 |
0 |
0 |
0 |
16 |
0 |
39 |
2 |
osh-native |
39 |
no-host |
abuild-print-help |
3,087 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
109,392 |
0 |
0 |
0 |
8 |
0 |
1,994 |
110 |
bash |
9 |
no-host |
bin-true |
66,403 |
0 |
0 |
0 |
8 |
0 |
1,989 |
74 |
dash |
17 |
no-host |
bin-true |
759,912 |
0 |
0 |
0 |
8 |
0 |
1,993 |
209 |
osh-cpython |
25 |
no-host |
bin-true |
126,185 |
0 |
0 |
0 |
16 |
0 |
1,988 |
46 |
osh-native |
33 |
no-host |
bin-true |
125,831 |
0 |
0 |
0 |
16 |
0 |
1,990 |
77 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,219,240 |
1 |
0 |
0 |
32,928 |
0 |
14,496 |
1,188 |
bash |
10 |
no-host |
configure.cpython |
2,235,680 |
1 |
0 |
0 |
32,992 |
0 |
14,630 |
1,000 |
dash |
18 |
no-host |
configure.cpython |
6,180,694 |
0 |
0 |
0 |
27,512 |
0 |
13,285 |
1,312 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,231,329 |
0 |
0 |
0 |
27,520 |
0 |
13,380 |
1,096 |
osh-native |
34 |
no-host |
configure.cpython |
2,216,622 |
1 |
0 |
0 |
27,520 |
0 |
13,264 |
948 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,149 |
0 |
0 |
0 |
5,120 |
0 |
1,950 |
152 |
bash |
12 |
no-host |
configure.ocaml |
391,443 |
0 |
0 |
0 |
5,112 |
0 |
1,879 |
129 |
dash |
20 |
no-host |
configure.ocaml |
644,811 |
0 |
0 |
0 |
5,112 |
0 |
1,862 |
158 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,961 |
0 |
0 |
0 |
5,120 |
0 |
1,921 |
170 |
osh-native |
36 |
no-host |
configure.ocaml |
412,724 |
0 |
0 |
0 |
5,120 |
0 |
1,933 |
148 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,528 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,477 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,571 |
0 |
0 |
0 |
96 |
0 |
53 |
8 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,003 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,931 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,100,679 |
2 |
0 |
0 |
42,400 |
0 |
18,645 |
1,085 |
bash |
11 |
no-host |
configure.util-linux |
2,261,183 |
2 |
0 |
0 |
42,584 |
0 |
17,499 |
1,099 |
dash |
19 |
no-host |
configure.util-linux |
5,335,743 |
8 |
0 |
0 |
39,112 |
0 |
16,927 |
1,214 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,008,330 |
0 |
0 |
0 |
39,120 |
0 |
16,956 |
970 |
osh-native |
35 |
no-host |
configure.util-linux |
1,993,906 |
0 |
0 |
0 |
39,128 |
0 |
16,994 |
1,004 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,777 |
0 |
0 |
0 |
4,120 |
0 |
871 |
83 |
bash |
14 |
no-host |
configure.yash |
244,539 |
0 |
0 |
0 |
3,720 |
0 |
871 |
88 |
dash |
22 |
no-host |
configure.yash |
387,004 |
0 |
0 |
0 |
3,728 |
0 |
854 |
88 |
osh-cpython |
30 |
no-host |
configure.yash |
258,988 |
0 |
0 |
0 |
3,736 |
0 |
848 |
78 |
osh-native |
38 |
no-host |
configure.yash |
257,892 |
0 |
0 |
0 |
3,736 |
0 |
849 |
83 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,732 |
0 |
0 |
0 |
8 |
0 |
7 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host