Skip to content

Conversation

lucdion
Copy link
Member

@lucdion lucdion commented Jun 8, 2017

Add documentation about PinLayout’s performance. …
The performance are incredible, I didn’t know they would be that great 😄

As you can see in the following chart, PinLayout's performance is as fast as manual layouting, and up to 12x faster than auto layout, and 16x faster than UIStackViews. LayoutKit is also realy fast, slightly slower than PinLayout and manual layouting.

These results also means that PinLayout is by far faster than any layout frameworks that is built over auto layout (SnapKit, Stevia, PureLayout, ...).

It takes almost half a second (0.468 ms) to render 100 UICollectionView's cells using UIStackViews, and 1/3 of second (0.344) using auto layout. And all these results are on a iPhone 6S device.

chart-iphone6s

Luc Dion added 2 commits June 7, 2017 20:59
The performance are really incredible, I didn’t know they would be that great.

As you can see in the following chart, PinLayout's performance is as fast as manual layouting, and up to **12x faster than auto layout**, and **16x faster than UIStackViews**. LayoutKit is also realy fast, slightly slower than PinLayout and manual layouting.

These results also means that PinLayout is by far faster than any layout frameworks that is built over auto layout ([SnapKit](https://github.com/SnapKit/SnapKit), [Stevia](https://github.com/freshOS/Stevia), [PureLayout](https://github.com/PureLayout/PureLayout), ...).

It takes almost half a second (0.468 ms) to render 100 UICollectionView's cells using UIStackViews, and 1/3 of second (0.344) using auto layout. And all these results are on a iPhone 6S device.
@lucdion lucdion merged commit d5bf136 into master Jun 8, 2017
@lucdion lucdion deleted the performance_documentation branch June 8, 2017 01:55
@codecov-io
Copy link

codecov-io commented Jun 8, 2017

Codecov Report

Merging #40 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #40   +/-   ##
=======================================
  Coverage   95.38%   95.38%           
=======================================
  Files          14       14           
  Lines        2946     2946           
=======================================
  Hits         2810     2810           
  Misses        136      136

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 75e5a26...b7008c4. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants