66 #ifndef OPENSSL_NO_BIO
75 fprintf(out,
"num_items = %lu\n",lh->num_items);
76 fprintf(out,
"num_nodes = %u\n",lh->num_nodes);
77 fprintf(out,
"num_alloc_nodes = %u\n",lh->num_alloc_nodes);
78 fprintf(out,
"num_expands = %lu\n",lh->num_expands);
79 fprintf(out,
"num_expand_reallocs = %lu\n",lh->num_expand_reallocs);
80 fprintf(out,
"num_contracts = %lu\n",lh->num_contracts);
81 fprintf(out,
"num_contract_reallocs = %lu\n",lh->num_contract_reallocs);
82 fprintf(out,
"num_hash_calls = %lu\n",lh->num_hash_calls);
83 fprintf(out,
"num_comp_calls = %lu\n",lh->num_comp_calls);
84 fprintf(out,
"num_insert = %lu\n",lh->num_insert);
85 fprintf(out,
"num_replace = %lu\n",lh->num_replace);
86 fprintf(out,
"num_delete = %lu\n",lh->num_delete);
87 fprintf(out,
"num_no_delete = %lu\n",lh->num_no_delete);
88 fprintf(out,
"num_retrieve = %lu\n",lh->num_retrieve);
89 fprintf(out,
"num_retrieve_miss = %lu\n",lh->num_retrieve_miss);
90 fprintf(out,
"num_hash_comps = %lu\n",lh->num_hash_comps);
92 fprintf(out,
"p = %u\n",lh->p);
93 fprintf(out,
"pmax = %u\n",lh->pmax);
94 fprintf(out,
"up_load = %lu\n",lh->up_load);
95 fprintf(out,
"down_load = %lu\n",lh->down_load);
104 for (i=0; i<lh->num_nodes; i++)
106 for (n=lh->b[i],num=0; n != NULL; n=n->
next)
108 fprintf(out,
"node %6u -> %3u\n",i,num);
117 unsigned long total=0,n_used=0;
119 for (i=0; i<lh->num_nodes; i++)
121 for (n=lh->b[i],num=0; n != NULL; n=n->
next)
129 fprintf(out,
"%lu nodes used out of %u\n",n_used,lh->num_nodes);
130 fprintf(out,
"%lu items\n",total);
131 if (n_used == 0)
return;
132 fprintf(out,
"load %d.%02d actual load %d.%02d\n",
133 (
int)(total/lh->num_nodes),
134 (
int)((total%lh->num_nodes)*100/lh->num_nodes),
136 (
int)((total%n_used)*100/n_used));
141 #ifndef OPENSSL_NO_FP_API
147 if (bp == NULL)
goto end;
159 if (bp == NULL)
goto end;
171 if (bp == NULL)
goto end;
189 BIO_printf(out,
"num_contract_reallocs = %lu\n",
215 for (n=lh->
b[i],num=0; n != NULL; n=n->
next)
226 unsigned long total=0,n_used=0;
230 for (n=lh->
b[i],num=0; n != NULL; n=n->
next)
240 if (n_used == 0)
return;
241 BIO_printf(out,
"load %d.%02d actual load %d.%02d\n",
245 (
int)((total%n_used)*100/n_used));