- root@EPU-102054501-AugustToepfer:~/x86_rdtscp# ./x86_rdtscp2_perf_32
- #start.
- # pthread_setaffinity_np(), thread fixed to cpu 1
- # x86 rdtscp instruction: iterations=1000000000 time=74.67705995699999732551 secs
- # |sched_getcpu()|: iterations=1000000000 time=2298.83923825200008650427 secs
- #done.
- root@EPU-102054501-AugustToepfer:~/x86_rdtscp# ksh93 -c 'LC_NUMERIC=C ; print $(( 2298./74.6))'
- 30.8042895442359249
x86_rdtscp2_perf_32 on EPU-102054501-AugustToepfer
Posted by Anonymous on Mon 28th Nov 2022 08:01
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.