question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

anyone benchmark this?

See original GitHub issue

so slow…

express-static qps = 6199.4
express qps = 7566
koa2-router-static qps = 2800.6
koa2-router qps = 7073.2
koa2-static qps = 2600.6
koa2 qps = 9603.6

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
brooksleecommented, May 3, 2017

app.use(serve('.'))

IMO, this is a bad practice, as every request will hit koa-static and will be checked does request.url exists (a file or a directory).

var stats = yield fs.stat(path);

The better way used is combine with a router, eg:

router.get(‘/public/*’, async function(ctx, next) { ctx.url = path.basename(ctx.url) await next() }, staticServer(resolve(‘./public’), {gzip: true}))

0reactions
jonathanongcommented, Sep 30, 2017

yes, filtering your routes and using defer: true will help increase performance

Read more comments on GitHub >

github_iconTop Results From Across the Web

Benchmarks & Demo's - Guru3D.com
Want to benchmark, test or simple blow your frieds away with cool demo's ? ... fryrender is an excellent benchmarking framework for anyone, ......
Read more >
User Benchmark The Biggest Joke On The Internet!! - YouTube
User Benchmark The Biggest Joke On The Internet!!****GOT THAT MERCH?!?****Store: http://bit.ly/NaafMerchTwitter: ...
Read more >
Anyone benchmark and test the legion 7 gen 7 yet? - Reddit
If anyone has experience with either laptop specifically I'd love to hear what ... Lenovo Legion 7i Gen 7 impressions and quick benchmarks....
Read more >
MP 7,1 Has anyone seen a benchmark? - MacRumors Forums
Comparing benchmarks with threadripper is so useless here. The only interesting benchmarks are the ones from Macs.
Read more >
PGA Operations Benchmark: Benchmarking Reveals True ...
The PGA of America & Sagacity Golf · A free industry benchmarking report empowering facilities to make data-driven business decisions. · November 2022...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found