<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - ninja is 11% slower when built with libc++ (compared to libstdc++)"
href="http://llvm.org/bugs/show_bug.cgi?id=17703">17703</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>ninja is 11% slower when built with libc++ (compared to libstdc++)
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>hhinnant@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>nicolasweber@gmx.de
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Repro:
1. Build ninja ( <a href="http://martine.github.io/ninja/">http://martine.github.io/ninja/</a> )
mkdir ~/src
cd ~/src
git clone git://github.com/martine/ninja.git
cd ninja && python bootstrap.py
2. Check out chromium
git clone <a href="https://chromium.googlesource.com/chromium/tools/depot_tools.git">https://chromium.googlesource.com/chromium/tools/depot_tools.git</a>
export PATH=$HOME/src/depot_tools:$PATH
fetch chromium --nosvn=True
3. Build it with the ninja binary from step 1
cd src
GYP_GENERATORS=ninja build/gyp_chromium
time caffeinate ~/src/ninja/ninja -C out/Release chrome
4. Measure empty build time of chrome:
time caffeinate ~/src/ninja/ninja -C out/Release chrome
5. Edit ~/src/ninja/build/ninja and add "-stdlib=libstdc++" to cflags and
ldflgs, return `./ninja` to recompile ninja. (libc++ is the default in Xcode5's
clang)
6. Repeat 4. with the new binary
Expected: ninja is fast in the default build configuration.
Actual: ninja is considerably faster when built with libstdc++.
On my system, it's ~650ms vs ~720ms (min of several runs each).</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>