3 ms·
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
by kzaher 10y 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.
- hellofunk 10y agoAgreed. Swift is quite high-level compared to C or C++, for examples. As with any languages, there are tradeoffs with performance.
- igouy 10y agoPlease contribute Swift programs that you think are "the real world case": http://benchmarksgame.alioth.debian.org/play.html http://benchmarksgame.alioth.debian.org/play.html