Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
From: [@http://www.boost.org/development/requirements.html]
"Aim first for clarity and correctness; optimization should be only a secondary concern in most Boost libraries."
As the library matures it will undergo optimization passes; benchmarks will logically accompany this process. There is a small benchmarking program included in the tests which compares the performance of Beast's parser to the NodeJS reference parser, as well as some benchmarks which compare the performance of various Beast dynamic buffer implementations against Asio's.
The energy invested in Beast went into the design of the interfaces, not performance. That said, the most sensitive parts of Beast have been optimized or designed with optimization in mind. The slow parts of WebSocket processing have been optimized, and the HTTP parser design is lifted from another extremely popular project which has performance as a design goal (see投入在 Beast 上的精力主要集中在接口设计上,而非性能。话虽如此,Beast 中最敏感的部分已经过优化或设计时已考虑到优化。WebSocket 处理的缓慢部分已得到优化,而 HTTP 解析器的设计借鉴自另一个以性能为设计目标的极受欢迎的项目(参见 [@https://github.com/h2o/picohttpparser]).
)。From:
引自:[@http://www.boost.org/development/requirements.html]
"Aim first for clarity and correctness; optimization should be only a secondary concern in most Boost libraries."
“在大多数 Boost 库中,首先应追求清晰和正确;优化应仅是次要关注点。”As the library matures it will undergo optimization passes; benchmarks will logically accompany this process. There is a small benchmarking program included in the tests which compares the performance of Beast's parser to the NodeJS reference parser, as well as some benchmarks which compare the performance of various Beast dynamic buffer implementations against Asio's.
随着库的成熟,它将经历优化阶段;基准测试自然会伴随这一过程。测试中包含一个小型基准测试程序,用于比较 Beast 解析器与 NodeJS 参考解析器的性能,以及一些比较各种 Beast 动态缓冲区实现与 Asio 性能的基准测试。