This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.databene.contiperf.time; | |
| import org.databene.contiperf.Time; | |
| import java.lang.management.ManagementFactory; | |
| /** | |
| * @author Uladzimir Mihura | |
| * Date: 5/16/12 | |
| * Time: 6:24 PM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.mongodb.*; | |
| import org.bson.BSON; | |
| import java.util.regex.Pattern; | |
| /** | |
| * @author trnl | |
| * Date: 12/27/11 | |
| * Time: 3:49 PM | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DBCollection c = mongo.getDB(Constants.DB_NAME).getCollection("B"); | |
| for (int i = 0; i < 100; i++) { | |
| cursors.add(c.find().limit(10).batchSize(1)); | |
| } | |
| for (int i = 0; i < 10; i++) { | |
| for (DBCursor cursor : cursors) { | |
| cursor.next(); | |
| } | |
| } |
NewerOlder