jey-song / Image-Frameworks-Benchmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image Frameworks Benchmark

Updated on April 27th 2018

Main Thread Performance

Image loading frameworks are often used in table and collection views with large number of cells. It's important that they perform well to achieve butterly smooth scrolling. This benchmark tests methods which are used on the main thread when cells are created:

Nuke.loadImage(with: url, into: view)
view.kf.setImage(with: url)
view.sd_setImage(with: url)
view.pin_setImage(from: url)
view.af_setImage(withURL: url)

The results (higher is better):

Please keep in mind that this performance test makes for a very nice looking chart, but in practice, the difference between Nuke and say SDWebImage is not going to be that dramatic. Unless you app drops frames on a table or a collection view rendering, there is no real reason to switch.

About

License:MIT License


Languages

Language:Swift 96.1%Language:Ruby 3.9%