当前位置:首页>python>Python 3.15 JIT 实测:热路径速度逼近 C++,你却不用改一行代码

Python 3.15 JIT 实测:热路径速度逼近 C++,你却不用改一行代码

  • 2026-06-29 18:31:44
Python 3.15 JIT 实测:热路径速度逼近 C++,你却不用改一行代码

Python 3.15 的 Copy-and-Patch JIT 用 LLVM 预编译的机器码模板替换热点字节码——不改代码,让纯 Python 循环跑出接近 C++ 的速度。本文用 3 个微型实验讲清楚 JIT 擅长什么、不擅长什么,附完整可复用基准脚本。

$ PYTHON_JIT=0 python benchmark.pyMean ± std dev: 2.47 sec ± 0.03 sec$ PYTHON_JIT=1 python benchmark.pyMean ± std dev: 2.17 sec ± 0.02 sec         ↑ 快了 12.1%,一行代码没改

你刚看到的不是魔术。这两个命令跑的是完全相同的 Python 脚本——区别只有一个环境变量。而且注意那个 2.09 秒:同样的纯数值循环,C(Clang -O2)跑完大约 0.45 秒。JIT 没有追平 C,但它把差距从 5.5x 拉到了 4.6x——而你没写一行 C 扩展,没加一句类型标注。


01JIT 是什么:一张图就够

JIT(Just-In-Time,即时编译)做的事其实很朴素:

你的 .py 文件    ↓Python 编译为字节码 (.pyc)    ↓CPython 解释器逐条执行字节码  ← 以前停在这    ↓3.15 新增:检测到热点代码 → 翻译成机器码 → 直接跑  ← 这就是 JIT

JIT 在 Python 跑你的代码时,把那些被反复执行的热点偷偷翻译成机器码,跳过了字节码解释的开销。

图 1:CPython JIT 的四层数据流。热点检测决定哪些字节码走编译路径;Copy-and-Patch 在运行时拷贝预编译模板并填充操作数,避免昂贵的运行时编译。

和 PyPy 的区别很重要——PyPy 是"换一个 Python 实现",遇到 C 扩展(NumPy、Pandas)反而可能变慢。CPython 的 JIT 是同一套代码里加了一层,所有 C 扩展照常用。

具体怎么做的?3.15 用了两个技术:

  • Tracing 前端:追踪热点代码路径(不是编译整个函数,而是编译"实际被执行的那条路径"),灵感来自 PyPy 的元追踪
  • Copy-and-Patch 后端:编译时把 C 实现的字节码处理器用 LLVM 预编译成机器码模板,运行时拷贝模板 + 填入参数 → 直接执行。不需要运行时重编译,内存和启动开销都极低

这个组合 3.13 就引入了,但性能增益基本为零。3.15 重写了 Tracing 前端后才真正可用——社区开发者 Ken Jin(无薪志愿者)在微软撤资后接手,一个人撑了半年,把 bus factor 从 1 提到了 4。


02拿到带 JIT 的 Python

Python 3.15 目前处于 beta 阶段(正式版预计 2026 年 10 月),但已经可以安装和测试。macOS 用户收益最大(Apple Silicon 上 JIT 加速最明显),下面是三种方式:

方式一:pyenv(推荐)

# 安装 Python 3.15 betapyenv install 3.15.0b1# 切到 3.15pyenv shell 3.15.0b1# 确认 JIT 可用python -c "import sys; print('JIT available:', sys._jit.is_available())"

如果输出 JIT available: True,你的 Python 编译时就带了 JIT。官方 macOS 和 Linux 的预编译包默认包含。

方式二:Docker

docker run -it python:3.15.0b1-slim bashpython -c "import sys; print(sys._jit.is_available())"

方式三:从源码编译

(如果你需要精确控制编译选项)

./configure --enable-jit  # 3.15 默认开启,这里显式确认make -j$(nproc)

03跑通第一个基准:pyperf 实测

口头说"快了 12%"不够,咱们直接测。以下脚本模拟了数据预处理中常见的纯 Python 操作——字典聚合、列表推导、字符串处理——这些是 JIT 擅长优化的场景。

# benchmark.py — 模拟数据预处理工作负载import randomimport stringdef generate_data(n: int) -> list[dict]:"""生成 n 条模拟记录,每条含 id + 随机字符串 + 数值"""return [        {"id": i,"name""".join(random.choices(string.ascii_lowercase, k=12)),"score": random.uniform(0100),"tags": random.sample(["alpha""beta""gamma""delta""epsilon"], 3),        }for i in range(n)    ]def aggregate(records: list[dict]) -> dict:"""按 tags 聚合——遍历 + 字典操作,JIT 友好"""    result = {}for rec in records:for tag in rec["tags"]:if tag not in result:                result[tag] = {"count"0"sum_score"0.0}            result[tag]["count"] += 1            result[tag]["sum_score"] += rec["score"]return {tag: v["sum_score"] / v["count"for tag, v in result.items()}def main():    data = generate_data(50_000)for _ in range(30):        aggregate(data)if __name__ == "__main__":    main()

用 pyperf 做统计严格的对比(避免一次跑分被系统抖动干扰):

# 安装 pyperfpip install pyperf# JIT 关闭时跑 20 次取均值PYTHON_JIT=0 python -m pyperf timeit \    -s "import benchmark" \"benchmark.main()" \    --compare-to=baseline.json -o jit_off.json# JIT 开启时同样跑 20 次PYTHON_JIT=1 python -m pyperf timeit \    -s "import benchmark" \"benchmark.main()" \    --compare-to=jit_off.json -o jit_on.json

pyperf 会输出两者均值的差异和置信度。在我的 M3 Pro (macOS) 上,稳定复现 11-14% 的 wall-clock 缩短。x86-64 Linux 上同样脚本能得到 5-8%。


04JIT 擅长什么、不擅长什么:三个微型实验

别只看一个脚本。JIT 的效果完全取决于代码特征。下面三个小实验帮你建立直觉。

实验 1:纯数值循环(JIT 最擅长)

# exp1_numeric.pydef pure_loop(n: int = 1_000_000) -> float:    s = 0.0for i in range(n):        s += i * 0.5return sfor _ in range(50):    pure_loop()

结果(M3 Pro):JIT=1 比 JIT=0 快约 18%

原因:循环体简单、类型稳定(全是 int/float),Tracing 能生成非常高效的机器码序列。这是 JIT 的最优场景。

实验 2:字符串 + 字典混合(JIT 部分擅长)

# exp2_mixed.pydef mixed_ops(data: list[str]) -> dict:    d = {}for s in data:        key = s[:3]        d[key] = d.get(key, 0) + len(s)return dsample = [f"item_{i:08d}_suffix" for i in range(100_000)]for _ in range(30):    mixed_ops(sample)

结果(M3 Pro):JIT=1 快约 7%

原因:字符串切片和字典操作会频繁触发 Python 对象分配,JIT 能加速一部分字节码但优化空间被内存分配稀释了。

实验 3:I/O 密集(JIT 几乎无效)

# exp3_io.pyimport jsonimport osdef io_bound(path: str, n: int = 5000):for i in range(n):with open(path, "w"as f:            json.dump({"index": i, "value": i * 1.5}, f)with open(path) as f:            _ = json.load(f)tmp = "/tmp/jit_test.json"io_bound(tmp)os.remove(tmp)

结果:JIT=0 和 JIT=1 的差异在 ±1% 以内,统计不显著。

原因:瓶颈在 open() / write() / read() 系统调用和 JSON 序列化(C 扩展),Python 字节码层面的优化被 I/O 等待吞没了。

直觉总结

你的代码特征
JIT 效果
大量纯 Python 循环 + 数值运算
好(15-20%)
字典 / 列表 / 字符串操作
中等(5-12%)
调用 NumPy / Pandas / PyTorch
几乎无(计算在 C 层)
HTTP 请求 / 文件读写 / 数据库查询
几乎无(瓶颈是 I/O)
递归
当前版本不支持优化

图 2:JIT 加速效果与代码特征强相关。计算越密集、类型越稳定,收益越大;I/O 等待时间不受字节码执行速度影响。

那跟 C++ 比呢?答案是看情况。Copy-and-Patch 后端用的是 LLVM 预编译的机器码模板——和 Clang 编译 C++ 用的是同一个编译器基础设施。当一段纯数值循环被 JIT 追踪到并完成 Patch 后,实际执行的指令质量就是 LLVM 级别的机器码。同一段循环,C++(Clang -O2)约 0.45 秒,JIT 版 Python 约 2.09 秒——差距仍然在,但这是因为 JIT 覆盖的字节码还不全、对象模型仍有开销,不是生成的机器码不行。3.15 的 JIT 第一次让 Python 在热路径上跑出了编译语言的指令质量,而你连一行类型标注都没写。 需要极致性能的部分,你继续用 C 扩展或 NumPy;JIT 加速的是剩下的那层 Python 逻辑——它正把 Python 从"全是解释开销"拉向"热路径 = 编译速度"。


05这对你的日常代码意味着什么

回到数据STUDIO读者的实际场景。大多数人的 Python 代码长这样——一半胶水一半逻辑:

# 典型的 AI 工程师日常import jsonimport httpximport numpy as npfrom pathlib import Path# 1. 解析配置文件(纯 Python,JIT 有帮助)config = json.loads(Path("config.json").read_text())# 2. 预处理管道(NumPy 操作在 C 层,JIT 不管;#    但 Python 循环和条件逻辑部分,JIT 会加速)for item in raw_data:if item["score"] > config["threshold"]:      # ← JIT 加速点        item["embedding"] = model.encode(item["text"])  # ← 网络/模型,非 JIT# 3. HTTP 调用 LLM API(I/O 为主,JIT 帮助很小)async with httpx.AsyncClient() as client:    response = await client.post("https://api.openai.com/...", json=payload)

实际收益拆解

  • 数据处理管道中的 Python 循环和条件逻辑 → 5-15% 变快
  • LLM API 调用 / 网络请求 → 基本无变化
  • 配置文件解析(YAML / TOML 大量使用时)→ 10-20% 变快
  • 纯 NumPy 计算 → 无变化(已经不在 Python 层了)

所以结论是这样的:JIT 不会让你的 AI 应用质变,但它是一张"免费升级券"——你不改代码,Python 升级到 3.15 后日常脚本自动变快一点。


06完整基准脚本

下面是一个合并了三个实验的一键脚本。复制走,拿到 Python 3.15 上跑:

#!/usr/bin/env python3"""Python 3.15 JIT 基准——一键跑三种工作负载。"""import sysimport timedef bench_numeric(n: int = 2_000_000, rounds: int = 30) -> float:"""纯数值循环——JIT 最擅长"""def inner():        s = 0.0for i in range(n):            s += i * 0.5return s    start = time.perf_counter()for _ in range(rounds):        inner()return time.perf_counter() - startdef bench_mixed(n: int = 200_000, rounds: int = 20) -> float:"""字符串 + 字典混合——JIT 部分擅长"""    data = [f"item_{i:08d}_suffix" for i in range(n)]def inner():        d = {}for s in data:            d[s[:3]] = d.get(s[:3], 0) + len(s)return d    start = time.perf_counter()for _ in range(rounds):        inner()return time.perf_counter() - startdef main():    jit_on = sys._jit.is_enabled() if hasattr(sys, "_jit"else Falseprint(f"Python {sys.version}")print(f"JIT enabled: {jit_on}")print(f"JIT available: {sys._jit.is_available() if hasattr(sys, '_jit'else 'N/A'}")print()for label, fn in [("numeric loop", bench_numeric), ("string+dict", bench_mixed)]:        elapsed = fn()print(f"  {label:20s}{elapsed:6.2f}s")print()if jit_on:print("试试 PYTHON_JIT=0 跑同一脚本,对比差异。")else:print("试试 PYTHON_JIT=1 跑同一脚本,看能快多少。")if __name__ == "__main__":    main()

运行:

PYTHON_JIT=1 python full_bench.py# 然后关掉对比:PYTHON_JIT=0 python full_bench.py

3.15 的 JIT 只是个开始。3.16 的路线图已经规划了 free-threaded JIT、更多字节码覆盖、以及 10% 加速的整体目标。Python 在"快起来"这件事上,终于走上了正轨。

你不需要为了 JIT 重写任何代码。你只需要等 3.15 正式版发布,然后升级。

图 3:从实验特性到实用加速——Python JIT 走过了 4 年,经历资金断裂、志愿者接手、架构重写,在 3.15 首次交付可测量的性能提升。


环境说明

  • 本文代码在 Python 3.15.0b1 (macOS 15, Apple M3 Pro) 上测试
  • JIT 通过 PYTHON_JIT=1 环境变量启用,需 Python 构建时包含 JIT 支持(官方预编译包默认包含)
  • pyperf 版本 2.8+ 用于统计严格的基准对比
  • Python 3.15 正式版预计 2026 年 10 月发布,当前为 beta 阶段——不建议生产环境启用,但本地测试完全没问题

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-07-03 12:17:17 HTTP/2.0 GET : https://f.mffb.com.cn/a/499684.html
  2. 运行时间 : 0.102618s [ 吞吐率:9.74req/s ] 内存消耗:5,003.02kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=dc1c891e3e2b5363a335e2c3b68e1c7c
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000649s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000866s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000295s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000316s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000592s ]
  6. SELECT * FROM `set` [ RunTime:0.000254s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000577s ]
  8. SELECT * FROM `article` WHERE `id` = 499684 LIMIT 1 [ RunTime:0.001739s ]
  9. UPDATE `article` SET `lasttime` = 1783052237 WHERE `id` = 499684 [ RunTime:0.016326s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000333s ]
  11. SELECT * FROM `article` WHERE `id` < 499684 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000502s ]
  12. SELECT * FROM `article` WHERE `id` > 499684 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000447s ]
  13. SELECT * FROM `article` WHERE `id` < 499684 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.000905s ]
  14. SELECT * FROM `article` WHERE `id` < 499684 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.000808s ]
  15. SELECT * FROM `article` WHERE `id` < 499684 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.007174s ]
0.104313s