Hacker News new | ask | show | jobs
by kzaher 3697 days ago
I don't think these benchmarks are realistic. Yes, you can use UnsafePointers, but that's not the real world case. ARC, runtime generics and structs have a huge cost in real world programs.

Swift is unfortunatelly usually an order of magnitude slower then Java and C# in real world according to last benchmarks I've made. I'm hoping that will change because I really love Swift.

2 comments

Please contribute Swift programs that you think are "the real world case":

http://benchmarksgame.alioth.debian.org/play.html

Agreed. Swift is quite high-level compared to C or C++, for examples. As with any languages, there are tradeoffs with performance.