Reply to comment

No gains using pre-increment with -O2

I'm getting results similar although not quite as impressive for the no optimization case. However my results are completely different for the -O2 build showing nearly identical results for post/pre-increment (115.88725s vs 115.80723s). This is on an Intel Xeon 3060 @ 2.4 and linux 2.6.28 with gcc 4.3.3. My best guess is this is due to either a CPU or a compiler difference. It would be interesting to get the specs on the target this was tested on for comparison.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.
  • You may post PHP code. You should include <?php ?> tags.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo]. PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Images can be added to this post.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.