diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-05-08 11:57:18 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-05-09 10:16:55 -0400 |
commit | 6472047433c187351ab83ca98586ecd0fb6cb480 (patch) | |
tree | 19e86eea52d850a6695c29716d953bae44cd2597 /src/mongo/dbtests/matchertests.cpp | |
parent | 5638031288f5dc8069dee5bebb02a7698d39ee75 (diff) | |
download | mongo-6472047433c187351ab83ca98586ecd0fb6cb480.tar.gz |
SERVER-6400: make Matcher micro benchmark at all useful by removing ASSERT
Diffstat (limited to 'src/mongo/dbtests/matchertests.cpp')
-rw-r--r-- | src/mongo/dbtests/matchertests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/matchertests.cpp b/src/mongo/dbtests/matchertests.cpp index f83aa8a7fbe..f645d682c88 100644 --- a/src/mongo/dbtests/matchertests.cpp +++ b/src/mongo/dbtests/matchertests.cpp @@ -299,8 +299,10 @@ namespace MatcherTests { long dotime( const BSONObj& patt , const BSONObj& obj ) { M m( patt ); Timer t; - for ( int i=0; i<10000; i++ ) { - ASSERT( m.matches( obj ) ); + for ( int i=0; i<900000; i++ ) { + if ( !m.matches( obj ) ) { + ASSERT( 0 ); + } } return t.millis(); } |