Swift performance today?

When Swift was new, people liked to do various performance tests and compare Swift to C++. Swift was often lagging behind in those early days, but we are now at version 3 and I'm sure the team made many optimizations and fixed many bugs.


So I am wondering if there are any new performance tests or discussions of the performance.

Might want to ask on swift.org - as well, they have a benchmark suite that may prove useful


h t t p s : / / swift.org/blog/swift-benchmark-suite/

Here is a pretty good list of performance tips from the mothership itself:


h t t p s : / / github . com /apple/swift/blob/master/docs/OptimizationTips.rst/


I thought the comment about boxing was important.


I've seen some other blog write ups on Swift performance like the one from primatelabs.com but it looks dated.


I'm curious about Dictionary updating an existing key/value pair. How does this compare to C++ map for instance? I had avoided NSMutableDictionary previously. My main motivation porting my Objective-C code is the performance gain. ( though some hotspots had to be done in C++)


Also, non bridged container performance in general. What does ContiguousArray buy me versus Array? Is Set slow?


How can I improve performance of referenced types?


Seems most of the blog posts out there are dated. Kind of surprising with Swift 3 being a .0 release.

This is an awesome read, thanks!

Swift performance today?
 
 
Q