docs: 将仓库代码注释统一为中文
CI / docs-check (push) Canceled after 0s
CI / backend-test (push) Canceled after 0s
CI / service-test (push) Canceled after 0s
CI / frontend-test (push) Canceled after 0s
CI / rust-core (push) Canceled after 0s
CI / docs-check (pull_request) Canceled after 0s
CI / backend-test (pull_request) Canceled after 0s
CI / service-test (pull_request) Canceled after 0s
CI / frontend-test (pull_request) Canceled after 0s
CI / rust-core (pull_request) Canceled after 0s

This commit is contained in:
2026-09-10 00:40:56 +08:00
parent 51c592841d
commit d703ab64e3
249 changed files with 707 additions and 900 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
/** Deterministic CJK prose plus headings, tables, code and callouts; no user documents. */
/** 确定性 CJK 散文加上标题、表格、代码和标注;没有用户文档。 */
export function makeStressDocument(minHan = 25000) {
const prose = '本地知识库保存课程记录与项目思考,编辑时需要稳定响应。长篇文档包含章节结构和引用信息,阅读过程中可以随时折叠展开。这里使用生成的测试内容验证渲染性能,不读取真实笔记。'
let source = '# 长文渲染压力测试\n\n', han = 0, section = 0
+4 -2
View File
@@ -1,5 +1,7 @@
"""Real Chromium benchmark. Run with backend/.venv/Scripts/python.exe; requires websockets.
Vite must be serving the frontend. Uses an isolated disposable browser profile.
"""真实 Chromium 基准测试。
使用 backend/.venv/Scripts/python.exe 运行并开放网络套接字;前端必须由 Vite 提供服务。
测试使用独立的一次性浏览器配置文件。
"""
import argparse, asyncio, base64, json, pathlib, subprocess, tempfile, urllib.request
import websockets