Skip to content

Simple performance testing of common Swift-based diff libraries

License

Notifications You must be signed in to change notification settings

tonyarnold/DiffPerformanceSuite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Diff Dwifft
same 0.0213 52.3642
created 0.0188 0.0033
deleted 0.0184 0.0050
diff 0.1320 63.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!

About

Simple performance testing of common Swift-based diff libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages