pastebin - collaborative debugging tool
rovema.kpaste.net RSS


x86_rdtscp2_perf_32 on EPU-102054501-AugustToepfer
Posted by Anonymous on Mon 28th Nov 2022 08:01
raw | new post

  1. root@EPU-102054501-AugustToepfer:~/x86_rdtscp# ./x86_rdtscp2_perf_32
  2. #start.
  3. # pthread_setaffinity_np(), thread fixed to cpu 1
  4. # x86 rdtscp instruction:       iterations=1000000000   time=74.67705995699999732551 secs
  5. # |sched_getcpu()|:             iterations=1000000000   time=2298.83923825200008650427 secs
  6. #done.
  7. root@EPU-102054501-AugustToepfer:~/x86_rdtscp# ksh93 -c 'LC_NUMERIC=C ; print $(( 2298./74.6))'
  8. 30.8042895442359249

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at