Home | History | Annotate | Download | only in testing

Lines Matching full:nbytes

137 void MakeText(string* text, int nbytes) {
138 text->resize(nbytes);
140 for (int i = 0; i < nbytes; i++) {
148 // Makes text of size nbytes, then calls run to search
150 void Search(int iters, int nbytes, const char* regexp, SearchImpl* search) {
153 MakeText(&s, nbytes);
157 SetBenchmarkBytesProcessed(static_cast<int64>(iters)*nbytes);
239 void SearchBigFixed(int iters, int nbytes, SearchImpl* search) {
242 s.append(nbytes/2, 'x');
245 MakeText(&t, nbytes/2);
250 SetBenchmarkBytesProcessed(static_cast<int64>(iters)*nbytes);
266 void FindAndConsume(int iters, int nbytes) {
269 MakeText(&s, nbytes);
279 SetBenchmarkBytesProcessed(static_cast<int64>(iters)*nbytes);
286 void SearchSuccess(int iters, int nbytes, const char* regexp, SearchImpl* search) {
288 MakeText(&s, nbytes);
291 SetBenchmarkBytesProcessed(static_cast<int64>(iters)*nbytes);
690 // Makes text of size nbytes, then calls run to search
692 void SearchPhone(int iters, int nbytes, ParseImpl* search) {
695 MakeText(&s, nbytes);
700 SetBenchmarkBytesProcessed(static_cast<int64>(iters)*nbytes);