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 |
443 |
22 |
21 |
23.19 |
1.13 |
bin-true |
no-host |
665 |
539 |
2,214 |
812 |
805 |
3.33 |
1.22 |
configure.cpython |
no-host |
14,907 |
15,071 |
28,338 |
15,160 |
15,295 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,783 |
3,772 |
4,605 |
3,824 |
3,834 |
1.22 |
1.01 |
configure.tcc |
no-host |
48 |
42 |
193 |
49 |
49 |
4.01 |
1.03 |
configure.util-linux |
no-host |
13,887 |
14,812 |
30,938 |
14,310 |
14,241 |
2.23 |
1.03 |
configure.yash |
no-host |
1,827 |
1,750 |
2,426 |
1,843 |
1,810 |
1.33 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
3 |
34.49 |
2.03 |
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,534 |
1,091 |
23,145 |
3,162 |
3,123 |
9.13 |
1.25 |
bin-true |
no-host |
106,302 |
65,432 |
751,433 |
127,155 |
127,880 |
7.07 |
1.20 |
configure.cpython |
no-host |
2,223,556 |
2,241,758 |
6,200,266 |
2,224,862 |
2,214,375 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,525 |
391,093 |
645,628 |
413,786 |
413,944 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,545 |
5,489 |
23,574 |
6,989 |
6,904 |
3.60 |
1.07 |
configure.util-linux |
no-host |
2,108,242 |
2,263,647 |
5,317,764 |
2,007,327 |
1,998,919 |
2.52 |
0.95 |
configure.yash |
no-host |
256,201 |
244,710 |
386,230 |
258,442 |
257,097 |
1.51 |
1.01 |
hello-world |
no-host |
153 |
80 |
3,743 |
352 |
345 |
24.46 |
2.30 |
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,774 |
3,774 |
0 |
694 |
1,851 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
812 |
1 |
2 |
2.6 |
8.0 |
154,739 |
13,219 |
2,876 |
9,744 |
78,320 |
66,675 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,160 |
1 |
61 |
15.0 |
27.5 |
1,772,721 |
49,853 |
28,586 |
86,397 |
908,072 |
778,252 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,310 |
3 |
59 |
21.3 |
30.3 |
2,703,489 |
29,145 |
65,889 |
109,675 |
1,320,578 |
1,273,236 |
27,391 |
41 |
131,778 |
1 |
configure.ocaml |
no-host |
3,824 |
1 |
2 |
2.6 |
20.6 |
150,095 |
11,050 |
5,220 |
7,531 |
71,605 |
70,959 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.1 |
30,580 |
30,580 |
0 |
1,520 |
14,775 |
14,285 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,843 |
1 |
2 |
2.6 |
24.4 |
139,748 |
8,019 |
6,678 |
6,336 |
70,280 |
63,132 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,323 |
64,529 |
42,739 |
4,571 |
54,520 |
57,232 |
270 |
3 |
85,478 |
1 |
hello-world |
no-host |
3 |
0 |
0 |
0.2 |
5.9 |
3,773 |
3,773 |
0 |
695 |
1,851 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
805 |
1 |
2 |
2.6 |
7.9 |
154,738 |
13,062 |
2,814 |
9,745 |
78,320 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,295 |
1 |
62 |
14.9 |
27.3 |
1,772,720 |
49,104 |
28,524 |
86,398 |
908,072 |
778,250 |
22,694 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,241 |
3 |
59 |
21.3 |
30.0 |
2,703,489 |
42,740 |
65,827 |
109,677 |
1,320,578 |
1,273,234 |
27,391 |
41 |
131,654 |
1 |
configure.ocaml |
no-host |
3,834 |
1 |
2 |
2.6 |
20.6 |
150,095 |
10,988 |
5,158 |
7,533 |
71,605 |
70,957 |
1,448 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.3 |
30,580 |
30,580 |
0 |
1,522 |
14,775 |
14,283 |
226 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,810 |
1 |
2 |
2.6 |
24.4 |
139,748 |
7,957 |
6,616 |
6,338 |
70,280 |
63,130 |
1,803 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
21 |
1 |
2 |
2.8 |
8.7 |
116,322 |
64,467 |
42,677 |
4,572 |
54,520 |
57,230 |
270 |
3 |
85,354 |
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 |
14 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
6 |
4 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
443 |
405 |
42 |
22.2 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
20 |
2 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
14 |
8 |
8.7 |
osh-native-souffle |
1 |
no-host |
bin-true |
665 |
507 |
191 |
2.9 |
bash |
9 |
no-host |
bin-true |
539 |
424 |
123 |
1.6 |
dash |
17 |
no-host |
bin-true |
2,214 |
1,466 |
1,002 |
17.7 |
osh-cpython |
25 |
no-host |
bin-true |
812 |
577 |
248 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
805 |
567 |
251 |
7.9 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,907 |
8,948 |
6,353 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,071 |
9,116 |
6,367 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,338 |
17,089 |
13,054 |
27.3 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,160 |
9,005 |
6,415 |
27.5 |
osh-native |
34 |
no-host |
configure.cpython |
15,295 |
9,067 |
6,402 |
27.3 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,783 |
1,644 |
1,179 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,772 |
1,602 |
1,185 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,605 |
2,219 |
1,588 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,824 |
1,668 |
1,195 |
20.6 |
osh-native |
36 |
no-host |
configure.ocaml |
3,834 |
1,630 |
1,239 |
20.6 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
48 |
33 |
15 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
42 |
27 |
15 |
19.3 |
dash |
21 |
no-host |
configure.tcc |
193 |
154 |
42 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
32 |
18 |
19.1 |
osh-native |
37 |
no-host |
configure.tcc |
49 |
21 |
28 |
19.3 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,887 |
8,808 |
5,536 |
29.9 |
bash |
11 |
no-host |
configure.util-linux |
14,812 |
9,043 |
6,253 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,938 |
20,733 |
11,267 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,310 |
8,713 |
5,807 |
30.3 |
osh-native |
35 |
no-host |
configure.util-linux |
14,241 |
8,485 |
5,945 |
30.0 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,827 |
1,076 |
752 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,750 |
994 |
760 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,426 |
1,498 |
968 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,843 |
1,015 |
832 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,810 |
1,002 |
812 |
24.4 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.3 |
dash |
16 |
no-host |
hello-world |
49 |
29 |
20 |
17.7 |
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,534 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,091 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,145 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,162 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,123 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
106,302 |
0 |
0 |
0 |
8 |
0 |
1,991 |
38 |
bash |
9 |
no-host |
bin-true |
65,432 |
0 |
0 |
0 |
8 |
0 |
1,992 |
122 |
dash |
17 |
no-host |
bin-true |
751,433 |
0 |
0 |
0 |
8 |
0 |
1,997 |
98 |
osh-cpython |
25 |
no-host |
bin-true |
127,155 |
0 |
0 |
0 |
16 |
0 |
1,989 |
52 |
osh-native |
33 |
no-host |
bin-true |
127,880 |
0 |
0 |
0 |
16 |
0 |
1,993 |
163 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,223,556 |
0 |
0 |
0 |
32,928 |
0 |
14,533 |
1,384 |
bash |
10 |
no-host |
configure.cpython |
2,241,758 |
0 |
0 |
0 |
32,992 |
0 |
14,644 |
1,017 |
dash |
18 |
no-host |
configure.cpython |
6,200,266 |
1 |
0 |
0 |
27,512 |
0 |
13,212 |
1,123 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,224,862 |
0 |
0 |
0 |
27,520 |
0 |
13,236 |
1,189 |
osh-native |
34 |
no-host |
configure.cpython |
2,214,375 |
0 |
0 |
0 |
27,520 |
0 |
13,299 |
1,013 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,525 |
0 |
0 |
0 |
5,120 |
0 |
1,944 |
181 |
bash |
12 |
no-host |
configure.ocaml |
391,093 |
0 |
0 |
0 |
5,112 |
0 |
1,888 |
230 |
dash |
20 |
no-host |
configure.ocaml |
645,628 |
0 |
0 |
0 |
5,112 |
0 |
1,866 |
212 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,786 |
0 |
0 |
0 |
5,120 |
0 |
1,926 |
189 |
osh-native |
36 |
no-host |
configure.ocaml |
413,944 |
0 |
0 |
0 |
5,120 |
0 |
1,928 |
153 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,545 |
0 |
0 |
0 |
104 |
0 |
49 |
2 |
bash |
13 |
no-host |
configure.tcc |
5,489 |
0 |
0 |
0 |
96 |
0 |
47 |
5 |
dash |
21 |
no-host |
configure.tcc |
23,574 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,989 |
0 |
0 |
0 |
104 |
0 |
47 |
5 |
osh-native |
37 |
no-host |
configure.tcc |
6,904 |
0 |
0 |
0 |
104 |
0 |
47 |
1 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,108,242 |
0 |
0 |
0 |
42,400 |
0 |
18,595 |
1,047 |
bash |
11 |
no-host |
configure.util-linux |
2,263,647 |
0 |
0 |
0 |
42,592 |
0 |
17,502 |
1,150 |
dash |
19 |
no-host |
configure.util-linux |
5,317,764 |
6 |
0 |
0 |
39,112 |
0 |
16,967 |
1,204 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,007,327 |
1 |
0 |
0 |
39,120 |
0 |
16,988 |
972 |
osh-native |
35 |
no-host |
configure.util-linux |
1,998,919 |
0 |
0 |
0 |
39,128 |
0 |
16,991 |
1,109 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,201 |
0 |
0 |
0 |
4,120 |
0 |
872 |
71 |
bash |
14 |
no-host |
configure.yash |
244,710 |
0 |
0 |
0 |
3,720 |
0 |
867 |
77 |
dash |
22 |
no-host |
configure.yash |
386,230 |
0 |
0 |
0 |
3,728 |
0 |
853 |
86 |
osh-cpython |
30 |
no-host |
configure.yash |
258,442 |
0 |
0 |
0 |
3,736 |
0 |
850 |
103 |
osh-native |
38 |
no-host |
configure.yash |
257,097 |
0 |
0 |
0 |
3,736 |
0 |
848 |
75 |
osh-native-souffle |
0 |
no-host |
hello-world |
153 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
bash |
8 |
no-host |
hello-world |
80 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,743 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
352 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
32 |
no-host |
hello-world |
345 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host