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 |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
19 |
10 |
451 |
22 |
23.56 |
1.17 |
bin-true |
no-host |
678 |
547 |
2,210 |
813 |
3.26 |
1.20 |
configure.cpython |
no-host |
15,138 |
15,102 |
28,385 |
15,105 |
1.88 |
1.00 |
configure.ocaml |
no-host |
3,779 |
3,730 |
4,886 |
3,812 |
1.29 |
1.01 |
configure.tcc |
no-host |
47 |
41 |
191 |
49 |
4.07 |
1.04 |
configure.util-linux |
no-host |
13,918 |
14,942 |
30,988 |
14,283 |
2.23 |
1.03 |
configure.yash |
no-host |
1,814 |
1,749 |
2,421 |
1,818 |
1.33 |
1.00 |
hello-world |
no-host |
2 |
1 |
48 |
3 |
27.05 |
1.58 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,514 |
1,138 |
23,285 |
3,213 |
9.26 |
1.28 |
bin-true |
no-host |
107,370 |
66,385 |
744,914 |
125,124 |
6.94 |
1.17 |
configure.cpython |
no-host |
2,230,341 |
2,238,161 |
6,126,036 |
2,223,850 |
2.75 |
1.00 |
configure.ocaml |
no-host |
410,299 |
391,182 |
638,398 |
413,628 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,571 |
5,491 |
23,203 |
7,012 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,095,706 |
2,256,842 |
5,319,707 |
1,996,363 |
2.54 |
0.95 |
configure.yash |
no-host |
256,158 |
245,225 |
384,162 |
258,134 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
81 |
3,683 |
346 |
24.39 |
2.29 |
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.3 |
6.0 |
3,727 |
3,727 |
0 |
681 |
1,877 |
1,169 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
813 |
1 |
2 |
2.6 |
8.0 |
154,692 |
12,992 |
2,799 |
9,731 |
78,346 |
66,615 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
15,105 |
1 |
58 |
15.0 |
27.3 |
1,772,668 |
49,197 |
28,508 |
86,378 |
908,098 |
778,192 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,283 |
2 |
59 |
21.3 |
30.1 |
2,703,404 |
44,766 |
65,812 |
109,640 |
1,320,596 |
1,273,168 |
49,081 |
41 |
131,624 |
1 |
configure.ocaml |
no-host |
3,812 |
1 |
2 |
2.6 |
20.6 |
150,038 |
11,045 |
5,138 |
7,510 |
71,634 |
70,894 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
49 |
0 |
0 |
1.3 |
19.4 |
30,527 |
30,527 |
0 |
1,501 |
14,801 |
14,225 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,818 |
1 |
2 |
2.6 |
24.2 |
139,695 |
7,964 |
6,600 |
6,317 |
70,306 |
63,072 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
9.0 |
116,270 |
64,455 |
42,663 |
4,552 |
54,546 |
57,172 |
478 |
3 |
85,326 |
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 |
2 |
4.3 |
bash |
15 |
no-host |
abuild-print-help |
10 |
6 |
4 |
3.5 |
dash |
23 |
no-host |
abuild-print-help |
451 |
403 |
51 |
21.8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
14 |
9 |
9.0 |
osh-native |
1 |
no-host |
bin-true |
678 |
501 |
209 |
2.9 |
bash |
9 |
no-host |
bin-true |
547 |
417 |
137 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,210 |
1,431 |
1,027 |
17.6 |
osh-cpython |
25 |
no-host |
bin-true |
813 |
570 |
259 |
8.0 |
osh-native |
2 |
no-host |
configure.cpython |
15,138 |
9,136 |
6,397 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
15,102 |
9,202 |
6,322 |
27.4 |
dash |
18 |
no-host |
configure.cpython |
28,385 |
17,463 |
12,735 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
15,105 |
8,891 |
6,486 |
27.3 |
osh-native |
4 |
no-host |
configure.ocaml |
3,779 |
1,603 |
1,217 |
20.4 |
bash |
12 |
no-host |
configure.ocaml |
3,730 |
1,605 |
1,145 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,886 |
2,178 |
1,609 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,812 |
1,563 |
1,288 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
28 |
19 |
19.1 |
bash |
13 |
no-host |
configure.tcc |
41 |
21 |
21 |
19.1 |
dash |
21 |
no-host |
configure.tcc |
191 |
144 |
50 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
49 |
24 |
25 |
19.4 |
osh-native |
3 |
no-host |
configure.util-linux |
13,918 |
8,779 |
5,621 |
30.3 |
bash |
11 |
no-host |
configure.util-linux |
14,942 |
9,116 |
6,318 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,988 |
20,894 |
11,024 |
30.1 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,283 |
8,606 |
5,860 |
30.1 |
osh-native |
6 |
no-host |
configure.yash |
1,814 |
1,048 |
773 |
24.2 |
bash |
14 |
no-host |
configure.yash |
1,749 |
1,018 |
735 |
24.2 |
dash |
22 |
no-host |
configure.yash |
2,421 |
1,513 |
949 |
24.5 |
osh-cpython |
30 |
no-host |
configure.yash |
1,818 |
991 |
830 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
2 |
0 |
2 |
2.8 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.4 |
dash |
16 |
no-host |
hello-world |
48 |
32 |
16 |
17.4 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.0 |
osh-native |
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,514 |
0 |
0 |
0 |
16 |
0 |
41 |
5 |
bash |
15 |
no-host |
abuild-print-help |
1,138 |
0 |
0 |
0 |
8 |
0 |
39 |
1 |
dash |
23 |
no-host |
abuild-print-help |
23,285 |
0 |
0 |
0 |
8 |
0 |
47 |
12 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,213 |
0 |
0 |
0 |
16 |
0 |
41 |
2 |
osh-native |
1 |
no-host |
bin-true |
107,370 |
0 |
0 |
0 |
8 |
0 |
1,997 |
57 |
bash |
9 |
no-host |
bin-true |
66,385 |
0 |
0 |
0 |
8 |
0 |
1,993 |
50 |
dash |
17 |
no-host |
bin-true |
744,914 |
0 |
0 |
0 |
8 |
0 |
2,000 |
250 |
osh-cpython |
25 |
no-host |
bin-true |
125,124 |
0 |
0 |
0 |
16 |
0 |
1,990 |
148 |
osh-native |
2 |
no-host |
configure.cpython |
2,230,341 |
0 |
0 |
0 |
32,928 |
0 |
14,504 |
1,211 |
bash |
10 |
no-host |
configure.cpython |
2,238,161 |
0 |
0 |
0 |
32,992 |
0 |
14,670 |
1,231 |
dash |
18 |
no-host |
configure.cpython |
6,126,036 |
0 |
0 |
0 |
27,512 |
0 |
13,263 |
1,129 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,223,850 |
0 |
0 |
0 |
27,520 |
0 |
13,344 |
1,052 |
osh-native |
4 |
no-host |
configure.ocaml |
410,299 |
0 |
0 |
0 |
5,120 |
0 |
1,946 |
169 |
bash |
12 |
no-host |
configure.ocaml |
391,182 |
0 |
0 |
0 |
5,112 |
0 |
1,940 |
163 |
dash |
20 |
no-host |
configure.ocaml |
638,398 |
0 |
0 |
0 |
5,112 |
0 |
1,866 |
153 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,628 |
0 |
0 |
0 |
5,120 |
0 |
1,936 |
160 |
osh-native |
5 |
no-host |
configure.tcc |
6,571 |
0 |
0 |
0 |
104 |
0 |
49 |
1 |
bash |
13 |
no-host |
configure.tcc |
5,491 |
0 |
0 |
0 |
96 |
0 |
46 |
5 |
dash |
21 |
no-host |
configure.tcc |
23,203 |
0 |
0 |
0 |
96 |
0 |
53 |
9 |
osh-cpython |
29 |
no-host |
configure.tcc |
7,012 |
0 |
0 |
0 |
104 |
0 |
47 |
3 |
osh-native |
3 |
no-host |
configure.util-linux |
2,095,706 |
1 |
0 |
0 |
42,400 |
0 |
18,629 |
1,092 |
bash |
11 |
no-host |
configure.util-linux |
2,256,842 |
0 |
0 |
0 |
42,592 |
0 |
17,487 |
1,115 |
dash |
19 |
no-host |
configure.util-linux |
5,319,707 |
12 |
0 |
0 |
39,112 |
0 |
17,078 |
1,272 |
osh-cpython |
27 |
no-host |
configure.util-linux |
1,996,363 |
0 |
0 |
0 |
39,120 |
0 |
17,087 |
1,036 |
osh-native |
6 |
no-host |
configure.yash |
256,158 |
0 |
0 |
0 |
4,120 |
0 |
876 |
90 |
bash |
14 |
no-host |
configure.yash |
245,225 |
0 |
0 |
0 |
3,720 |
0 |
868 |
74 |
dash |
22 |
no-host |
configure.yash |
384,162 |
0 |
0 |
0 |
3,728 |
0 |
856 |
91 |
osh-cpython |
30 |
no-host |
configure.yash |
258,134 |
0 |
0 |
0 |
3,736 |
0 |
850 |
161 |
osh-native |
0 |
no-host |
hello-world |
151 |
0 |
0 |
0 |
8 |
0 |
1 |
1 |
bash |
8 |
no-host |
hello-world |
81 |
0 |
0 |
0 |
8 |
0 |
1 |
0 |
dash |
16 |
no-host |
hello-world |
3,683 |
0 |
0 |
0 |
8 |
0 |
7 |
4 |
osh-cpython |
24 |
no-host |
hello-world |
346 |
0 |
0 |
0 |
16 |
0 |
1 |
0 |
osh-native |
Shell and Host