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 |
9 |
449 |
22 |
24.02 |
1.19 |
bin-true |
no-host |
670 |
542 |
2,222 |
815 |
3.32 |
1.22 |
configure.cpython |
no-host |
14,767 |
14,817 |
28,053 |
14,996 |
1.90 |
1.02 |
configure.ocaml |
no-host |
3,756 |
3,694 |
4,558 |
3,769 |
1.21 |
1.00 |
configure.tcc |
no-host |
47 |
41 |
191 |
48 |
4.05 |
1.03 |
configure.util-linux |
no-host |
13,758 |
14,723 |
30,760 |
14,187 |
2.24 |
1.03 |
configure.yash |
no-host |
1,783 |
1,741 |
2,397 |
1,798 |
1.34 |
1.01 |
hello-world |
no-host |
1 |
1 |
48 |
3 |
33.70 |
2.08 |
Minor Page Faults
workload |
host name |
bash |
dash |
osh-cpython |
osh-native |
py bash ratio |
native bash ratio |
abuild-print-help |
no-host |
2,525 |
1,109 |
23,345 |
3,199 |
9.25 |
1.27 |
bin-true |
no-host |
106,369 |
66,459 |
744,393 |
126,145 |
7.00 |
1.19 |
configure.cpython |
no-host |
2,226,266 |
2,243,146 |
6,135,444 |
2,234,930 |
2.76 |
1.00 |
configure.ocaml |
no-host |
410,280 |
391,654 |
639,002 |
413,676 |
1.56 |
1.01 |
configure.tcc |
no-host |
6,561 |
5,496 |
23,169 |
6,994 |
3.53 |
1.07 |
configure.util-linux |
no-host |
2,094,643 |
2,260,492 |
5,300,908 |
2,012,033 |
2.53 |
0.96 |
configure.yash |
no-host |
256,195 |
243,487 |
383,619 |
258,343 |
1.50 |
1.01 |
hello-world |
no-host |
151 |
85 |
3,662 |
349 |
24.25 |
2.31 |
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.2 |
3,729 |
3,729 |
0 |
684 |
1,881 |
1,164 |
2 |
0 |
50,000 |
0 |
bin-true |
no-host |
815 |
1 |
2 |
2.7 |
7.9 |
154,694 |
12,996 |
2,803 |
11,737 |
78,350 |
64,607 |
5,012 |
3 |
50,000 |
0 |
configure.cpython |
no-host |
14,996 |
2 |
57 |
15.8 |
27.4 |
1,772,610 |
49,201 |
28,512 |
101,770 |
908,057 |
762,783 |
42,399 |
60 |
50,000 |
0 |
configure.util-linux |
no-host |
14,187 |
3 |
57 |
22.2 |
30.0 |
2,703,274 |
42,775 |
65,816 |
126,121 |
1,320,501 |
1,256,652 |
49,081 |
41 |
131,632 |
1 |
configure.ocaml |
no-host |
3,769 |
0 |
2 |
2.7 |
20.6 |
150,036 |
11,049 |
5,142 |
8,602 |
71,635 |
69,799 |
2,680 |
3 |
50,000 |
0 |
configure.tcc |
no-host |
48 |
0 |
0 |
1.3 |
19.3 |
30,529 |
30,529 |
0 |
1,599 |
14,805 |
14,125 |
350 |
0 |
50,000 |
0 |
configure.yash |
no-host |
1,798 |
1 |
2 |
2.6 |
24.2 |
139,693 |
7,968 |
6,604 |
7,554 |
70,307 |
61,832 |
2,990 |
3 |
50,000 |
0 |
abuild-print-help |
no-host |
22 |
1 |
2 |
2.8 |
8.8 |
116,272 |
64,459 |
42,667 |
4,610 |
54,550 |
57,112 |
478 |
3 |
85,334 |
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 |
13 |
6 |
4.5 |
bash |
15 |
no-host |
abuild-print-help |
9 |
5 |
5 |
3.4 |
dash |
23 |
no-host |
abuild-print-help |
449 |
403 |
51 |
21.6 |
osh-cpython |
31 |
no-host |
abuild-print-help |
22 |
17 |
5 |
8.8 |
osh-native |
1 |
no-host |
bin-true |
670 |
490 |
212 |
3.0 |
bash |
9 |
no-host |
bin-true |
542 |
405 |
144 |
1.4 |
dash |
17 |
no-host |
bin-true |
2,222 |
1,422 |
1,047 |
17.3 |
osh-cpython |
25 |
no-host |
bin-true |
815 |
584 |
245 |
7.9 |
osh-native |
2 |
no-host |
configure.cpython |
14,767 |
9,052 |
6,108 |
27.4 |
bash |
10 |
no-host |
configure.cpython |
14,817 |
9,155 |
6,086 |
27.3 |
dash |
18 |
no-host |
configure.cpython |
28,053 |
17,085 |
12,759 |
27.5 |
osh-cpython |
26 |
no-host |
configure.cpython |
14,996 |
8,954 |
6,308 |
27.4 |
osh-native |
4 |
no-host |
configure.ocaml |
3,756 |
1,654 |
1,138 |
20.6 |
bash |
12 |
no-host |
configure.ocaml |
3,694 |
1,586 |
1,129 |
20.6 |
dash |
20 |
no-host |
configure.ocaml |
4,558 |
2,234 |
1,525 |
20.6 |
osh-cpython |
28 |
no-host |
configure.ocaml |
3,769 |
1,581 |
1,227 |
20.6 |
osh-native |
5 |
no-host |
configure.tcc |
47 |
28 |
20 |
19.3 |
bash |
13 |
no-host |
configure.tcc |
41 |
33 |
9 |
19.4 |
dash |
21 |
no-host |
configure.tcc |
191 |
147 |
47 |
19.4 |
osh-cpython |
29 |
no-host |
configure.tcc |
48 |
34 |
14 |
19.3 |
osh-native |
3 |
no-host |
configure.util-linux |
13,758 |
8,737 |
5,496 |
30.1 |
bash |
11 |
no-host |
configure.util-linux |
14,723 |
9,086 |
6,129 |
30.3 |
dash |
19 |
no-host |
configure.util-linux |
30,760 |
20,410 |
11,402 |
30.0 |
osh-cpython |
27 |
no-host |
configure.util-linux |
14,187 |
8,526 |
5,859 |
30.0 |
osh-native |
6 |
no-host |
configure.yash |
1,783 |
1,030 |
761 |
24.5 |
bash |
14 |
no-host |
configure.yash |
1,741 |
1,042 |
703 |
24.4 |
dash |
22 |
no-host |
configure.yash |
2,397 |
1,531 |
907 |
24.2 |
osh-cpython |
30 |
no-host |
configure.yash |
1,798 |
1,068 |
734 |
24.2 |
osh-native |
0 |
no-host |
hello-world |
1 |
1 |
0 |
2.6 |
bash |
8 |
no-host |
hello-world |
1 |
1 |
0 |
1.6 |
dash |
16 |
no-host |
hello-world |
48 |
40 |
8 |
17.3 |
osh-cpython |
24 |
no-host |
hello-world |
3 |
3 |
0 |
6.2 |
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,525 |
0 |
0 |
0 |
16 |
0 |
41 |
0 |
bash |
15 |
no-host |
abuild-print-help |
1,109 |
0 |
0 |
0 |
8 |
0 |
39 |
0 |
dash |
23 |
no-host |
abuild-print-help |
23,345 |
0 |
0 |
0 |
8 |
0 |
47 |
8 |
osh-cpython |
31 |
no-host |
abuild-print-help |
3,199 |
0 |
0 |
0 |
16 |
0 |
41 |
1 |
osh-native |
1 |
no-host |
bin-true |
106,369 |
0 |
0 |
0 |
8 |
0 |
1,990 |
74 |
bash |
9 |
no-host |
bin-true |
66,459 |
0 |
0 |
0 |
8 |
0 |
1,990 |
43 |
dash |
17 |
no-host |
bin-true |
744,393 |
0 |
0 |
0 |
8 |
0 |
1,995 |
182 |
osh-cpython |
25 |
no-host |
bin-true |
126,145 |
0 |
0 |
0 |
16 |
0 |
1,988 |
154 |
osh-native |
2 |
no-host |
configure.cpython |
2,226,266 |
0 |
0 |
0 |
32,928 |
0 |
14,511 |
1,137 |
bash |
10 |
no-host |
configure.cpython |
2,243,146 |
0 |
0 |
0 |
32,992 |
0 |
14,611 |
1,041 |
dash |
18 |
no-host |
configure.cpython |
6,135,444 |
0 |
0 |
0 |
27,512 |
0 |
13,259 |
1,075 |
osh-cpython |
26 |
no-host |
configure.cpython |
2,234,930 |
0 |
0 |
0 |
27,520 |
0 |
13,316 |
1,056 |
osh-native |
4 |
no-host |
configure.ocaml |
410,280 |
0 |
0 |
0 |
5,120 |
0 |
1,953 |
174 |
bash |
12 |
no-host |
configure.ocaml |
391,654 |
0 |
0 |
0 |
5,112 |
0 |
1,939 |
152 |
dash |
20 |
no-host |
configure.ocaml |
639,002 |
1 |
0 |
0 |
5,112 |
0 |
1,864 |
201 |
osh-cpython |
28 |
no-host |
configure.ocaml |
413,676 |
0 |
0 |
0 |
5,120 |
0 |
1,919 |
145 |
osh-native |
5 |
no-host |
configure.tcc |
6,561 |
0 |
0 |
0 |
104 |
0 |
49 |
3 |
bash |
13 |
no-host |
configure.tcc |
5,496 |
0 |
0 |
0 |
96 |
0 |
47 |
1 |
dash |
21 |
no-host |
configure.tcc |
23,169 |
0 |
0 |
0 |
96 |
0 |
53 |
10 |
osh-cpython |
29 |
no-host |
configure.tcc |
6,994 |
0 |
0 |
0 |
104 |
0 |
47 |
9 |
osh-native |
3 |
no-host |
configure.util-linux |
2,094,643 |
0 |
0 |
0 |
42,400 |
0 |
18,607 |
1,017 |
bash |
11 |
no-host |
configure.util-linux |
2,260,492 |
0 |
0 |
0 |
42,584 |
0 |
17,399 |
1,253 |
dash |
19 |
no-host |
configure.util-linux |
5,300,908 |
10 |
0 |
0 |
39,120 |
0 |
17,063 |
1,379 |
osh-cpython |
27 |
no-host |
configure.util-linux |
2,012,033 |
3 |
0 |
0 |
39,120 |
0 |
17,065 |
1,010 |
osh-native |
6 |
no-host |
configure.yash |
256,195 |
0 |
0 |
0 |
4,120 |
0 |
868 |
98 |
bash |
14 |
no-host |
configure.yash |
243,487 |
0 |
0 |
0 |
3,720 |
0 |
868 |
68 |
dash |
22 |
no-host |
configure.yash |
383,619 |
0 |
0 |
0 |
3,728 |
0 |
856 |
83 |
osh-cpython |
30 |
no-host |
configure.yash |
258,343 |
0 |
0 |
0 |
3,736 |
0 |
851 |
69 |
osh-native |
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,662 |
0 |
0 |
0 |
8 |
0 |
7 |
2 |
osh-cpython |
24 |
no-host |
hello-world |
349 |
0 |
0 |
0 |
16 |
0 |
0 |
1 |
osh-native |
Shell and Host