4 ms·
It has nowhere near the performance characteristics of those languages. It could, but it doesn’t. Look up a variety of language benchmarks. It’s typically ranke
by rudedogg 2y ago
It has nowhere near the performance characteristics of those languages. It could, but it doesn’t. Look up a variety of language benchmarks. It’s typically ranked around Python/Javascript. You can get as fast as C but the code is very atypical.
- azinman2 2y agoThere's no way it's close to Python. Where are the benchmarks? https://github.com/sh3244/swift-vs-python https://github.com/sh3244/swift-vs-python Shows a huge difference, as expected for a typed memory-safe compiled language using LLVM versus an interpreted language with a global interpreter lock.
- rudedogg 2y agohttps://forums.swift.org/t/really-bad-performance-with-concurrecny-and-how-to-optimize-the-code/63732/21 https://forums.swift.org/t/really-bad-performance-with-concu...
- KerrAvon 2y agoThe thread you just posted has a bunch of posts indicating this was not the actually the same program in Python and Swift; further, the Swift version was written poorly. Plus, the graph in the final post shows whatever Swift version someone ran tests on as much faster than Python.
- pzo 2y agoIt is slower, like probably ~3x but lets not exaggerate that it ranks around python https://benchmarksgame-team.pages.debian.net/benchmarksgame/box-plot-summary-charts.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...