Get Updates By E-mail 

Article Written By:
Johann Dowa

Library Allowing You To Time The Performance Of A Definable Section Of Objective-C Code

  •  
  •  
  •  
  •  
  •  

There are times when the use of instruments is impractical for measuring the performance of some Objective-C code.

Previously I mentioned an excellent guide on timing the performance of blocks and a library allowing you to easily profile the performance of a specific method.

Here’s a library allowing you to measure the performance of a specific section of code called MGBenchmark from Mattes Groeger.

With MGBenchmark you simply need to mark the start and finish of your code of the code you want to time, and it will time the execution until it reaches the marked finish even across classes.

Here’s a summary of features as stated in the readme:

– Measure total execution times
– Measure individual steps of execution
– Get the average execution time of all steps
– Have multiple benchmark sessions at the same time
– Implement custom output targets

You can find MGBenchmark on Github here.

A great library to help with improving the performance of your Objective-C code.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments