3 ms·
No they don't. GC language, for example, are more sensitive to memory pressure to reference counting overhead.
by skohan 7y ago
No they don't. GC language, for example, are more sensitive to memory pressure to reference counting overhead.
- pjmlp 7y agoFirst, Swift is also a GC language. Secondly, with exception of Java, the remaining ones on that benchmark support value types and native heap allocations.
- skohan 7y agoWe can get into semantics all day, but the point still stands that different languages are going to perform differently on any given benchmarks due to the performance constraints of that language. Also I would love to see an implementation of the swift benchmark which doesn't lean on reference types, which is not idiomatic swift and is likely the reason the ARC penalty is so high here.