Permalink
Browse files

Added benchmarks for middleware call types.

  • Loading branch information...
1 parent f01307e commit 5a5fa7df8d8bce22a372aa56a4289ea5d2a3c099 @shimaore shimaore committed Jan 12, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 benchmarks/zappa.coffee
View
@@ -11,3 +11,11 @@ require('../src/zappa') ->
@get '/coffee': ->
@render 'index.coffee': {foo: 'Zappa + CoffeeKup, no layout',layout:no}
+
+ m = ->
+ @next()
+ @get '/middleware', m, -> 'hello'
+
+ n = (req,res,next) ->
+ next()
+ @get '/middleware-native', n, -> 'hello'

0 comments on commit 5a5fa7d

Please sign in to comment.