- 创建完整的多线程性能测试套件,用于对比单线程、GIL多线程和NoGIL多线程的性能差异 - 实现三种测试模式:单线程测试、传统GIL多线程测试、无GIL多线程测试 - 添加质数查找算法作为CPU密集型测试用例,支持可配置的质数数量和线程数 - 提供详细的性能对比报告,包括执行时间、相对速度倍数和找到的质数数量 - 支持详细日志输出模式,可实时查看各线程的执行状态 - 包含项目配置文件:pyproject.toml、.gitignore、.python-version和MIT许可证 - 采用模块化设计,将不同测试策略分离到独立模块中便于维护
21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
MIT License
|
|
|
|
Copyright (c) 2025 Runda Dong
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
SOFTWARE. |