flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > Accurate multi-threaded 64-bit counters on a 32-bit machine Goto page Previous 1, 2, 3 |
Author |
|
hopcode 04 May 2013, 19:29
and one should stay content with the timing of the oldsafe proc, once
considering the recomended Intel's solution. from Example 8-4. http://www.intel.com/content/dam/doc/manual/64-ia-32-architectures-optimization-manual.pdf on my Yorkfield it times at least 3x slower !! some little improvement, by using PAUSE to signal entering the wait-loop for the new safe proc, but only unstable 10%. it may work better on older processors though. _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
04 May 2013, 19:29 |
|
revolution 06 May 2013, 12:11
hopcode: Thanks for the update. But note that your optimisations are probably only sensible for this particular test code. In a real program I doubt that such things would be necessary, and might even be harmful to performance. Only proper testing would show which. Although it is good to have alternatives available for people to try,
But perhaps this thread is starting to go a little bit away from the original purpose of this topic? The only thing important is the accuracy. Having the timings optimised for a particular CPU/mobo combinations is not important or interesting unless there is an improvement that is workable on all CPUs, and is going to give at least double the performance. If not, than all this extra time messing about is probably wasted in the long term scheme of things. |
|||
06 May 2013, 12:11 |
|
hopcode 06 May 2013, 12:59
yeap, agree. from my side i can say those tests being merely a confirmation after some theoretical acquaintance with the CPU-specs.
i have seen sometimes professionals doing fast calculations on fingers without needing to write/test a single line of code; and results showing not that large discrepancy from reality. that is but what i just like to learn, because there is a lot of different new and newer hardware out there. having then several manuals and specs doesnt help, when all time is wasted for testing. _________________ ⠓⠕⠏⠉⠕⠙⠑ |
|||
06 May 2013, 12:59 |
|
Goto page Previous 1, 2, 3 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.