Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Benchmarks: Table-fy #160

Merged
merged 1 commit into from

3 participants

@jbergstroem

Had to un-indent text for the GFM markdown to accept the table. Not sure what to do with rest of the file, so I'll leave it open.

benchmark/ probably needs some love if we expect it to generate
similar output. Even without it, I still think the most readable for end-users.
is the best possible result.

@jbergstroem jbergstroem Benchmarks: Table-fy
Had to un-indent text for the GFM markdown to accept the table. Not sure what to do with rest of the file, so I'll leave it open.

`benchmark/` probably needs some love if we expect it to generate
similar output. Even without it, I still think the most readable for end-users.
is the best possible result.
c6c375c
@jonathanong
Owner

nice! i think the real way to go is to do comprehensive benchmarks in a separate repo. then we can add other frameworks like hapi instead of just koa vs. express. it's also pretty annoying to keep koa and express' benchmarks in sync.

(feel free to copy and paste the benchmarks and create your own repo =))

@jonathanong jonathanong merged commit c86fc2c into koajs:master
@tj
Owner
tj commented

I think just a little demonstration like this is fine, it's largely irrelevant, even if hapi or something was twice as slow it doesn't really matter or mean anything in reality but people are weird, just wanted some numbers to show people that generators don't make an impact

@jbergstroem jbergstroem deleted the jbergstroem:patch-1 branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 28, 2013
  1. @jbergstroem

    Benchmarks: Table-fy

    jbergstroem authored
    Had to un-indent text for the GFM markdown to accept the table. Not sure what to do with rest of the file, so I'll leave it open.
    
    `benchmark/` probably needs some love if we expect it to generate
    similar output. Even without it, I still think the most readable for end-users.
    is the best possible result.
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 56 deletions.
  1. +12 −56 docs/koa-vs-express.md
View
68 docs/koa-vs-express.md
@@ -1,4 +1,3 @@
-
THIS DOCUMENT IS IN PROGRESS. THIS PARAGRAPH SHALL BE REMOVED WHEN THIS DOCUMENT IS DONE.
TO DO:
@@ -37,63 +36,20 @@ TO DO:
## Is Koa faster than Express?
- Koa and Express have very similar benchmark results, both of which are more than enough for most applications. This is especially true for applications with high traffic running multiple instances, because you are scaling horizontally right?
-
- The following results were produced on a Retina Macbook Pro, showing only the cost of running noop middleware.
-
-```
- 1 middleware
- 8849.36
-
- 5 middleware
- 8685.74
-
- 10 middleware
- 8511.08
-
- 15 middleware
- 8456.86
-
- 20 middleware
- 8211.93
-
- 30 middleware
- 8102.98
-
- 50 middleware
- 7617.67
-
- 100 middleware
- 6899.45
-```
-
- Here are the benchmarks for Express:
-
-```
- 1 middleware
- 7805.19
-
- 5 middleware
- 7707.15
-
- 10 middleware
- 7475.08
-
- 15 middleware
- 7261.73
-
- 20 middleware
- 7012.07
-
- 30 middleware
- 6672.76
+Koa and Express have very similar benchmark results, both of which are more than enough for most applications. This is especially true for applications with high traffic running multiple instances, because you are scaling horizontally right?
- 50 middleware
- 6255.92
+The following results were produced on a Retina Macbook Pro, showing only the cost of running noop middleware.
- 100 middleware
- 5000.98
-```
+| no. middleware | Koa | Express |
+| --------------:| ------- | ------- |
+| 1 | 8849.36 | 7805.19 |
+| 5 | 8685.74 | 7707.15 |
+| 10 | 8511.08 | 7475.08 |
+| 15 | 8456.86 | 7261.73 |
+| 20 | 8211.93 | 7012.07 |
+| 30 | 8102.98 | 6672.76 |
+| 50 | 7617.67 | 6255.92 |
+| 100 | 6899.45 | 5000.98 |
## How is Koa different than Connect/Express?
Something went wrong with that request. Please try again.