forked from Impetus/kundera
-
Notifications
You must be signed in to change notification settings - Fork 0
MongoDB Write Performance (2.0.7)
xamry edited this page Mar 8, 2013
·
1 revision
Recently we did performance test(over mongoDB) over current kundera release. So here are details (given below) :
- Enviornment: centOs 4.2.
Number Of Records(Single Thread) | Native API Time (in ms) | SpringData Time (in ms) | Morphia (in ms) | Kundera (in ms) |
1 | 1 | 5 | 119 | 37 |
1000 | 54 | 143 | 645 | 244 |
4000 | 97 | 300 | 1693 | 534 |
40000 | 485 | 1254 | 12464 | 1664 |
100000 | 1476 | 2125 | 30880 | 2179 |
1000000 | 13561 | 18642 | 311743 | 24020 |
Number Of Threads (1 record) | Native API Time (in ms) | SpringData Time (in ms) | Morphia (in ms) | Kundera (in ms) |
10 | 7 | 11 | 122 | 12 |
100 | 23 | 46 | 130 | 72 |
1000 | 178 | 364 | 560 | 500 |
10000 | 1442 | 2282 | 3271 | 2814 |
40000 | 5734 | 7443 | 10314 | 7053 |
50000 | 7055 | 8470 | 12667 | 8673 |
100000 | 14167 | 16917 | 24668 | 17414 |
Number Of Threads (1000 rec/ thread) | Native API Time (in ms) | SpringData Time (in ms) | Morphia (in ms) | Kundera (in ms) |
10 | 223 | 740 | 2886 | 1272 |
100 | 1448 | 1961 | 14542 | 2874 |
1000 | 12627 | 23617 | 308164 | 27199 |
Source Code: Source code for producing these results is available here.
Steps to run:
- Download jar.
- java -jar {Number of records} {client type} {process mode} { number of threads} -Xmx1024m -XX:MaxPermSize=128m (e.g. java -jar /home/impadmin/workspace/kundera-2.0.7-perf.jar 1 kundera b -Xmx1024m -XX:MaxPermSize=128m
{client type} => 1) kundera 2) springData 3) native 4) morphia {process mode} => 1)c(Cnoncurrent) 2) b(Bulk) 3)cb(Concurrent+Bulk)
Above mentioned results are on the specified environment and use case and might have different outcome in other cases