-
Notifications
You must be signed in to change notification settings - Fork 0
fix: preserve qdocco block comments as code #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tiye
merged 5 commits into
feat/qbench-schema-version
from
fix/qdocco-block-comment-code
Aug 23, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7ccd8c7
fix: preserve qdocco block comments as code
tiye 93cf8e8
docs: regenerate manuals for qdocco block comments
tiye 0963a07
feat: add qbench repeat median sampling (#47)
tiye 5696a20
fix: preserve multiline qdocco block comments
tiye d3b5f72
fix: satisfy clippy in qdocco block parsing
tiye File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # RFC 0104:qdocco 保留块注释代码 | ||
|
|
||
| - 状态:已采纳 | ||
| - 依赖:RFC 0032、RFC 0083 | ||
|
|
||
| qdocco 文学 prose 行必须以恰好两个 `#` 开始(可有前导空格);以三个或更多 `#` 开始的行属于 QuickCoffee 块注释或其内容,必须保留在生成文档的代码区。这样 `### ... ###` 不会被误渲染成说明文字,也不会从可复制代码中消失。 | ||
|
|
||
| HTML 与 Markdown 输出采用同一分类规则。块注释仍由 QuickCoffee 编译器执行并从运行语义中移除,RFC 0104 只规定文学文档的代码/prose 分区。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # RFC 0105:qbench 重复采样与中位数 | ||
|
|
||
| - 状态:已采纳 | ||
| - 依赖:RFC 0081、RFC 0096、RFC 0103 | ||
|
|
||
| `qbench` 增加 `--repeat N`(默认 `1`),对每个内建负载完整执行 N 次编译、验证和执行计时。每一轮都运行语义护栏;输出的 `compile_ns`、`verify_ns`、`execute_ns` 是各阶段样本的中位数,仍表示单轮内 `--iterations` 次迭代的纳秒总耗时。偶数样本取排序后的上侧中位数(索引 `N / 2`)。 | ||
|
|
||
| JSON 与文本输出新增 `repeat` 字段/键;`--repeat 0` 或非整数返回退出码 2。默认 `--repeat 1` 保持既有单次采样行为,schema 仍为 `quickcoffee.qbench.v1`。 | ||
|
|
||
| ## 验收 | ||
|
|
||
| 集成测试必须验证默认和显式 repeat 值、JSON 的中位数记录字段、非法 repeat 参数及每轮语义护栏;性能报告可直接使用 `--repeat 3` 取得三次中位数。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.