2 ms·
Those benchmarks (part 2) were ludicrously flawed, comparing native integers in Swift with NSNumber objects in Objective-C. The fact that the standard library
by mpweiher 12y ago
Those benchmarks (part 2) were ludicrously flawed, comparing native integers in Swift with NSNumber objects in Objective-C.
The fact that the standard library qsort() routine, which uses function pointers and pointers to the objects to be sorted in the array has overhead is also obvious, a truly native implementation is still much better[1]
[1] http://blog.metaobject.com/2014/09/no-virginia-swift-is-not-10x-faster.html http://blog.metaobject.com/2014/09/no-virginia-swift-is-not-...