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 |
20 |
9 |
458 |
23 |
22 |
23.22 |
1.16 |
bin-true |
no-host |
673 |
545 |
2,285 |
820 |
832 |
3.40 |
1.22 |
configure.cpython |
no-host |
15,300 |
15,344 |
29,609 |
15,737 |
15,704 |
1.94 |
1.03 |
configure.ocaml |
no-host |
3,862 |
3,771 |
4,761 |
3,936 |
3,862 |
1.23 |
1.02 |
configure.tcc |
no-host |
48 |
41 |
203 |
50 |
48 |
4.23 |
1.04 |
configure.util-linux |
no-host |
14,320 |
15,191 |
32,320 |
14,888 |
14,578 |
2.26 |
1.04 |
configure.yash |
no-host |
1,831 |
1,809 |
2,547 |
1,898 |
1,871 |
1.39 |
1.04 |
hello-world |
no-host |
2 |
1 |
49 |
3 |
3 |
31.33 |
1.86 |
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,571 |
1,087 |
23,338 |
3,180 |
3,166 |
9.08 |
1.24 |
bin-true |
no-host |
106,380 |
66,362 |
769,290 |
125,146 |
126,864 |
7.23 |
1.18 |
configure.cpython |
no-host |
2,221,198 |
2,236,439 |
6,203,724 |
2,223,792 |
2,205,529 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,710 |
390,798 |
646,392 |
414,362 |
412,509 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,559 |
5,470 |
23,615 |
6,993 |
6,914 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,105,337 |
2,261,564 |
5,351,647 |
2,001,483 |
1,993,478 |
2.54 |
0.95 |
configure.yash |
no-host |
256,354 |
244,731 |
388,321 |
258,552 |
257,915 |
1.51 |
1.01 |
hello-world |
no-host |
155 |
83 |
3,736 |
350 |
344 |
24.10 |
2.26 |
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,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
820 |
1 |
2 |
2.6 |
8.0 |
154,740 |
13,220 |
2,877 |
9,744 |
78,321 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,737 |
1 |
64 |
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,888 |
3 |
64 |
21.3 |
30.0 |
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,936 |
1 |
2 |
2.6 |
20.6 |
150,096 |
11,051 |
5,221 |
7,531 |
71,606 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
50 |
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,898 |
1 |
2 |
2.6 |
24.2 |
139,749 |
8,020 |
6,679 |
6,336 |
70,281 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
23 |
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.8 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
832 |
1 |
2 |
2.6 |
8.0 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,704 |
1 |
65 |
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,578 |
3 |
63 |
21.3 |
30.0 |
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,862 |
1 |
2 |
2.6 |
20.4 |
150,096 |
10,989 |
5,159 |
7,533 |
71,606 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.4 |
30,581 |
30,581 |
0 |
1,522 |
14,776 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,871 |
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 |
22 |
1 |
2 |
2.8 |
8.7 |
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 |
20 |
15 |
5 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
8 |
1 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
458 |
426 |
35 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
23 |
14 |
9 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
22 |
17 |
5 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
673 |
508 |
199 |
2.9 |
bash |
9 |
no-host |
bin-true |
545 |
422 |
134 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,285 |
1,446 |
1,111 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
820 |
586 |
247 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
832 |
590 |
257 |
8.0 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,300 |
9,380 |
6,316 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,344 |
9,123 |
6,645 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,609 |
17,839 |
13,727 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,737 |
9,054 |
6,958 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,704 |
8,927 |
6,956 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,862 |
1,623 |
1,259 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,771 |
1,588 |
1,201 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,761 |
2,223 |
1,755 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,936 |
1,703 |
1,271 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,862 |
1,620 |
1,278 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
28 |
21 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
20 |
21 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
203 |
152 |
54 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
50 |
26 |
25 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
35 |
13 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,320 |
8,990 |
5,795 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
15,191 |
9,154 |
6,525 |
30.0 |
dash |
19 |
no-host |
configure.util-linux |
32,320 |
21,571 |
11,884 |
30.4 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,888 |
9,027 |
6,066 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,578 |
8,827 |
5,937 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,831 |
1,050 |
787 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,809 |
1,074 |
740 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,547 |
1,530 |
1,062 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,898 |
1,073 |
826 |
24.2 |
osh-native |
38 |
no-host |
configure.yash |
1,871 |
1,102 |
771 |
24.2 |
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 |
49 |
25 |
24 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
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,571 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,087 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,338 |
0 |
0 |
0 |
8 |
0 |
45 |
6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,180 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,166 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,380 |
0 |
0 |
0 |
8 |
0 |
1,989 |
66 |
bash |
9 |
no-host |
bin-true |
66,362 |
0 |
0 |
0 |
8 |
0 |
1,987 |
83 |
dash |
17 |
no-host |
bin-true |
769,290 |
0 |
0 |
0 |
8 |
0 |
2,004 |
252 |
osh-cpython |
25 |
no-host |
bin-true |
125,146 |
0 |
0 |
0 |
16 |
0 |
1,993 |
56 |
osh-native |
33 |
no-host |
bin-true |
126,864 |
0 |
0 |
0 |
16 |
0 |
1,985 |
100 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,221,198 |
0 |
0 |
0 |
32,928 |
0 |
14,539 |
1,249 |
bash |
10 |
no-host |
configure.cpython |
2,236,439 |
1 |
0 |
0 |
32,992 |
0 |
14,660 |
1,142 |
dash |
18 |
no-host |
configure.cpython |
6,203,724 |
0 |
0 |
0 |
27,512 |
0 |
13,245 |
1,158 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,792 |
0 |
0 |
0 |
27,520 |
0 |
13,243 |
1,011 |
osh-native |
34 |
no-host |
configure.cpython |
2,205,529 |
0 |
0 |
0 |
27,520 |
0 |
13,153 |
1,016 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,710 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
178 |
bash |
12 |
no-host |
configure.ocaml |
390,798 |
0 |
0 |
0 |
5,112 |
0 |
1,895 |
143 |
dash |
20 |
no-host |
configure.ocaml |
646,392 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
165 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,362 |
0 |
0 |
0 |
5,120 |
0 |
1,935 |
175 |
osh-native |
36 |
no-host |
configure.ocaml |
412,509 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
160 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,559 |
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,615 |
0 |
0 |
0 |
96 |
0 |
54 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,993 |
0 |
0 |
0 |
104 |
0 |
47 |
6 |
osh-native |
37 |
no-host |
configure.tcc |
6,914 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,105,337 |
1 |
0 |
0 |
42,400 |
0 |
18,599 |
1,199 |
bash |
11 |
no-host |
configure.util-linux |
2,261,564 |
2 |
0 |
0 |
42,584 |
0 |
17,425 |
1,226 |
dash |
19 |
no-host |
configure.util-linux |
5,351,647 |
12 |
0 |
0 |
39,136 |
0 |
16,946 |
1,357 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,001,483 |
0 |
0 |
0 |
39,120 |
0 |
17,017 |
1,138 |
osh-native |
35 |
no-host |
configure.util-linux |
1,993,478 |
0 |
0 |
0 |
39,136 |
0 |
17,049 |
987 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,354 |
0 |
0 |
0 |
4,120 |
0 |
867 |
82 |
bash |
14 |
no-host |
configure.yash |
244,731 |
0 |
0 |
0 |
3,720 |
0 |
868 |
81 |
dash |
22 |
no-host |
configure.yash |
388,321 |
0 |
0 |
0 |
3,728 |
0 |
854 |
101 |
osh-cpython |
30 |
no-host |
configure.yash |
258,552 |
0 |
0 |
0 |
3,736 |
0 |
850 |
177 |
osh-native |
38 |
no-host |
configure.yash |
257,915 |
0 |
0 |
0 |
3,736 |
0 |
851 |
89 |
osh-native-souffle |
0 |
no-host |
hello-world |
155 |
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,736 |
0 |
0 |
0 |
8 |
0 |
7 |
3 |
osh-cpython |
24 |
no-host |
hello-world |
350 |
0 |
0 |
0 |
16 |
0 |
1 |
1 |
osh-native |
32 |
no-host |
hello-world |
344 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host