TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is there a standard web framework performance benchmark test?

8 点作者 tcarnell超过 12 年前
I want to benchmark my web framework 'Contentigo.com', I want to see how it compares to CodeIgniter, Symfony etc.<p>Has somebody written a good, clear set of benchmark tests that I can also apply to Contentigo? EG:<p>- time to serve 100 'realistic' web pages (without any caching)<p>- time to serve 100 'realistic' web pages with 3 database queries per request (with some defined dataset to retrieve) (without any caching)<p>- time to serve 100 'realistic' web pages (with caching)<p>something like this?

2 条评论

rartichoke超过 12 年前
I don't think there's a standard list but make sure to not just run micro benchmarks.<p>I would probably do:<p>1. Return a few hundred bytes of json with no I/O.<p>2. Return tens of thousands of bytes of json with no I/O.<p>3. Do the same 2 tests as above but read the data from a DB.<p>4. Do the same 3 tests as above but render templates instead of sending json.<p>5. Do everything again with it cached.<p>6. Repeat all steps with 1, 2, 5, 10, 50, 100, 200, 500, and 1000 concurrent connections while paying close attention to the response times at the 99% level in addition to the reqs/second.<p>Also don't forget to look at the bytes transferred. There's going to be differences in the http headers between frameworks. If you're going to compare them directly to yours try to adjust the headers so it matches.
tcarnell超过 12 年前
Would also be handy to create a simple set of JMeter tests to ensure consistency across frameworks.<p>I would would be keen to run the test against Contentigo, but not very keen to do this for all the other frameworks! I would hope that if a good set of standard tests could be found, then the various vendors/project could run the tests themselves.