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 |
452 |
22 |
21 |
23.56 |
1.15 |
bin-true |
no-host |
686 |
540 |
2,233 |
805 |
807 |
3.26 |
1.17 |
configure.cpython |
no-host |
14,941 |
15,021 |
28,484 |
15,326 |
15,157 |
1.91 |
1.03 |
configure.ocaml |
no-host |
3,766 |
3,741 |
4,637 |
3,814 |
3,794 |
1.23 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
194 |
48 |
48 |
4.09 |
1.02 |
configure.util-linux |
no-host |
13,901 |
14,882 |
31,042 |
14,467 |
14,228 |
2.23 |
1.04 |
configure.yash |
no-host |
1,804 |
1,765 |
2,457 |
1,819 |
1,808 |
1.36 |
1.01 |
hello-world |
no-host |
1 |
1 |
49 |
3 |
3 |
32.76 |
1.96 |
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,567 |
1,106 |
23,246 |
3,189 |
3,119 |
9.06 |
1.24 |
bin-true |
no-host |
105,399 |
66,468 |
760,222 |
124,136 |
125,874 |
7.21 |
1.18 |
configure.cpython |
no-host |
2,225,769 |
2,243,395 |
6,209,489 |
2,233,709 |
2,207,755 |
2.79 |
1.00 |
configure.ocaml |
no-host |
410,507 |
391,265 |
645,337 |
414,040 |
413,403 |
1.57 |
1.01 |
configure.tcc |
no-host |
6,573 |
5,468 |
23,486 |
6,990 |
6,898 |
3.57 |
1.06 |
configure.util-linux |
no-host |
2,104,136 |
2,262,402 |
5,336,988 |
2,003,704 |
1,992,543 |
2.54 |
0.95 |
configure.yash |
no-host |
256,577 |
244,908 |
387,241 |
258,092 |
256,746 |
1.51 |
1.01 |
hello-world |
no-host |
152 |
83 |
3,736 |
349 |
342 |
24.58 |
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,775 |
3,775 |
0 |
694 |
1,852 |
1,229 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
805 |
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,326 |
1 |
63 |
15.0 |
27.4 |
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,467 |
3 |
61 |
21.3 |
30.0 |
2,703,490 |
29,146 |
65,890 |
109,675 |
1,320,579 |
1,273,236 |
27,391 |
41 |
131,780 |
1 |
configure.ocaml |
no-host |
3,814 |
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 |
48 |
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,819 |
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.6 |
3,774 |
3,774 |
0 |
695 |
1,852 |
1,227 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
807 |
1 |
2 |
2.6 |
7.7 |
154,739 |
13,063 |
2,815 |
9,745 |
78,321 |
66,673 |
3,008 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,157 |
1 |
59 |
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,228 |
3 |
59 |
21.3 |
30.1 |
2,703,490 |
42,741 |
65,828 |
109,677 |
1,320,579 |
1,273,234 |
27,391 |
41 |
131,656 |
1 |
configure.ocaml |
no-host |
3,794 |
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,808 |
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 |
21 |
1 |
2 |
2.8 |
8.8 |
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 |
7 |
13 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
10 |
4 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
452 |
393 |
62 |
21.9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
11 |
12 |
9.0 |
osh-native |
39 |
no-host |
abuild-print-help |
21 |
19 |
2 |
8.8 |
osh-native-souffle |
1 |
no-host |
bin-true |
686 |
501 |
217 |
3.0 |
bash |
9 |
no-host |
bin-true |
540 |
411 |
138 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,233 |
1,462 |
1,026 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
805 |
555 |
263 |
8.0 |
osh-native |
33 |
no-host |
bin-true |
807 |
595 |
226 |
7.7 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
14,941 |
8,937 |
6,402 |
27.5 |
bash |
10 |
no-host |
configure.cpython |
15,021 |
9,262 |
6,172 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,484 |
17,116 |
13,213 |
27.4 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,326 |
8,969 |
6,627 |
27.4 |
osh-native |
34 |
no-host |
configure.cpython |
15,157 |
8,955 |
6,383 |
27.4 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
3,766 |
1,584 |
1,221 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,741 |
1,603 |
1,157 |
20.4 |
dash |
20 |
no-host |
configure.ocaml |
4,637 |
2,250 |
1,591 |
20.4 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,814 |
1,593 |
1,260 |
20.4 |
osh-native |
36 |
no-host |
configure.ocaml |
3,794 |
1,552 |
1,281 |
20.4 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
47 |
32 |
16 |
19.4 |
bash |
13 |
no-host |
configure.tcc |
41 |
25 |
17 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
194 |
160 |
36 |
19.3 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
29 |
20 |
19.4 |
osh-native |
37 |
no-host |
configure.tcc |
48 |
34 |
14 |
19.4 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
13,901 |
8,782 |
5,587 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,882 |
9,170 |
6,221 |
30.1 |
dash |
19 |
no-host |
configure.util-linux |
31,042 |
20,573 |
11,541 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,467 |
8,756 |
5,906 |
30.0 |
osh-native |
35 |
no-host |
configure.util-linux |
14,228 |
8,654 |
5,754 |
30.1 |
osh-native-souffle |
6 |
no-host |
configure.yash |
1,804 |
1,079 |
732 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,765 |
988 |
779 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,457 |
1,495 |
1,005 |
24.4 |
osh-cpython |
30 |
no-host |
configure.yash |
1,819 |
1,080 |
744 |
24.4 |
osh-native |
38 |
no-host |
configure.yash |
1,808 |
1,013 |
798 |
24.2 |
osh-native-souffle |
0 |
no-host |
hello-world |
1 |
0 |
2 |
2.9 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
49 |
35 |
14 |
17.7 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
0 |
3 |
6.3 |
osh-native |
32 |
no-host |
hello-world |
3 |
3 |
0 |
5.6 |
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,567 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
bash |
15 |
no-host |
abuild-print-help |
1,106 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,246 |
0 |
0 |
0 |
8 |
0 |
45 |
9 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,189 |
0 |
0 |
0 |
16 |
0 |
39 |
1 |
osh-native |
39 |
no-host |
abuild-print-help |
3,119 |
0 |
0 |
0 |
16 |
0 |
38 |
1 |
osh-native-souffle |
1 |
no-host |
bin-true |
105,399 |
0 |
0 |
0 |
8 |
0 |
1,993 |
72 |
bash |
9 |
no-host |
bin-true |
66,468 |
0 |
0 |
0 |
8 |
0 |
1,993 |
66 |
dash |
17 |
no-host |
bin-true |
760,222 |
0 |
0 |
0 |
8 |
0 |
1,992 |
117 |
osh-cpython |
25 |
no-host |
bin-true |
124,136 |
0 |
0 |
0 |
16 |
0 |
1,995 |
68 |
osh-native |
33 |
no-host |
bin-true |
125,874 |
0 |
0 |
0 |
16 |
0 |
1,991 |
70 |
osh-native-souffle |
2 |
no-host |
configure.cpython |
2,225,769 |
0 |
0 |
0 |
32,928 |
0 |
14,410 |
1,147 |
bash |
10 |
no-host |
configure.cpython |
2,243,395 |
0 |
0 |
0 |
32,992 |
0 |
14,607 |
1,052 |
dash |
18 |
no-host |
configure.cpython |
6,209,489 |
1 |
0 |
0 |
27,512 |
0 |
13,242 |
1,442 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,233,709 |
0 |
0 |
0 |
27,520 |
0 |
13,285 |
1,137 |
osh-native |
34 |
no-host |
configure.cpython |
2,207,755 |
0 |
0 |
0 |
27,520 |
0 |
13,222 |
1,099 |
osh-native-souffle |
4 |
no-host |
configure.ocaml |
410,507 |
0 |
0 |
0 |
5,120 |
0 |
1,945 |
185 |
bash |
12 |
no-host |
configure.ocaml |
391,265 |
0 |
0 |
0 |
5,112 |
0 |
1,887 |
164 |
dash |
20 |
no-host |
configure.ocaml |
645,337 |
0 |
0 |
0 |
5,112 |
0 |
1,861 |
234 |
osh-cpython |
28 |
no-host |
configure.ocaml |
414,040 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
157 |
osh-native |
36 |
no-host |
configure.ocaml |
413,403 |
0 |
0 |
0 |
5,120 |
0 |
1,930 |
147 |
osh-native-souffle |
5 |
no-host |
configure.tcc |
6,573 |
0 |
0 |
0 |
104 |
0 |
49 |
15 |
bash |
13 |
no-host |
configure.tcc |
5,468 |
0 |
0 |
0 |
96 |
0 |
47 |
0 |
dash |
21 |
no-host |
configure.tcc |
23,486 |
0 |
0 |
0 |
96 |
0 |
53 |
11 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,990 |
0 |
0 |
0 |
104 |
0 |
47 |
12 |
osh-native |
37 |
no-host |
configure.tcc |
6,898 |
0 |
0 |
0 |
104 |
0 |
47 |
2 |
osh-native-souffle |
3 |
no-host |
configure.util-linux |
2,104,136 |
0 |
0 |
0 |
42,400 |
0 |
18,598 |
1,027 |
bash |
11 |
no-host |
configure.util-linux |
2,262,402 |
0 |
0 |
0 |
42,584 |
0 |
17,501 |
1,096 |
dash |
19 |
no-host |
configure.util-linux |
5,336,988 |
6 |
0 |
0 |
39,128 |
0 |
16,954 |
1,203 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,003,704 |
0 |
0 |
0 |
39,120 |
0 |
16,950 |
1,000 |
osh-native |
35 |
no-host |
configure.util-linux |
1,992,543 |
0 |
0 |
0 |
39,128 |
0 |
16,988 |
1,065 |
osh-native-souffle |
6 |
no-host |
configure.yash |
256,577 |
0 |
0 |
0 |
4,120 |
0 |
869 |
75 |
bash |
14 |
no-host |
configure.yash |
244,908 |
0 |
0 |
0 |
3,720 |
0 |
869 |
79 |
dash |
22 |
no-host |
configure.yash |
387,241 |
0 |
0 |
0 |
3,728 |
0 |
853 |
103 |
osh-cpython |
30 |
no-host |
configure.yash |
258,092 |
0 |
0 |
0 |
3,736 |
0 |
848 |
84 |
osh-native |
38 |
no-host |
configure.yash |
256,746 |
0 |
0 |
0 |
3,736 |
0 |
843 |
91 |
osh-native-souffle |
0 |
no-host |
hello-world |
152 |
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 |
5 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
32 |
no-host |
hello-world |
342 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native-souffle |
Shell and Host