[swift-dev] program performance Ubuntu15.10 ?

Dmitri Gribenko gribozavr at gmail.com
Thu Dec 10 11:29:36 CST 2015


On Thu, Dec 10, 2015 at 8:33 AM, Isaac Gouy via swift-dev
<swift-dev at swift.org> wrote:
> How should I compile Swift programs on Ubuntu 15.10 for best performance?
>
> Like this?
>
>
>    bin/swiftc <source code file> -Ounchecked -whole-module-optimization
>
>
>
> What is performance with swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10 currently expected to be like? Like Python? Like Java? Like C?

Unfortunately, it looks like we enabled extra assertions in the
snapshot builds, so performance measurements won't be representative:
https://bugs.swift.org/browse/SR-180

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-dev mailing list