Skip to content

Commit

Permalink
Use prefix with uppercase letter in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
micbou committed Jun 3, 2017
1 parent d266694 commit 562fca3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/ycm/benchmarks/IdentifierCompleter_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ static void IdentifierCompleter_CandidatesWithCommonPrefix_bench(

CandidateRepository::Instance().ClearCandidates();

// Generate a list of candidates of the form a_a_a_[a-z]{5}.
// Generate a list of candidates of the form a_A_a_[a-z]{5}.
std::vector< std::string > candidates;
for ( int i = 0; i < state.range( 0 ); i++ ) {
std::string candidate = "a_a_a_";
std::string candidate = "a_A_a_";
std::ostringstream number;
number << std::setfill( '0' ) << std::setw( 5 ) << i;
for ( auto character : number.str() ) {
Expand All @@ -43,7 +43,7 @@ static void IdentifierCompleter_CandidatesWithCommonPrefix_bench(
IdentifierCompleter completer( candidates );

while ( state.KeepRunning() )
completer.CandidatesForQuery( "aa" );
completer.CandidatesForQuery( "aA" );

state.SetComplexityN( state.range( 0 ) );
}
Expand Down

0 comments on commit 562fca3

Please sign in to comment.