[libcxx-dev] libcxx performance issue

Eric Fiselier via libcxx-dev libcxx-dev at lists.llvm.org
Sun Aug 25 13:47:14 PDT 2019


You would need to tell us what you're actually compiling before we can
guess at the problem.

/Eric

On Sat, Aug 24, 2019 at 2:28 PM Yan Yichen via libcxx-dev <
libcxx-dev at lists.llvm.org> wrote:

> Dear developers,
>
>   Sorry to bother you, but I’ve met a wired problem using clang with
> libcxx.
>
>   I’ve built clang and libcxx with clang, and trying to compile c++
> program with libc++, but compilation is extremely slow when using libcxx,
> as below:
>
>
>
> $ time clang++ -o /dev/null -std=c++11 -stdlib=libc++ test.cc
>
> clang++ -o /dev/null -std=c++11 -stdlib=libc++ test.cc  4.29s user 0.06s
> system 97% cpu 4.476 total
>
> $ time clang++ -o /dev/null -std=c++11 test.cc
>
> clang++ -o /dev/null -std=c++11 test.cc  1.41s user 0.06s system 92% cpu
> 1.582 total
>
>
>
>   I wonder if you have any idea where should I start to address this
> issue, or anything I probably configured wrong? Thanks in advanced.
>
>
>
> Best,
>
> Yichen
> _______________________________________________
> libcxx-dev mailing list
> libcxx-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/libcxx-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-dev/attachments/20190825/24918b0f/attachment.html>


More information about the libcxx-dev mailing list