## 项目目的
源于在做 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
相关推荐
JH30733 小时前
SpringBoot 优雅处理金额格式化:拦截器+自定义注解方案Coder_Boy_4 小时前
技术让开发更轻松的底层矛盾invicinble4 小时前
对tomcat的提供的功能与底层拓扑结构与实现机制的理解较真的菜鸟5 小时前
使用ASM和agent监控属性变化黎雁·泠崖5 小时前
【魔法森林冒险】5/14 Allen类(三):任务进度与状态管理qq_12498707536 小时前
基于SSM的动物保护系统的设计与实现(源码+论文+部署+安装)Coder_Boy_6 小时前
基于SpringAI的在线考试系统-考试系统开发流程案例Mr_sun.6 小时前
Day06——权限认证-项目集成瑶山6 小时前
Spring Cloud微服务搭建四、集成RocketMQ消息队列abluckyboy6 小时前
Java 实现求 n 的 n^n 次方的最后一位数字