Skip to content

Commit

Permalink
more benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 27, 2012
1 parent de10194 commit b042339
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion support/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');
});
Expand Down
1 change: 1 addition & 0 deletions support/bench
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b042339

Please sign in to comment.