program performance Ubuntu15.10 ?


(Isaac Gouy) #1

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?


(Dmitri Gribenko) #2

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

···

On Thu, Dec 10, 2015 at 8:33 AM, Isaac Gouy via swift-dev <swift-dev@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?

--
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@gmail.com>*/