[nodejs] Re: learning javascript or jumping straight to Node.js

2015-02-20 Thread zladuric
The most efficient way to learn Node.js is to do something with it. Nice of you to do the research first, very smart! There are two approaches to this: 1) Try to build something "real". If you have prior programming experience, you'll know that the language has it's quirks. Watch Douglas Crockf

[nodejs] Re: Why siege test showing PHP is performing better than Node

2015-02-20 Thread Anirban Bhattacharya
So, I made changes to code of node. 1. I removed that extra query for use data base and added in connect paarmeter. 2. I changed it to createPool. But still the siege output is awkward See in node (the upper one) 1. The number of hits and transactions is less than that of PHP+Apache in node i

[nodejs] Can't find getting started documentation

2015-02-20 Thread alota takada
At http://nodejs.org/documentation/ it says "Here on nodejs.org you will find three types of documentation, reference documentation, getting started documentation, and tutorials." I can find the reference documentation (http://nodejs.org/api/) and the tutorials (http://nodejs.org/documentation/

Re: [nodejs] Re: Why siege test showing PHP is performing better than Node

2015-02-20 Thread Daniel Rinehart
I've not looked at the code but the the two tests still don't look identical given that node transferred 402MB to PHP's 58MB which is reflected in node's almost 7x throughput, which I'd count as a resounding success :) Yet another reason I distrust microbenchmarks like this one. -- Daniel R. [htt

Re: [nodejs] Can't find getting started documentation

2015-02-20 Thread Matt
The best place to get started is Node School: http://nodeschool.io/ On Fri, Feb 20, 2015 at 2:30 AM, alota takada wrote: > At http://nodejs.org/documentation/ it says "Here on nodejs.org you will > find three types of documentation, reference documentation, getting started > documentation, and t

Re: [nodejs] Re: Why siege test showing PHP is performing better than Node

2015-02-20 Thread Matt
So Node transferred 400MB of data in the same time that PHP transferred 58MB of data? Sounds like a big win for Node. On Fri, Feb 20, 2015 at 2:29 PM, Anirban Bhattacharya < anirbanbhattacharya1...@gmail.com> wrote: > So, > > I made changes to code of node. > > 1. I removed that extra query for u

[nodejs] Re: Why siege test showing PHP is performing better than Node

2015-02-20 Thread Anirban Bhattacharya
Hi yes, As per throughput node is 6.7 times more than of php as of the above result. But i am still surely not sure why transfer rate so clow. Aslo if no failure then what does the meaning of less data transferred in PHP? I will double check my node output to make sure that its non repeating outpu

Re: [nodejs] Re: Why siege test showing PHP is performing better than Node

2015-02-20 Thread Anirban Bhattacharya
I am going to perform with 500 concurrent now with 1 sec delay for 10 mins and see if that makes difference. On Feb 20, 2015 4:29 PM, "Anirban Bhattacharya" < anirbanbhattacharya1...@gmail.com> wrote: > So, > > I made changes to code of node. > > 1. I removed that extra query for use data base and

[nodejs] Re: Can't find getting started documentation

2015-02-20 Thread julien . gilli
Hi! On Thursday, February 19, 2015 at 11:30:44 PM UTC-8, alota takada wrote: > > At http://nodejs.org/documentation/ it says "Here on nodejs.org you will > find three types of documentation, reference documentation, getting started > documentation, and tutorials." > > I can find the reference do

[nodejs] Re: Why siege test showing PHP is performing better than Node

2015-02-20 Thread Andrey
Are you sure you have 100 rows in your prod_master? try to replace query with "select * from prod_master limit 100" 200 rps seems to be too low for 100 rows of data On Saturday, 21 February 2015 06:29:16 UTC+11, Anirban Bhattacharya wrote: > > So, > > I made changes to code of node. > > 1. I remo

Re: [nodejs] Why siege test showing PHP is performing better than Node

2015-02-20 Thread Ryan Schmidt
Why did PHP transfer so much less data than Node in your tests? On Feb 20, 2015, at 1:29 PM, Anirban Bhattacharya wrote: > > So, > > I made changes to code of node. > > 1. I removed that extra query for use data base and added in connect > paarmeter. > 2. I changed it to createPool. But still