Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#silifuzz Use RDPID instruction to get CPUID if available. This saves…
… about 20ns per snapshot execution. This CL was tested on an 8-core AMD cloud VM: Benchmark Time(ns) CPU(ns) Iterations ------------------------------------------------------------------ BM_nolibc_GetCPUId 1.95 1.95 26545270 BM_nolibc_GetCPUId 1.89 1.89 33611922 BM_nolibc_GetCPUId 1.89 1.89 33762844 BM_nolibc_GetCPUId 1.91 1.91 32848973 BM_nolibc_GetCPUId 1.89 1.89 33694179 BM_nolibc_GetCPUId 1.89 1.89 33843338 BM_nolibc_GetCPUId 1.96 1.96 33985658 BM_nolibc_GetCPUId 1.88 1.88 33932995 BM_nolibc_GetCPUId 1.89 1.88 33195933 BM_nolibc_GetCPUId 1.88 1.88 34041251 BM_nolibc_GetCPUId 1.90 1.90 33954450 BM_nolibc_GetCPUId_mean 1.90 1.90 363416813 BM_nolibc_GetCPUId_stddev 0.025 0.025 363416813 base CL 625806098: Benchmark Time(ns) CPU(ns) Iterations ------------------------------------------------------------------ BM_nolibc_GetCPUId 22.3 22.2 2639063 BM_nolibc_GetCPUId 22.2 22.1 2642065 BM_nolibc_GetCPUId 22.1 22.1 2614901 BM_nolibc_GetCPUId 22.2 22.1 2632161 BM_nolibc_GetCPUId 22.1 22.1 2640895 BM_nolibc_GetCPUId 22.2 22.2 2606530 BM_nolibc_GetCPUId 22.1 22.1 2642683 BM_nolibc_GetCPUId 22.1 22.0 2641231 BM_nolibc_GetCPUId 22.1 22.1 2632380 BM_nolibc_GetCPUId 22.2 22.1 2646701 BM_nolibc_GetCPUId 22.1 22.1 2631796 BM_nolibc_GetCPUId 22.1 22.2 2632026 BM_nolibc_GetCPUId_mean 22.1 22.1 31602432 BM_nolibc_GetCPUId_stddev 0.069 0.050 31602432 PiperOrigin-RevId: 625850853
- Loading branch information