tree-sitter/test/helpers/random_helpers.h
Max Brunsfeld 17bc3dfaf7 Add a benchmark command
This command measures the speed of parsing each grammar's examples.
It also uses each grammar to parse all of the *other* grammars' examples
in order to measure error recovery performance with fairly large files.
2017-07-05 14:14:38 -07:00

10 lines
245 B
C++

#ifndef HELPERS_RANDOM_HELPERS_H_
#define HELPERS_RANDOM_HELPERS_H_
#include <string>
#include <vector>
std::string random_words(size_t count);
std::string select_random(const std::vector<std::string> &);
#endif // HELPERS_RANDOM_HELPERS_H_