Re: Test CMake build

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Yury Zhuravlev <u(dot)zhuravlev(at)postgrespro(dot)ru>, pgsql-general(at)postgresql(dot)org
Subject: Re: Test CMake build
Date: 2016-02-12 12:15:37
Message-ID: 56BDCCE9.8010507@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Teodor Sigaev wrote:
> I tried it on FreeBSD 64-bit, 16Gb, SSD, Core i7
>
> ( ./configure && gmake all; ) 168,99s user 15,46s system 97% cpu 3:09,61 total
> ( cmake . && gmake all; ) 75,11s user 11,34s system 100% cpu 1:26,30 total
( CFLAGS='-O2' cmake . && gmake all; ) 141,87s user 12,18s system 97% cpu
2:37,40 total

Oops, cmake default target is compiled with -O0. With -O2 cmake is still faster
but not so much.

>
> Cmake 2 times faster, that is good, but I don't understand why. Which
> optimization level does cmake buld use by default? Which compiler does it take?
> It's not obvious, because cmake build hides actual compiler command line.
>
> Yury, pls, return back check target...

--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2016-02-12 12:23:16 Re: Test CMake build
Previous Message Peter van Eck 2016-02-12 11:00:48 PostgreSQL 9.5 and process REST calls enquiry