XCode 6 Playground Measuring Code Performance

前端 未结 3 1141
孤街浪徒
孤街浪徒 2021-01-17 22:30


Is there any quick way of evaluating the performance / runtime of a certain code part written in the new XCode 6 playground?
I want to start learning Swift by

3条回答
  •  轮回少年
    2021-01-17 22:37

    I built this little tool that allows you to have performance testing in your Playground.

    I'll continue to update and enhance it, but for now, it'll give you the basic ability to measure how long a function takes to run.

    https://github.com/sebastienpeek/swift-performance

提交回复
热议问题