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 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 it is 119171 and for php+apache it is 119429
> 2. Longest transaction is more in node than PHP
> 
> 
> Why is so? What will be a good basic scenario which can show me NODe has 
> better values for these
> 
> ====================================================After Doing 
> pool==============================================
> anirbanb2004@Anisoft-Corporation:~/nodecode/express/siegeLog$ siege -c100 -d1 
> -t10M -lnode.log http://localhost:9615/
> ** SIEGE 3.0.5
> ** Preparing 100 concurrent users for battle.
> The server is now under siege...
> Lifting the server siege...      done.
> 
> Transactions:              119171 hits
> Availability:              100.00 %
> Elapsed time:              599.32 secs
> Data transferred:          402.78 MB
> Response time:                0.00 secs
> Transaction rate:          198.84 trans/sec
> Throughput:                0.67 MB/sec
> Concurrency:                0.67
> Successful transactions:      119171
> Failed transactions:               0
> Longest transaction:            0.10
> Shortest transaction:            0.00
>  
> FILE: node.log
> 
> anirbanb2004@Anisoft-Corporation:~/nodecode/express/siegeLog$ siege -c100 -d1 
> -t10M -lphp.log http://localhost/loadTest/
> ** SIEGE 3.0.5
> ** Preparing 100 concurrent users for battle.
> The server is now under siege...
> Lifting the server siege...      done.
> 
> Transactions:              119429 hits
> Availability:              100.00 %
> Elapsed time:              599.04 secs
> Data transferred:           58.77 MB
> Response time:                0.00 secs
> Transaction rate:          199.37 trans/sec
> Throughput:                0.10 MB/sec
> Concurrency:                0.36
> Successful transactions:      119429
> Failed transactions:               0
> Longest transaction:            0.04
> Shortest transaction:            0.00
>  
> FILE: php.log


-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/AAFEDB80-4DEC-4780-9CFE-1766E278CF5D%40ryandesign.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to