Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adjusted benchmark scripts

  • Loading branch information...
commit f68e966703209e3b7fb4d92834526860f4a19ed9 1 parent 08d7dcb
@nrstott authored
Showing with 6 additions and 7 deletions.
  1. +5 −6 benchmarks/hello-world/hello-world.js
  2. +1 −1  benchmarks/run
View
11 benchmarks/hello-world/hello-world.js
@@ -1,9 +1,8 @@
var bogart = require('../../lib/bogart');
-var config = function(show, create, update, destroy) {
- show('/hello/:name', function(req, name) {
- return bogart.html('Hello '+name);
- });
-};
+var router = bogart.router();
+router.get('/', function(req) {
+ return bogart.html('Hello World');
+});
-bogart.start(bogart.router(config));
+bogart.start(router);
View
2  benchmarks/run
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-ABFLAGS=${ABFLAGS-"-n 500 -c 50 -k"}
+ABFLAGS=${ABFLAGS-"-n 5000 -c 500 -k"}
ADDR=${ADDR-http://0.0.0.0:8080/}
AB=${AB-ab}
Please sign in to comment.
Something went wrong with that request. Please try again.