Skip to content

Instantly share code, notes, and snippets.

@ashfurrow
Last active February 29, 2020 06:15
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ashfurrow/5976579 to your computer and use it in GitHub Desktop.
Save ashfurrow/5976579 to your computer and use it in GitHub Desktop.
Image Blurring – Accelerate vs. CoreImage

1.3MB png 640x1136

  • Accelerate 179ms every time
  • CoreImage 298ms first time 147ms subsequent times @1x scale
  • CoreImage 262ms first time 126ms subsequent times @0.5x scale
  • CoreImage 260ms first time 118ms subsequent times @0.25x scale

(Lower on 0.5x probably because of whole number for blur radius)

View Hierarchy via snapshot

  • Accelerate 141ms every time
  • CoreImage 196ms first time 60ms subsequent times @0.5x

Hardware

All tests done on an iPhone 5 running iOS [redacted] beta 3.

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