GoForum🌐 V2EX

各个语言 podman 打包对比 PHP golang rust

Loser110 · 2026-01-27 21:22 · 0 次点赞 · 0 条回复

最近在重构 php 网站,在不断的测试其他语言,一些结论,仅供参考。

hello world 速度上 laravel octane+frakenphp 200ms flightphp 20ms golang 2ms rust 没测试

打包文件大小上 prod Laravel 大约 600M ,具体不记得了,删掉了 python litestar 313 MB golang 11.8 MB

我以为 golang 是王者了,结果,刚刚测试 rust 4.87 MB

打包文件 dev 模式 golang 1.1G rust 1.7G

内存占用上 ( podman stats ) golang 2.806MB rust 524.3kB

CPU time go 268.388ms rust 34.221ms

不得不说,podman 部署是真方便,用 AI 写好脚本,zero downtime 一键部署到 N 个机器

本地开发也方便,线上打包好开发环境,直接下载,然后 dev start 就行

rust hello world 刚刚上线,感觉不错,稍微不好的地方是 本地 podman hotreload 有点慢,改了代码要等 2s ,go 不用等

0 条回复
添加回复
你还需要 登录 后发表回复

登录后可发帖和回复

登录 注册
主题信息
作者: Loser110
发布: 2026-01-27
点赞: 0
回复: 0