Here's the results for 100000 rounds for taskset 1 perf record -F10000 -e branch-misses -e cache-misses -e cache-references target/release/RustTokioBenchmark (a)sync; perf report --stat though:
async
Task 2 min roundtrip time: 532
[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0,033 MB perf.data (117 samples) ]
...
branch-misses stats:
SAMPLE events: 54
cache-misses stats:
SAMPLE events: 27
cache-references stats:
SAMPLE events: 36
sync Thread 2 min roundtrip time: 7096
[ perf record: Woken up 5584 times to write data ]
[ perf record: Captured and wrote 0,367 MB perf.data (7418 samples) ]
...
branch-misses stats:
SAMPLE events: 6577
cache-misses stats:
SAMPLE events: 159
cache-references stats:
SAMPLE events: 682