## 项目目的
源于在做 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
相关推荐
nanxun88621 小时前
记一次诡异的 Docker 容器"串包"故障排查用户1563068103511 天前
Day01 | Java 基础(Java SE)行者全栈架构师1 天前
Maven dependency:tree 的 8 个高级用法行者全栈架构师1 天前
IDEA 中 Maven 项目的 15 个红色报错快速解决方法令人头秃的代码0_01 天前
mac(m5)平台编译openjdk唐青枫2 天前
Java JDBC 实战指南:从 Connection 到事务和连接池一个做软件开发的牛马2 天前
MyBatis-Plus 从零实战:完整搭建可运行 Demo,BaseMapper 零 SQL、Wrapper 条件构造、分页插件与代码生成器详解用户3721574261352 天前
Java 处理 PDF 图片:提取 PDF 中的图片,并压缩 PDF 图片体积用户3721574261352 天前
Java 打印 Word 文档:从基础打印到高级设置用户3521802454753 天前
当 Prompt 学会"热更新":Spring Boot × Nacos3 AI 实战