## 项目目的
源于在做 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
相关推荐
草履虫建模1 小时前
力扣算法 1768. 交替合并字符串qq_297574673 小时前
【实战教程】SpringBoot 实现多文件批量下载并打包为 ZIP 压缩包老毛肚3 小时前
MyBatis插件原理及Spring集成学嵌入式的小杨同学3 小时前
【Linux 封神之路】信号编程全解析:从信号基础到 MP3 播放器实战(含核心 API 与避坑指南)lang201509284 小时前
JSR-340 :高性能Web开发新标准Re.不晚4 小时前
Java入门17——异常缘空如是4 小时前
基础工具包之JSON 工厂类追逐梦想的张小年4 小时前
JUC编程04好家伙VCC4 小时前
### WebRTC技术:实时通信的革新与实现####webRTC(Web Real-TimeComm南极星10055 小时前
蓝桥杯JAVA--启蒙之路(十)class版本 模块