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 |
469 |
22 |
21 |
24.18 |
1.13 |
bin-true |
no-host |
685 |
541 |
2,281 |
808 |
816 |
3.33 |
1.18 |
configure.cpython |
no-host |
15,072 |
15,130 |
29,047 |
15,367 |
15,439 |
1.93 |
1.02 |
configure.ocaml |
no-host |
3,826 |
3,762 |
4,661 |
3,843 |
3,850 |
1.22 |
1.00 |
configure.tcc |
no-host |
48 |
43 |
203 |
49 |
48 |
4.27 |
1.02 |
configure.util-linux |
no-host |
14,057 |
14,972 |
31,669 |
14,435 |
14,402 |
2.25 |
1.03 |
configure.yash |
no-host |
1,827 |
1,789 |
2,472 |
1,841 |
1,825 |
1.35 |
1.01 |
hello-world |
no-host |
2 |
1 |
58 |
3 |
3 |
37.91 |
2.14 |
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,100 |
23,777 |
3,148 |
3,083 |
9.38 |
1.24 |
bin-true |
no-host |
109,322 |
66,411 |
766,487 |
126,264 |
127,156 |
7.01 |
1.15 |
configure.cpython |
no-host |
2,228,901 |
2,242,619 |
6,214,338 |
2,233,159 |
2,213,209 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,697 |
391,166 |
646,461 |
412,945 |
412,339 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,488 |
24,010 |
6,962 |
6,888 |
3.66 |
1.06 |
configure.util-linux |
no-host |
2,101,609 |
2,257,715 |
5,382,791 |
1,998,093 |
1,997,081 |
2.56 |
0.95 |
configure.yash |
no-host |
256,075 |
244,636 |
386,567 |
257,328 |
256,954 |
1.51 |
1.00 |
hello-world |
no-host |
153 |
83 |
3,934 |
341 |
334 |
25.71 |
2.23 |
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 |
808 |
1 |
2 |
2.6 |
7.9 |
153,746 |
12,267 |
2,887 |
8,743 |
78,327 |
66,676 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,367 |
1 |
62 |
14.9 |
27.4 |
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,435 |
3 |
60 |
21.2 |
30.0 |
2,702,513 |
45,898 |
65,711 |
108,691 |
1,320,585 |
1,273,237 |
32,239 |
41 |
131,422 |
1 |
configure.ocaml |
no-host |
3,843 |
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.1 |
30,586 |
30,586 |
0 |
1,518 |
14,782 |
14,286 |
271 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,841 |
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 |
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 |
5.9 |
3,781 |
3,781 |
0 |
695 |
1,858 |
1,228 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
816 |
1 |
2 |
2.6 |
7.3 |
153,745 |
12,111 |
2,825 |
8,744 |
78,327 |
66,674 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,439 |
1 |
63 |
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,402 |
3 |
60 |
21.2 |
30.3 |
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,850 |
1 |
2 |
2.6 |
20.6 |
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,825 |
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 |
16 |
4 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
3 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
469 |
419 |
54 |
22.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
21 |
2 |
8.9 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
13 |
9 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
685 |
507 |
209 |
3.0 |
bash |
9 |
no-host |
bin-true |
541 |
423 |
129 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,281 |
1,495 |
1,045 |
18.0 |
osh-cpython |
25 |
no-host |
bin-true |
808 |
573 |
248 |
7.9 |
osh-native |
33 |
no-host |
bin-true |
816 |
581 |
250 |
7.3 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,072 |
9,210 |
6,264 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,130 |
9,202 |
6,355 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
29,047 |
17,945 |
12,991 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,367 |
9,090 |
6,546 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,439 |
8,909 |
6,665 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,826 |
1,626 |
1,228 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,762 |
1,573 |
1,208 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,661 |
2,202 |
1,669 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,843 |
1,636 |
1,246 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,850 |
1,585 |
1,303 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
19 |
29 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
43 |
26 |
17 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
203 |
148 |
58 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
29 |
20 |
19.1 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
26 |
22 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,057 |
8,746 |
5,792 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,972 |
9,259 |
6,200 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,669 |
21,229 |
11,521 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,435 |
8,698 |
5,933 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,402 |
8,689 |
5,923 |
30.3 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,827 |
1,075 |
760 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,789 |
1,048 |
745 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,472 |
1,526 |
985 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,841 |
1,059 |
786 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,825 |
1,135 |
693 |
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 |
58 |
37 |
20 |
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,535 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
bash |
15 |
no-host |
abuild-print-help |
1,100 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,777 |
0 |
0 |
0 |
8 |
0 |
45 |
11 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,148 |
0 |
0 |
0 |
16 |
0 |
39 |
6 |
osh-native |
39 |
no-host |
abuild-print-help |
3,083 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
109,322 |
0 |
0 |
0 |
8 |
0 |
1,990 |
103 |
bash |
9 |
no-host |
bin-true |
66,411 |
0 |
0 |
0 |
8 |
0 |
1,982 |
47 |
dash |
17 |
no-host |
bin-true |
766,487 |
0 |
0 |
0 |
8 |
0 |
1,996 |
171 |
osh-cpython |
25 |
no-host |
bin-true |
126,264 |
0 |
0 |
0 |
16 |
0 |
1,991 |
44 |
osh-native |
33 |
no-host |
bin-true |
127,156 |
0 |
0 |
0 |
16 |
0 |
1,985 |
99 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,228,901 |
0 |
0 |
0 |
32,928 |
0 |
14,422 |
1,001 |
bash |
10 |
no-host |
configure.cpython |
2,242,619 |
0 |
0 |
0 |
32,992 |
0 |
14,636 |
1,019 |
dash |
18 |
no-host |
configure.cpython |
6,214,338 |
1 |
0 |
0 |
27,512 |
0 |
13,296 |
1,134 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,159 |
1 |
0 |
0 |
27,520 |
0 |
13,251 |
992 |
osh-native |
34 |
no-host |
configure.cpython |
2,213,209 |
0 |
0 |
0 |
27,520 |
0 |
13,225 |
1,078 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,697 |
0 |
0 |
0 |
5,120 |
0 |
1,961 |
138 |
bash |
12 |
no-host |
configure.ocaml |
391,166 |
0 |
0 |
0 |
5,112 |
0 |
1,907 |
143 |
dash |
20 |
no-host |
configure.ocaml |
646,461 |
0 |
0 |
0 |
5,112 |
0 |
1,860 |
183 |
osh-cpython |
28 |
no-host |
configure.ocaml |
412,945 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
164 |
osh-native |
36 |
no-host |
configure.ocaml |
412,339 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
156 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,559 |
0 |
0 |
0 |
104 |
0 |
48 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,488 |
0 |
0 |
0 |
96 |
0 |
47 |
12 |
dash |
21 |
no-host |
configure.tcc |
24,010 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,962 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
37 |
no-host |
configure.tcc |
6,888 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,101,609 |
0 |
0 |
0 |
42,400 |
0 |
18,574 |
989 |
bash |
11 |
no-host |
configure.util-linux |
2,257,715 |
1 |
0 |
0 |
42,584 |
0 |
17,440 |
1,159 |
dash |
19 |
no-host |
configure.util-linux |
5,382,791 |
9 |
0 |
0 |
39,112 |
0 |
16,943 |
1,207 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,998,093 |
0 |
0 |
0 |
39,120 |
0 |
17,006 |
1,009 |
osh-native |
35 |
no-host |
configure.util-linux |
1,997,081 |
0 |
0 |
0 |
39,128 |
0 |
16,981 |
957 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,075 |
0 |
0 |
0 |
4,120 |
0 |
874 |
68 |
bash |
14 |
no-host |
configure.yash |
244,636 |
0 |
0 |
0 |
3,720 |
0 |
869 |
74 |
dash |
22 |
no-host |
configure.yash |
386,567 |
0 |
0 |
0 |
3,728 |
0 |
857 |
93 |
osh-cpython |
30 |
no-host |
configure.yash |
257,328 |
0 |
0 |
0 |
3,736 |
0 |
851 |
80 |
osh-native |
38 |
no-host |
configure.yash |
256,954 |
0 |
0 |
0 |
3,736 |
0 |
852 |
88 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
83 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,934 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
341 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
334 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host