Average latency of atomics cmpxchg instructions on Intel Cpus

前端 未结 5 491
独厮守ぢ
独厮守ぢ 2020-12-31 16:09


I am looking for some reference on average latencies for lock cmpxchg instruction for various intel processors. I am not able to locate any good reference on the topic

5条回答
  •  独厮守ぢ
    2020-12-31 16:26

    I've been trying to benchmark CAS and DCAS in terms of NOP.

    I have some results, but I don't trust them yet - verification is ongoing.

    Currently, I see on Core i5 for CAS/DCAS 3/5 NOPs. On Xeon, I see 20/22.

    These results may be completely incorrect - you were warned.

提交回复
热议问题