craftvm/craftvm — pull request #7 by arthur7368 (2012-09-17 13:59:20+00:00)
Title: Mongo Dump, Restore and insertion performace test case

Hi Sir,

I created a test case for MongoDB Performace when at the time of insertion. I created an Interface (MongoPerformance).

1. One is, records inserted in database one by one.
2. Second one is batch insertion.

I was unable to find batch processing in Async Java driver. I posted in a forum like is there any batch processing in Async Java Driver.

Also Implemented Mongo Dump and as well as Mongo Restore. I did a pull request to you.

Two days back I said like batch processing is slower than insertion of single document. But I am thinking I am wrong. Can you also verify the two more classes (AsyncPerformaceTest, PerformaceTest). I got these two classes from the forums. They told me instead of batch do single insertion every time.

Is there any latency if we use Math.random function...??? I don't think so. is it right Sir..???
why I am asking I am using Math.random method while inserting the data but in these two classes (AsyncPerformaceTest, PerformaceTest) I just hard coded the values and I called insert method.

When I hard coded that values the time for one million records is 127-130 Sec (One by One). But when I use Math.random method it took 353 Sec for one million records.
Configuration:
8GB Ram, 1.60 GHz Processor, i7.

Can you please verify that and give me your feed back Sir.

Thanks & Regards,

Arthur