nodejs sdk performance issue
I was also evaluating the SDK's and found the nodejs sdk seems to be far less performant at this moment. Maybe it is because of the asynch nature of the sdk?
I tried to run a code that uses a simple for loop to set x numbers of objects in a bucket.
1. With Java Synchronous set call, I could get over 8k sets per second
2. With Java Asynchronous set call, I could get about 4k sets per second
3. With PHP Synchronous set call, I could get about 4k sets per second
4. However, with nodejs set call, I could get the set to work with the iteration number of the loop set to about 50. Any number behind that just spikes the CPU usage and hangs
I am on Mac OS X Mt Lion. Also, this is just the set operation along without mixing in with any other operations. The couchbase client is only created once as well outside the for loop. I am using the latest sdk's and libcouchbase as of 1/27/2013. In reality we will probably never need to 'loop' set operations like this. However, I just wanted to do a comparison by languages especially asynch Java vs nodejs. The result is just way too different than I would expect and I feel shocked. That being said, we might scratch the original idea to use nodejs and use Java or Php instead.
Just wondering if anyone else is experiencing this issue?