my-mail-ru/swift-benchmark
The Benchmark library provides a number of functions to help you figure out how long
Functions
timethis
func timethis(count: Int, title: String? = nil, _ body: () throws -> Void) rethrowsRun a chunk of code several times. Results will be printed to STDOUT.
timethis(count: 3) {
// do something
}
// Output:
// 0.444793617 wallclock secs (0.308 usr + 0.004 sys = 0.312 CPU)Package Metadata
Repository: my-mail-ru/swift-benchmark
Default branch: master
README: README.md