Skip to content

DmitryBespalov/swift-extensions-performance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Benchmark of Swift extensions compilation times

This benchmark compares compilation time of class with N method vs. time to compile class and N single-method extensions in Swift.

Usage

rake benchmark

Results

On my machine it produces the following results:

Benchmark results

n methods extensions
100 0,15 0,15
1000 1,05 1,1067
2000 2,0933 2,4467
3000 3,2867 4,2
5000 6,033 8,6367
10000 17,4767 33,21

About

Benchmark of compilation time of extensions in Swift 1.2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages