Permalink
Browse files

more benchmarks

  • Loading branch information...
1 parent de10194 commit b04233981f348cb618258967740bcdc79b22cab2 @tj tj committed Apr 27, 2012
Showing with 8 additions and 1 deletion.
  1. +7 −1 support/app.js
  2. +1 −0 support/bench
View
@@ -6,8 +6,10 @@
var express = require('../');
var app = express()
- , blog = express();
+ , blog = express()
+ , admin = express();
+blog.use('/admin', admin);
app.use('/blog', blog);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
@@ -17,6 +19,10 @@ app.get('/render', function(req, res){
res.render('hello');
});
+admin.get('/', function(req, res){
+ res.send('Hello World\n');
+});
+
blog.get('/', function(req, res){
res.send('Hello World\n');
});
View
@@ -13,6 +13,7 @@ bench() {
sleep .5
bench / "Hello World"
bench /blog "Mounted Hello World"
+bench /blog/admin "Mounted 2 Hello World"
bench /json "JSON"
bench /middleware "Middleware"
bench /match "Router"

0 comments on commit b042339

Please sign in to comment.