Home

Awesome

Diff Performance Suite

These are a set of very simplistic benchmarks for recording the difference in calculation time between the different diff implementations.

Each measurement is the mean time in seconds it takes to calculate a diff, over 10 runs on an iPhone 6.

DiffDwifft
same0.021352.3642
created0.01880.0033
deleted0.01840.0050
diff0.132063.4084

Instructions

You can run these benchmarks yourself:

swift run -c release PerformanceTester Sources/PerformanceTester/Samples/Diff-old.swift Sources/PerformanceTester/Samples/Diff-new.swift

Requirements

Diff Performance Suite requires Swift 4 / Xcode 9 or later to compile.

Contributions

I'd love to see more implementations benchmarked, so feel free to open a pull request!