3 ms·
This is supported today in compiler explorer (https://godbolt.org https://godbolt.org, if you haven't played with it). Just choose a recent clang compiler and h
by debatem1 7y ago
This is supported today in compiler explorer (https://godbolt.org https://godbolt.org, if you haven't played with it). Just choose a recent clang compiler and hit "add tool"->"LLVM mca".
- davidtgoldblatt 7y agoExample usage on some code with interesting pipelining + resource contention properties: https://godbolt.org/z/11oyav https://godbolt.org/z/11oyav (The code is from the stream vbyte repo; see https://lemire.me/blog/2017/09/27/stream-vbyte-breaking-new-speed-records-for-integer-compression/ https://lemire.me/blog/2017/09/27/stream-vbyte-breaking-new-... ). Edit: Example interesting fact: the first iteration takes 35 cycles before it finishes; but the reciprocal throughput of the loop (assuming it executes a few times) is 5.3 cycles.