Slashdot Mirror


Speed Test 2: Comparing C++ Compilers On WIndows

Nerval's Lobster writes "In a previous posting, developer and programmer Jeff Cogswell compared a few C++ compilers on Linux. Now he's going to perform a similar set of tests for Windows. "Like all things Windows, it can get costly doing C++ development in this environment," he writes. "However, there are a couple notable exceptions" such as free and open-source cygwin, mingW, Express Versions of Visual Studio, and Embacadero. He also matched up the Intel C++ Compiler, Microsoft C++ Compiler, and the Embarcadero C++ 6.70 Compiler. He found some interesting things — for example, Intel's compiler is pretty fast, but its annoying habit of occasionally "calling home" to check licensing information kept throwing off the rests. Read on to see how the compilers matched up in his testing."

81 of 132 comments (clear)

  1. Calling home by six025 · · Score: 1, Insightful

    >> its annoying habit of occasionally "calling home" to check licensing information

    Calling home for the latest NSA exploits to inject in to your application? /tinfoil-hat-no-so-paranoid-these-days-dept

    1. Re:Calling home by NoNonAlphaCharsHere · · Score: 2

      ..."calling home" to check licensing information kept throwing off the rests.

      Oh, they meant the tests.

    2. Re:Calling home by fuzzyfuzzyfungus · · Score: 4, Interesting

      Depends on the paranoia of the DRM implementation.

      A simple "We sell to corporations, so we don't expect cracks but we do expect optimists trying to install a few extra seats" licensing system really just needs to (ideally over SSL, hear that, LG?) phone home the serial number at intervals and get a 'yes/no' in response.

      The more paranoid systems, designed on the assumption that the client will be under active attack, may be considerably murkier. Something like 'BD+', for instance, for Blu-ray DRM, mandates a proprietary, blackbox virtual machine (with access to the client hardware's memory and the ability to run native code, including applying persistent patches to the client system, in addition to what it does internally) that executes whatever blob of BD+ code burned into the disk you try to play.

      A system like that, or an AV-like 'signature' system that is designed to have one or more parts of the client DRM continually interrogating one another in novel ways to detect compromises in the authentication mechanism would be more or less indistinguishable from a binary, because it would be one.

      For something like a compiler, rather than a game, or some precious 'premium content', I'd expect the former; but I've underestimated human stupidity before.

    3. Re:Calling home by Kardos · · Score: 3, Informative

      You might think so, but no. If the licensing check is done in the clear, one could spoof the reply and thus bypass the licensing effortlessly. More likely it's encoded/encrypted in some way that you can't (easily) fake a green light. So you may be able to identify the transmission of "very large binary" or equivalent, but differentiating between a "license check" and "tiny binary" would be tricky since you won't be reading the stream.

    4. Re:Calling home by Ravaldy · · Score: 1, Troll

      Who mods this garbage up?

    5. Re:Calling home by Anonymous Coward · · Score: 1

      Sure, it's nonsense. Then Stuxnet happened. When "someone" is investing that much effort into injecting malicious binary code into specific industrial equipment, I think anything is possible if there was sufficient motivation behind it. Ordinary people as targets? Obviously not worth the trouble, so for most of us it's something we can joke about and forget. But let's say someone is compiling programs to run some important industrial equipment along similar lines as Stuxnet's target. Maybe they're doing it precisely because they don't trust outside code that they can't audit themselves. In that circumstance I wouldn't put it past nefarious people trying to introduce something via the compiler itself. It is a possibility that people have pointed out for years as a theoretical possibility, even though it's probably a pretty challenging vector.

      Checking licensing information is pretty far removed from actually injecting code, but if the process also involves automatically downloading updates, there are possibilities for making it happen (e.g., spoofing the update servers).

    6. Re:Calling home by jones_supa · · Score: 1

      >> its annoying habit of occasionally "calling home" to check licensing information

      Calling home for the latest NSA exploits to inject in to your application? /tinfoil-hat-no-so-paranoid-these-days-dept

      They are also trying to ram down the users' throats a sign-in feature with VS2013 too.

    7. Re:Calling home by jones_supa · · Score: 1, Offtopic

      Who mods this garbage up?

      You can bet it's not me. I almost get sex more often than Slashdot mod points.

    8. Re:Calling home by Kardos · · Score: 1

      That seems like a terrible idea. You'd have many legit claims for new reg keys, how would you know when to deny the requests from people pirating the software? Ugh.

    9. Re:Calling home by X0563511 · · Score: 1

      PKI can fix that for you... allowing the message to be open, but incapable of being spoofed.

      --
      For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
  2. Crickets... by Anonymous Coward · · Score: 1

    I do believe that no one on slashdot cares about this.

    1. Re:Crickets... by NotBorg · · Score: 3, Insightful

      It would help if he actually measured something worthwhile. In the 20+ years I've been coding, I've never once picked a compiler on the basis of how long it takes to spit out a binary. There are just so many other more interesting features and characteristics to consider.

      --
      I want this account deleted.
    2. Re:Crickets... by ebno-10db · · Score: 2

      In the 20+ years I've been coding, I've never once picked a compiler on the basis of how long it takes to spit out a binary.

      Then you don't compile big projects. Neither do I, but there are projects where a full build can take hours. Sure build farms and stuff help, but so does a 2x faster compiler.

    3. Re:Crickets... by Tallfeather · · Score: 2

      I do work on large projects in the multi-hour range for a full rebuild, and the compile time is still pretty much the lowest priority in selecting a compiler. All things being equal, of course I'd like to have the fastest compiles possible. But more important than that is that I can write the code I need to write without dodging compiler bugs / shortcomings all day, and deliver a binary which is optimized well for the target.

      You can adapt to slow compiles. Breaking the project up into libraries, for example. You can't readily adjust to other compiler problems.

    4. Re:Crickets... by RaceProUK · · Score: 1

      Nah, just break the project up into libraries and turn on incremental build.

      --
      No colour or religion ever stopped the bullet from a gun
    5. Re:Crickets... by david_thornley · · Score: 2

      Iterate twice as fast? Only if all you do is compile. Some of us compile, test some, think, make changes, and then recompile. I heartily recommend the "test" and "think" ideas if you're not used to them.

      --
      "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
  3. Calling home threw off the results? by iYk6 · · Score: 5, Insightful

    Did calling home really throw off the results? Since that is something that ordinary users would have to put up with, I would think it should be part of the test. It might be difficult to get an average, but testing Intel's compiler only when it is at its fastest doesn't seem fair.

    1. Re:Calling home threw off the results? by Darinbob · · Score: 1

      Does the speed of compiling matter that much compared to the speed of the resulting code? I know that C++ compilers can be extremely slow to run but it shouldn't be a major concern unless it's so slow that an incremental build is wasting enough time that you're off getting another coffee or donut while waiting.

  4. does the Intel one still slow down on AMD systems? by Joe_Dragon · · Score: 3, Interesting

    does the Intel one still slow down on AMD systems and or trun out code with AMD slow down blocks?

  5. Representative benchmarks? by jameson · · Score: 4, Interesting

    Based on his description, he is using a very synthetic benchmark:

    The code I’m testing contains no #include directives, and makes use of only standard C++ code. It starts with one class, and then is followed by 6084 small classes derived from various instantiations of the template classes. (So these 6084 classes are technically not templates themselves.) Then I create 6084 instantiations of the original template class, using each of the 6084 classes. The end result is 6084 different template instantiations. Now, obviously in real life we wouldn’t write like that (at least I hope you don’t).

    So in his own words, the code does not reflect realistic compiles. There is no reason to assume that the result generalise to any programs that anyone actually cares about.

    Also, there are no error bars of any kind listed.

    In other words, I have no reason to assign any meaning to these numbers.

    1. Re:Representative benchmarks? by OzPeter · · Score: 1

      In other words, I have no reason to assign any meaning to these numbers.

      Given the reaction to the previous article I don't know what this guy is even trying to do.

      And why 6084? What is so special about that number?

      --
      I am Slashdot. Are you Slashdot as well?
    2. Re:Representative benchmarks? by c++ · · Score: 4, Insightful

      In other words, I have no reason to assign any meaning to these numbers.

      Given the reaction to the previous article I don't know what this guy is even trying to do.

      And why 6084? What is so special about that number?

      6084 / 2 % 100 == 42

      That is meaning enough.

    3. Re:Representative benchmarks? by Ravaldy · · Score: 3, Insightful

      The article is alright but not one I would use to pick a compiler. IMHO the resulting EXE is more important than the compiler processing time. I've dealt with large sized applications and if structured properly, your build times on a modern computer should not be an issue.

    4. Re:Representative benchmarks? by Gothmolly · · Score: 1

      Its like your average Moronix linux kernel benchmark, where they have bars and numbers with no scale. Basically, look at me, I'm an attention-whore nerd!

      --
      I want to delete my account but Slashdot doesn't allow it.
    5. Re:Representative benchmarks? by Anonymous+Crowbar · · Score: 2

      Not sure if anyone already mentioned this but my take is it is NOT how fast the project compiles but rather the performance of the executable. If one is building race cars it's not how fast they come off the assembly line, it's how fast the cars go on the track.

    6. Re:Representative benchmarks? by EMN13 · · Score: 2

      Oh and one minor detail: did you see the final compiled code sizes and how much smaller the optimized versions are (esp. clang!). I'm willing to bet the entire benchmark just code "optimized away" by dead code elimination; and that's an entirely unrealistic situation... Also, where's the code? Is this reproducible?

      The benchmark isn't worth anything.

    7. Re:Representative benchmarks? by Kickasso · · Score: 1

      You build race cars, we build family sedans, mmkay?

    8. Re:Representative benchmarks? by rwiggers · · Score: 1

      I think you never had to use cygwin...
      Build time on modern computer could be an issue sometimes, but your statement that the performance of the binary is more important keeps valid.
      Not that the benchmark of the article makes any sense...

  6. Embarcadero cheap? by TechyImmigrant · · Score: 2

    I took a quick took at their website. It looks quite scammy, they only talk about how much you will save, not about how much it will cost.
    After clicking through the buy-now buttons twice, I found the C++ version was $4000.

    --
    I should use this sig to advertise my book ISBN-13 : 978-1501515132.
    1. Re:Embarcadero cheap? by Anonymous Coward · · Score: 1

      Hmm, I looked at their website and see prices from $999 to $3999. The 64 bit compiler is included at the $999. Looks like all kinds of enterprise database stuff is in the $3999 version.

    2. Re:Embarcadero cheap? by TechyImmigrant · · Score: 1

      Well there were lots of options. I clicked on the one with C++ in it.

      Either way, $999 or $3999 is a barrier to me using their products. I could use it in production, but in production I'm going to use the tools that I'm fluent in because they're free and so I get to use them everywhere.

      I was questioning TFA, because it implied that Embarcadero was cheap/free. It isn't.

      --
      I should use this sig to advertise my book ISBN-13 : 978-1501515132.
  7. Re:does the Intel one still slow down on AMD syste by fuzzyfuzzyfungus · · Score: 4, Interesting

    My understanding is that they never explicitly 'slowed down' AMD systems; but that the binaries produced by their compiler refused to honor the capabilities flags of non-intel processors (eg. even if an AMD CPU lists 'SSE2, SSE3' among supported instructions, it would get the fallback to non-SSE instructions, while Intel CPUs would get whatever their supported instructions lists specified). No actual 'here be lots of NOPs for no reason'; but x87 on a machine that can do recent SSE is probably enough to achieve the same effect...)

  8. Executable size by istartedi · · Score: 1

    LLVM has got to be dynamically linking and stripped by default. There are switches on the other compilers that will let you do that, and it looks like they're being ignored.

    --
    For all intensive purposes, "whom" is no longer a word. That begs the question, "who cares"?
    1. Re:Executable size by shutdown+-p+now · · Score: 1

      On VC, all debugging information goes into a separate file (.pdb).

  9. Generated code speed by c++ · · Score: 5, Insightful

    This doesn't test the speed of generated code. I like to know which compiler produces faster code when looking at benchmarks.

  10. Inaccurate test. by johnnys · · Score: 5, Insightful

    According to the fine article, "The Intel compiler occasionally âoecalls homeâ to an Intel-owned Website to check licensing information. When it does so, it prints out a message about when the current license expires. I didnâ(TM)t use the results when that happens, since it would add time and skew the timing results. " WRONG. The tester should not have excluded these results where time was wasted with this nonsense: If WE the users have to put up with it, it SHOULD be included in the benchmarks.

    --
    Sometimes the "writing on the wall" is blood spatter...
    1. Re:Inaccurate test. by TheCarp · · Score: 3, Insightful

      while absolutely correct, and not just we put up with it.... if the license check is what the compiler does, then it is what it does. To leave those out is to be measuring something other than the real behaviour of the compiler in real situations.

      Hell if this is the case, can you really call the testing complete if he didn't simulate network conditions like, the licensing server being unreachable, or having really high latency?

      --
      "I opened my eyes, and everything went dark again"
    2. Re:Inaccurate test. by wonkey_monkey · · Score: 1

      There also doesn't seem to be anything about how good the executables the compiler produces are. Y'know, the whole reason for the existence of compilers.

      --
      systemd is Roko's Basilisk.
  11. Re:does the Intel one still slow down on AMD syste by K.+S.+Kyosuke · · Score: 2

    My understanding is that they never explicitly 'slowed down' AMD systems; but that the binaries produced by their compiler refused to honor the capabilities flags of non-intel processors

    Oh, my. Just how many major non-Intel x86-64 CPU vendors are there? AMD, and...? It's suspiciously similar to the ACPI and SecureBoot affairs, don't you think?

    --
    Ezekiel 23:20
  12. Re:does the Intel one still slow down on AMD syste by fuzzyfuzzyfungus · · Score: 1

    Well, our wiki overlords list 15 known CPU IDs; but one of them is intel, one is AMD, one is a VM, and most of the rest are the forlorn epitaphs of the fallen.

  13. Speed is always nice but... by mark-t · · Score: 2

    I'd just like to see a C++11 compiler for windows.

    1. Re:Speed is always nice but... by ebno-10db · · Score: 1, Troll

      Forget C++11 - switch to D. No, I can't do it either, but I can dream. C++11, for all that it has some nice features, continues the endless quest to make C++ ever more baroque, and to give it a syntax that makes the result of an obfuscated code contest look the same as any other code. It can be done so much more cleanly. In fact Walter Bright and Andrei Alexandrescu already have.

      One of the interesting things about D is that both Bright and Alexandrescu are serious C++ experts. I don't think Bright decided to implement "C++ done right" because he didn't understand the features and nuances of C++.

    2. Re:Speed is always nice but... by gbrandt · · Score: 1

      Embarcadero's 64 bit compiler uses CLANG 3.1, so it has most of C++11

    3. Re:Speed is always nice but... by Billly+Gates · · Score: 1

      VS 2013 which just came out supports C++ 11. At least that is what MS is saying.

    4. Re:Speed is always nice but... by mark-t · · Score: 1

      No, it doesn't. Most notable omissions include constexpr, user-defined literals, inheriting constructors, and attributes. There are others, but those are the big ones, IMO.

    5. Re:Speed is always nice but... by gbrandt · · Score: 1

      Did you somehow miss the 'most' in my comment. It has what CLANG 3.1 supports which is quite a chunk.

    6. Re:Speed is always nice but... by jonwil · · Score: 1

      They have just released a "tech preview" of the compiler that (per the Microsoft provided info) supports constexpr and inheriting constructors with a clear roadmap to supporting the rest of C++11/C++14 (including user defined literals and attributes)
      http://blogs.msdn.com/b/vcblog/archive/2013/11/18/announcing-the-visual-c-compiler-november-2013-ctp.aspx is the announcement from the Visual C++ guys about it.
       

    7. Re:Speed is always nice but... by fnj · · Score: 1

      Clang 3.1 is prehistoric. Clang is at 3.3 now and really *is* pretty complete C++11. Screw Embarcadero.

      Gcc 4.8, which is current, is also pretty complete C++11.

    8. Re:Speed is always nice but... by mark-t · · Score: 1

      I suppose it depends on the importance that one weights those features.

      There are three distinctive languages features of C++11 that sold me on using it once and for all: lambdas, constexpr, and user-defined literals. Of these three, Visual Studio 2013 has only one. One out of three isn't "most"

    9. Re:Speed is always nice but... by mark-t · · Score: 1

      With 32 languages in higher demand than D as of this month, I'm not sure that's a particularly wise investment of my time.

    10. Re:Speed is always nice but... by gbrandt · · Score: 1

      Wow, a bit of hate on for Embarcadero?

    11. Re:Speed is always nice but... by fnj · · Score: 1

      I don't waste any energy actively hating them. They are irrelevant to me. They tack on a GUI which many find helpful for certain task scenarios to an absolutely free compiler, which isn't even necessarily up to date, and then charge an absurd premium. It's an option.

      If I need to do any work in Windows I just use free Cygwin or MinGW.

  14. Re:does the Intel one still slow down on AMD syste by Anonymous Coward · · Score: 1

    The reason there are these feature flags is that, they can be used to identify the capabilities of the processor. It's not supporting processors that aren't theirs, it's supporting the same features in all processors that support the features.

  15. Invalid Benchmark - Who Cares by MerlynEmrys67 · · Score: 3, Insightful

    Benchmarking compilers on how long it takes to compile would be like benchmarking cars based on how long it takes to fill the gas tank.
    There are so many things that can affect compile time more than the compiler - and the end customer really doesn't care anyway. Frankly, if you want a 3-5x speedup, just put the whole thing on an SSD and let it fly.

    --
    I have mod points and I am not afraid to use them
    1. Re:Invalid Benchmark - Who Cares by Guspaz · · Score: 1

      benchmarking cars based on how long it takes to fill the gas tank.

      Electric cars have made that an extremely relevant benchmark... and marketing stunts involving battery swaps have indeed benchmarked how long it takes to fill a tank.

    2. Re:Invalid Benchmark - Who Cares by MobyDisk · · Score: 1

      Electric cars fill their gas tanks very quickly!

  16. Re:Embarcadero? by jankoh · · Score: 1

    They seem to be the ones, that bought Borland... ('s division developing development tools, such as C/C++ compilers, and Delphi..) http://en.wikipedia.org/wiki/Embarcadero_Technologies

  17. Compiler++ by jones_supa · · Score: 1

    Also Microsoft's Jim Radigan held a cool presentation in GoingNative 2013 where he reveals some optimization tricks done by the MSVC++ compiler. It also shows some screenshots where Windows is being compiled on a monster multi-core machine.

  18. Re:does the Intel one still slow down on AMD syste by Richard_at_work · · Score: 2

    VIA was also one that was affected by Intels compiler behaviour.

  19. Re:Useless Comparison by gstoddart · · Score: 1

    After all, you're only going to compile once

    I've worked at places where everything gets built every night to ensure nobody has broken anything.

    So, in some cases, you may well compile many many times.

    I'm not sure it's how I'd primarily choose a compiler, but in some places it could certainly be a factor.

    --
    Lost at C:>. Found at C.
  20. Re:does the Intel one still slow down on AMD syste by zubab13 · · Score: 1

    Just use libsimdpp ( https://github.com/p12tic/libsimdpp ) or any of the myriad similar wrappers. With modest time investment you get almost optimal implementation for multiple instruction sets on any compiler you use.

  21. Re:does the Intel one still slow down on AMD syste by fuzzyfuzzyfungus · · Score: 3, Insightful

    If memory serves, their argument varies (depending on whether the FTC appears interested or not) between 'fuck you, it's the Intel compiler collection, and it'll do what's best for Intel. Go suck an Opteron if you like AMD so much.' and 'Gosh, we sure know about the capabilities flags; but we can't be sure of the details of other vendors'(*cough*shoddy, probably reverse engineered illegally*cough*) implementations of certain complex features, and our customers expect our compiler suite to provide stable, correct output, so reverting to the x87 codepath is our only real option..."

  22. Re:I win! by dyingtolive · · Score: 1

    I would argue that your executable returns with expected result nearly instantaneously.

    --
    Support the EFF and Creative Commons. The war is coming, and they're supporting you...
  23. Re:does the Intel one still slow down on AMD syste by fuzzyfuzzyfungus · · Score: 1

    Oh, VIA... I'm honestly always a bit surprised to see them still trying.

    Back before Intel got (slightly) serious about cheap, with 'atom' and AMD got slightly serious about low-power, with some of their APUs, they made more sense, (in particular, a number of rather interesting x86 embedded specialty boards were VIA based, for situations too low-power or cost constrained for a p3/p4); but lately they've been a much tougher sell. Still some interesting specialty stuff; but 'Unichrome' graphics are such a clusterfuck to deal with that they make AMD look like GPU driver gods, and Intel look (while slow) nearly infallible, and both Intel and AMD have put some rather more aggressive parts into what used to be VIA's playground.

  24. Re:does the Intel one still slow down on AMD syste by K.+S.+Kyosuke · · Score: 1

    With modest time investment you get almost optimal implementation for multiple instruction sets on any compiler you use.

    I'm using ClozureCL and SBCL. I don't think that this is going to work. :-)

    --
    Ezekiel 23:20
  25. Re:butt goat fart by Anonymous Coward · · Score: 1

    Dude, lay off the meth.

  26. Re:does the Intel one still slow down on AMD syste by zubab13 · · Score: 1

    Sorry, my post was directed to the parent of your post. Somehow I misclicked somewhere and didn't notice.

  27. Re:does the Intel one still slow down on AMD syste by K.+S.+Kyosuke · · Score: 1

    Doesn't matter, it's still an interesting thing to study. Maybe if I ported and macroified the whole thing for ClozureCL, some good use for me could come from it, too! :-)

    --
    Ezekiel 23:20
  28. Intel compiler does not phone home for licensing by stevel · · Score: 4, Informative

    The Intel compilers do NOT "phone home" for licensing. What they do "phone home" for is to send anonymous usage data. When you install, you're asked if you want to opt in to this - it is not enabled by default. Licensing is done entirely locally for single-user licenses. See http://software.intel.com/en-us/articles/software-improvement-program for more information.

  29. Re:does the Intel one still slow down on AMD syste by K.+S.+Kyosuke · · Score: 1

    Why would they need to "reverse engineer" features (instruction set extensions) that are already publicly documented for the benefit of compiler writers and assembly language programmers?

    --
    Ezekiel 23:20
  30. Re:does the Intel one still slow down on AMD syste by Anonymous Coward · · Score: 2, Interesting

    Long, long ago some review site ran a Via CPU based system while spoofing the CPU ID to appear as an Intel CPU of similar capabilities.
    They expected a few percent gain in the FP and INT benches, but oddly got an 8-fold increase in reported memory bandwidth. The other benchmarks appeared to reflect a real increase in memory performance.

    Don't wipe your arse with Intel, they're so dirty you'll end up shittier.

  31. Re:does the Intel one still slow down on AMD syste by Billly+Gates · · Score: 1

    A lot.

    Typing this in a AND Phemom II black edition which is very fast and not that far off from an i7 back in 2010 when I purchased this. True the newer ones are slower per ghz sadly.

    But what if AMD's next chip kicked ass! Remember the Athlon and the later AthlonXPs were the fastest x86 chip you could buy a decade ago?

    Tomshardware would include Skyrim and other Intel compiled apps and whine how slow their inferior AMD chips are and intel fan boys would gleam ... but regardless I have a problem with Intel.I do not want to pay more money for a CPU that provides less value.

    Even if you do want to argue on this price/performance I get unlocked bios that can support virtualization. Not $900 computer to run VMware natively. Any AMD chipset can run it if you turn it on in the bios!

    To answer the grandparent YES INTEL compilers DO CRIPPLE AMD if they do not include SSE3, registers, and other items and use non IEEE standard FPU x87 to make their cpus look better. It is like Nvidia crippling OpenCL to force developers to make CUDA apps who then go on how slow AMD's radeons are etc.

  32. Re:does the Intel one still slow down on AMD syste by eulernet · · Score: 1

    My understanding is that they never explicitly 'slowed down' AMD systems

    You are wrong:

    "Overview of CPU dispatching in Intel software"
    http://www.agner.org/optimize/blog/read.php?i=49#121

  33. Posting to cancel moderation. by Shemmie · · Score: 1

    Posting to cancel moderation.

  34. Re:does the Intel one still slow down on AMD syste by exomondo · · Score: 1

    But what if AMD's next chip kicked ass! Remember the Athlon and the later AthlonXPs were the fastest x86 chip you could buy a decade ago?

    It could theoretically happen, but the Athlon's success was as much about AMD coming up with a decent architecture as it was Intel simultaneously dropping the ball with the Netburst architecture.

  35. The only way to win is not to play by radarskiy · · Score: 1

    How good would the Intel compiler have to be at optimizing on AMD processors to avoid accusations that they were deliberately slowing things down?

    1. Re:The only way to win is not to play by sjames · · Score: 1

      You should know that you could get an instant (and large) performance boost by patching the produced binary to always assume it was running on Intel. So I would say not actively sandbagging the performance would be a reasonable start. That is, use the same code path for the same set of relevant feature flags.

  36. He measured single-threaded compiles?!!! by Bruce+Dawson · · Score: 2

    Visual C++ has this handy /MP option which tells the compiler to do multi-threaded compiles. On some of our build machines (with 16 cores) this gives an almost linear increase in build speeds. It's obvious from the author's discussion of multi-core that he is not aware of this option and did not use it.

    A performance benchmark which doesn't turn on the go-fast option is not going to produce meaningful results.

    The author also doesn't discuss debug symbols. VC++ generates debug symbols by default, whereas the other compilers do not. Generating builds without symbols is not a reasonable scenario for most builds, so this makes the file size comparisons rather meaningless.

  37. Re:does the Intel one still slow down on AMD syste by sjames · · Score: 1

    That is a form of explicitly slowing down and a rather blatant one. Like if someone decides to 'run' the 100 meter by hopping on one foot.

  38. Re:does the Intel one still slow down on AMD syste by sjames · · Score: 1

    Naturally, they wouldn't. It's just liars lying to people not technical enough to catch it.

  39. Re:does the Intel one still slow down on AMD syste by sjames · · Score: 1

    It's not really, but it is their job not to sandbag them. The ICC isn't a freebie you get with the CPU.