## 项目目的
源于在做 React Native 包拆分的需求时,比较 bsdiff 和 google-diff-match-patch 在生成差量文件上的性能差异。
- bsdiff (http://www.daemonology.net/bsdiff/)
- google-diff-match-patch (https://github.com/bystep15/google-diff-match-patch)
- metro-bundle(https://facebook.github.io/metro/)
## 实验数据
- Hello World 工程中的 jsbundle 对比
| 工具名称 | bsdiff | google-diff-match-patch | metro-bundle |
| --------------------------- | ------------- | ----------------------- | ------------- |
| Common 包 | 764,797 bytes | 764,797 bytes | 764,797 bytes |
| HelloWorld 完整包 | 767,338 bytes | 767,338 bytes | 767,338 bytes |
| HelloWorld 业务补丁 (patch) | 1,324 bytes | 42,891 bytes | 2,783 bytes |
| 拆分时间 (diff time) | 1,042 ms | 2,410 ms | - |
| 合并时间 (patch time) | 32 ms | 258 ms | - |
bsdiff| google-diff-match-patch | metro-bundle 文件差异分析工具性能比对
瓦哥架构实战2024-01-17 10:01
相关推荐
2201_757830872 小时前
全局异常处理器小徐Chao努力3 小时前
【Langchain4j-Java AI开发】09-Agent智能体工作流Coder_Boy_3 小时前
SpringAI与LangChain4j的智能应用-(理论篇3)Coder_Boy_3 小时前
基于SpringAI的智能平台基座开发-(六)伯明翰java4 小时前
Java数据类型与变量想用offer打牌4 小时前
如何开启第一次开源贡献之路?小许学java5 小时前
Spring原理教练、我想打篮球5 小时前
122 Hession,FastJson,ObjectInputStream的序列化反序列化相同引用的处理酷柚易汛6 小时前
酷柚易汛ERP 2025-12-26系统升级日志侠客行03176 小时前
Mybatis入门到精通 一