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 |
462 |
22 |
21 |
23.71 |
1.12 |
bin-true |
no-host |
673 |
539 |
2,272 |
813 |
817 |
3.38 |
1.21 |
configure.cpython |
no-host |
15,329 |
15,288 |
29,030 |
15,586 |
15,444 |
1.89 |
1.02 |
configure.ocaml |
no-host |
3,852 |
3,769 |
4,723 |
3,866 |
3,854 |
1.23 |
1.00 |
configure.tcc |
no-host |
48 |
42 |
193 |
49 |
49 |
4.06 |
1.04 |
configure.util-linux |
no-host |
14,193 |
15,069 |
31,456 |
14,547 |
14,402 |
2.22 |
1.02 |
configure.yash |
no-host |
1,852 |
1,803 |
2,488 |
1,851 |
1,853 |
1.34 |
1.00 |
hello-world |
no-host |
2 |
1 |
50 |
3 |
3 |
31.58 |
1.81 |
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,591 |
1,112 |
23,373 |
3,212 |
3,100 |
9.02 |
1.24 |
bin-true |
no-host |
103,293 |
66,424 |
760,936 |
126,146 |
127,822 |
7.37 |
1.22 |
configure.cpython |
no-host |
2,218,664 |
2,239,680 |
6,218,461 |
2,236,554 |
2,225,176 |
2.80 |
1.01 |
configure.ocaml |
no-host |
410,856 |
391,067 |
645,080 |
413,246 |
413,521 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,535 |
5,473 |
23,501 |
7,012 |
6,932 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,103,059 |
2,254,948 |
5,349,766 |
2,002,290 |
2,000,247 |
2.54 |
0.95 |
configure.yash |
no-host |
256,558 |
244,507 |
387,327 |
257,321 |
257,651 |
1.51 |
1.00 |
hello-world |
no-host |
151 |
85 |
3,736 |
354 |
349 |
24.74 |
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.3 |
3,746 |
3,746 |
0 |
694 |
1,840 |
1,212 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.0 |
154,711 |
13,191 |
2,848 |
9,744 |
78,309 |
66,658 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,586 |
1 |
63 |
15.0 |
27.5 |
1,772,693 |
49,825 |
28,558 |
86,397 |
908,061 |
778,235 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,547 |
3 |
61 |
21.3 |
30.1 |
2,703,461 |
29,117 |
65,861 |
109,675 |
1,320,567 |
1,273,219 |
27,391 |
41 |
131,722 |
1 |
configure.ocaml |
no-host |
3,866 |
1 |
2 |
2.6 |
20.6 |
150,067 |
11,022 |
5,192 |
7,531 |
71,594 |
70,942 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,552 |
30,552 |
0 |
1,520 |
14,764 |
14,268 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,851 |
1 |
2 |
2.6 |
24.4 |
139,720 |
7,991 |
6,650 |
6,336 |
70,269 |
63,115 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,295 |
64,501 |
42,711 |
4,571 |
54,509 |
57,215 |
270 |
3 |
85,422 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,745 |
3,745 |
0 |
695 |
1,840 |
1,210 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
817 |
1 |
2 |
2.6 |
7.7 |
154,710 |
12,979 |
2,786 |
9,745 |
78,309 |
66,656 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,444 |
2 |
64 |
15.0 |
27.5 |
1,772,692 |
49,076 |
28,496 |
86,398 |
908,061 |
778,233 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,402 |
3 |
62 |
21.3 |
30.1 |
2,703,461 |
42,712 |
65,799 |
109,677 |
1,320,567 |
1,273,217 |
27,391 |
41 |
131,598 |
1 |
configure.ocaml |
no-host |
3,854 |
1 |
2 |
2.6 |
20.6 |
150,067 |
10,960 |
5,130 |
7,533 |
71,594 |
70,940 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,552 |
30,552 |
0 |
1,522 |
14,764 |
14,266 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,853 |
1 |
2 |
2.6 |
24.4 |
139,720 |
7,929 |
6,588 |
6,338 |
70,269 |
63,113 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,294 |
64,439 |
42,649 |
4,572 |
54,509 |
57,213 |
270 |
3 |
85,298 |
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 |
17 |
3 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
8 |
2 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
462 |
410 |
55 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
8.8 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
15 |
7 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
673 |
506 |
200 |
2.9 |
bash |
9 |
no-host |
bin-true |
539 |
423 |
125 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,272 |
1,517 |
1,020 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
581 |
249 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
817 |
573 |
258 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
15,329 |
9,095 |
6,635 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,288 |
9,178 |
6,537 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
29,030 |
17,674 |
13,248 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,586 |
9,174 |
6,675 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,444 |
9,097 |
6,528 |
27.5 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,852 |
1,754 |
1,137 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,769 |
1,572 |
1,214 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,723 |
2,305 |
1,634 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,866 |
1,591 |
1,313 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,854 |
1,676 |
1,216 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
32 |
16 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
29 |
14 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
131 |
66 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
36 |
14 |
19.3 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
39 |
11 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
14,193 |
8,867 |
5,807 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
15,069 |
9,132 |
6,441 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,456 |
20,837 |
11,730 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,547 |
8,631 |
6,107 |
30.1 |
osh-native |
35 |
no-host |
configure.util-linux |
14,402 |
8,554 |
6,050 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,852 |
1,084 |
777 |
24.4 |
bash |
14 |
no-host |
configure.yash |
1,803 |
1,008 |
798 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,488 |
1,559 |
970 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,851 |
1,030 |
825 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,853 |
1,082 |
775 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
2 |
2 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
50 |
31 |
19 |
17.6 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.3 |
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,591 |
0 |
0 |
0 |
16 |
0 |
40 |
4 |
bash |
15 |
no-host |
abuild-print-help |
1,112 |
0 |
0 |
0 |
8 |
0 |
39 |
5 |
dash |
23 |
no-host |
abuild-print-help |
23,373 |
0 |
0 |
0 |
8 |
0 |
45 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,212 |
0 |
0 |
0 |
16 |
0 |
39 |
6 |
osh-native |
39 |
no-host |
abuild-print-help |
3,100 |
0 |
0 |
0 |
16 |
0 |
39 |
3 |
osh-native-souffle |
1 |
no-host |
bin-true |
103,293 |
0 |
0 |
0 |
8 |
0 |
1,989 |
155 |
bash |
9 |
no-host |
bin-true |
66,424 |
0 |
0 |
0 |
8 |
0 |
1,989 |
33 |
dash |
17 |
no-host |
bin-true |
760,936 |
0 |
0 |
0 |
8 |
0 |
1,999 |
349 |
osh-cpython |
25 |
no-host |
bin-true |
126,146 |
0 |
0 |
0 |
16 |
0 |
1,991 |
81 |
osh-native |
33 |
no-host |
bin-true |
127,822 |
0 |
0 |
0 |
16 |
0 |
1,990 |
97 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,218,664 |
0 |
0 |
0 |
32,928 |
0 |
14,558 |
1,095 |
bash |
10 |
no-host |
configure.cpython |
2,239,680 |
0 |
0 |
0 |
32,992 |
0 |
14,613 |
1,146 |
dash |
18 |
no-host |
configure.cpython |
6,218,461 |
0 |
0 |
0 |
27,512 |
0 |
13,296 |
1,397 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,236,554 |
0 |
0 |
0 |
27,520 |
0 |
13,256 |
991 |
osh-native |
34 |
no-host |
configure.cpython |
2,225,176 |
0 |
0 |
0 |
27,520 |
0 |
13,254 |
1,040 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,856 |
0 |
0 |
0 |
5,120 |
0 |
1,955 |
159 |
bash |
12 |
no-host |
configure.ocaml |
391,067 |
0 |
0 |
0 |
5,112 |
0 |
1,890 |
150 |
dash |
20 |
no-host |
configure.ocaml |
645,080 |
0 |
0 |
0 |
5,112 |
0 |
1,851 |
265 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,246 |
0 |
0 |
0 |
5,120 |
0 |
1,931 |
181 |
osh-native |
36 |
no-host |
configure.ocaml |
413,521 |
0 |
0 |
0 |
5,120 |
0 |
1,934 |
146 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,535 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,473 |
0 |
0 |
0 |
96 |
0 |
47 |
2 |
dash |
21 |
no-host |
configure.tcc |
23,501 |
0 |
0 |
0 |
96 |
0 |
53 |
6 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,012 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native |
37 |
no-host |
configure.tcc |
6,932 |
0 |
0 |
0 |
104 |
0 |
46 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,103,059 |
0 |
0 |
0 |
42,400 |
0 |
18,617 |
1,077 |
bash |
11 |
no-host |
configure.util-linux |
2,254,948 |
0 |
0 |
0 |
42,584 |
0 |
17,457 |
1,152 |
dash |
19 |
no-host |
configure.util-linux |
5,349,766 |
11 |
0 |
0 |
39,120 |
0 |
16,962 |
1,211 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,002,290 |
1 |
0 |
0 |
39,128 |
0 |
16,946 |
981 |
osh-native |
35 |
no-host |
configure.util-linux |
2,000,247 |
2 |
0 |
0 |
39,136 |
0 |
17,083 |
1,058 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,558 |
0 |
0 |
0 |
4,120 |
0 |
870 |
92 |
bash |
14 |
no-host |
configure.yash |
244,507 |
0 |
0 |
0 |
3,720 |
0 |
868 |
90 |
dash |
22 |
no-host |
configure.yash |
387,327 |
0 |
0 |
0 |
3,728 |
0 |
854 |
109 |
osh-cpython |
30 |
no-host |
configure.yash |
257,321 |
0 |
0 |
0 |
3,736 |
0 |
849 |
92 |
osh-native |
38 |
no-host |
configure.yash |
257,651 |
0 |
0 |
0 |
3,736 |
0 |
846 |
73 |
osh-native-souffle |
0 |
no-host |
hello-world |
151 |
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,736 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
354 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
32 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host