What I said previously maybe wrong, kick.js can use connect middleware, just test logger, static, cookieParser, session, bodyParser
2012/4/29 jason.桂林 <[email protected]> > @ Susiripala I am afraid I can't. Why kick.js is faster because it is very > simple with limited feature, it can NOT compatible with all connect > middleware. > > connect use EventEmitter to communicate between middlewares. > > Routing could be improved in express, but how it chain the middlewares is > different with kick.js I guess. > > How kick.js handling the middlewares chain is show in the link > > https://github.com/guileen/kick.js/blob/master/kick.js#L260-283 > > If you have any suggestion let me know, or send a pull request > > > 2012/4/29 Arunoda Susiripala <[email protected]> > >> I think jason have a some point here. >> What I feel is like this. >> >> Express is not bad & it can be improved. >> @TJ >> Why are you so against on this discussion. >> >> If I'm the author of express. >> I'll ask jason to patch express and try to make his improvements into >> express core :P >> >> >> On Sun, Apr 29, 2012 at 11:36 AM, jason.桂林 <[email protected]> wrote: >> >>> @TJ you are right, I am using something like helloworld, but it is >>> real-world application. >>> >>> Why hello world is real-world application, because I use cache layer, >>> even more, I can use a In-Process-Cache layer. So, the IO layer could be >>> very fast. >>> >>> I have done a very first version routing, here is my benchmark result. >>> >>> express constant path routing >>> >>> app.get('/', function(req, res) { res.send(); }) >>> >>> >>> rps: 5943 >>> >>> express param path routing >>> >>> app.get('/user/:userid', function(req, res) { res.send() }); >>> >>> >>> rps: 5740 >>> >>> >>> My small routing module, named kick.js, choose the same syntax with >>> express >>> >>> app.get('/', funtion(req, res) { res.end( 'hello world' ) }) >>> >>> >>> rps: 7451 >>> >>> app.get('/user/:userid', function(req, res) { res.end( req.params.userid >>>> ) }) >>> >>> >>> rps: 7180 >>> >>> on MacBook Air, benchmark with siege.js >>> >>> https://github.com/guileen/kick.js >>> >>> https://github.com/guileen/siege.js >>> >>> 2012/4/29 C. Mundi <[email protected]> >>> >>> Where *did* you get that graphic? LOL. >>>> On Apr 27, 2012 11:46 AM, "Marak Squires" <[email protected]> >>>> wrote: >>>> >>>> -- >>>> Job Board: http://jobs.nodejs.org/ >>>> Posting guidelines: >>>> 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 post to this group, send email to [email protected] >>>> To unsubscribe from this group, send email to >>>> [email protected] >>>> For more options, visit this group at >>>> http://groups.google.com/group/nodejs?hl=en?hl=en >>>> >>> >>> >>> >>> -- >>> Best regards, >>> >>> Jason Green >>> 桂林 >>> >>> >>> -- >>> Job Board: http://jobs.nodejs.org/ >>> Posting guidelines: >>> 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 post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected] >>> For more options, visit this group at >>> http://groups.google.com/group/nodejs?hl=en?hl=en >>> >> >> >> >> -- >> Arunoda Susiripala >> >> @arunoda <http://twitter.com/arunoda> >> <http://gplus.to/arunoda>https://github.com/arunoda >> http://www.linkedin.com/in/arunoda >> >> -- >> Job Board: http://jobs.nodejs.org/ >> Posting guidelines: >> 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 post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/nodejs?hl=en?hl=en >> > > > > -- > Best regards, > > Jason Green > 桂林 > > > -- Best regards, Jason Green 桂林 -- Job Board: http://jobs.nodejs.org/ Posting guidelines: 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 post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
