## 项目目的
源于在做 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 分钟前
RHEL9.8 配置本地镜像仓库范什么特西2 分钟前
苍穹外卖体会Nontee11 分钟前
数据类型与包装类 — 一个新手学Java的数据类型笔记音符犹如代码20 分钟前
Java动态线程池:避坑原生线程池,吃透Dynamic-TP,手写一个Demo万亿少女的梦16839 分钟前
基于Spring Boot、Vue.js和MySQL的超市管理系统设计与实现AI产品实战1 小时前
Gradle打包生成dependencies.xml详解方华世界1 小时前
企业级Java AI Agent应用平台折哥的程序人生 · 物流技术专研2 小时前
第8篇:模板方法模式的优缺点与面试高频考点人道领域3 小时前
【0-1的agent进阶篇】Prompt 与上下文工程Y001112363 小时前
SpringBoot 基础篇