Benchmark CI builds Symfony Demo without ext-intl, so 18% of the request is a polyfill
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 73/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- github-actions, php
- 领域
- ci-cd, performance
调研方向
从 test-suite.yml 开始,将 BENCHMARKING 作业的 configure 选项和 apt 软件包与测试作业进行比较。建议的更改是添加 libicu-dev 并启用 intl;验证基准测试作业是否能使用此扩展构建。完成标准是 Symfony Demo 基准测试使用 ext-intl,并按描述注明历史记录的更改。
由索引模型根据 Issue 内容生成。
描述
Description
The BENCHMARKING job in test-suite.yml configures without --enable-intl (no libicu-dev in its apt list either), unlike the test jobs. Symfony Demo then runs symfony/polyfill-intl-* for date formatting, ICU messages and symfony/string; the grapheme polyfill does preg_match_all('/\X/u', …) once per grapheme, 17.8K matches per request.
Callgrind on the job's exact extension set (reproduces the CI counts within 0.5%) vs the same build with ext-intl:
| Symfony Demo | instructions per request | PCRE share |
|---|---|---|
| as in CI | 39,427,533 | 19.5% |
| with ext-intl | 31,533,221 (−20%) | 1.6% |
preg_match_all() alone is 18% of the official number. A Symfony deployment doesn't run that path — the polyfill is the fallback — so a fifth of the benchmark moves with PCRE's global-match loop and \X and says nothing about the engine. bench.php and WordPress are unaffected.
I'd add libicu-dev and --enable-intl to the job. The cost is a −20% step in the Symfony history at the switch, worth a note in the results. I can send the workflow change if that's acceptable.
- 主要语言
- C
- 星标
- 40.4k
- 派生
- 8.2k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 150
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
php/php-src 的其他 Issue
-
Sockets from synchronous stream_socket_client() are left in non-blocking mode on Windows可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
Variant analysis: 1 unfixed sibling safety gap in php-src可能已有人在做 @kamil-tekiela 于 9 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
sapi_lsapi_ub_write does not return bytes written in lsapi mode可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭Bug Status: Needs Triage
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
Bug Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Use of PIDFile= in php-fpm.service可能已有人在做 @CodedByManish 于 26 天前认领。 未关闭Bug SAPI: fpm Status: Needs Triage
难度 2/5 1-3 小时 新手友好度 65/100
php/php-src#21740 · 1 个 reaction ·
维护者通常 1 天内回复
相似的 Issue
-
rc_runtime_activate_richpresence leaves a half-initialised entry when the buffer allocation fails未关闭
难度 1/5 1 小时以内 新手友好度 88/100
RetroAchievements/rcheevos#558 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
libsdl-org/SDL#16464 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
chore(gateway): emit INFO budget reserved/settled logs for proactivity v2 (chip task_2855f4ec)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭backend
难度 2/5 1-3 小时 新手友好度 68/100
BasedHardware/omi#20940 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复