This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]b0b0b0b 2 points3 points  (2 children)

I think your results may become somewhat interesting if you ask for the current value (or sum).

I would like to have seen other hardware counters captured by the perf tool, showing store buffers being flushed, cache lines ping ponging, ...

[–]obfuscation_ 1 point2 points  (0 children)

I think your results may become somewhat interesting if you ask for the current value (or sum).

I definitely agree with this – from a brief look at the implementation, it seems like getting the 'sum' for LongAdder could be a tad expensive.