Comments (3)
[xtrader@XXXX ~]$ ./timer
init tsc_ghz: 3.00000194999074
rdsys_latency: 12.7522477522478, rdtsc_latency: 5.08224775224775, rdns_latency: 5.67424775224775, tmp: 9177272454853256280
calibrate_latency: 67, tsc_ghz: 3.00000194999074, b2c: 61, c2d: 6, err: 0, rdsysns_latency: 62
calibrate_latency: 11, tsc_ghz: 3.00000194999074, b2c: 154, c2d: -98, err: -98, rdsysns_latency: 51
calibrate_latency: 12, tsc_ghz: 3.00000194999074, b2c: 258, c2d: -213, err: -213, rdsysns_latency: 40
calibrate_latency: 11, tsc_ghz: 3.00000194999074, b2c: 386, c2d: -332, err: -332, rdsysns_latency: 49
calibrate_latency: 13, tsc_ghz: 3.00000194999074, b2c: 490, c2d: -451, err: -451, rdsysns_latency: 34
calibrate_latency: 12, tsc_ghz: 3.00000194999074, b2c: 608, c2d: -567, err: -567, rdsysns_latency: 36
calibrate_latency: 181, tsc_ghz: 3.00000054699048, b2c: 743, c2d: -692, err: -692, rdsysns_latency: 46
calibrate_latency: 12, tsc_ghz: 3.00000054699048, b2c: 615, c2d: -565, err: -565, rdsysns_latency: 45
calibrate_latency: 11, tsc_ghz: 3.00000054699048, b2c: 491, c2d: -449, err: -449, rdsysns_latency: 37
calibrate_latency: 12, tsc_ghz: 3.00000054699048, b2c: 383, c2d: -332, err: -332, rdsysns_latency: 46
calibrate_latency: 12, tsc_ghz: 3.00000054699048, b2c: 255, c2d: -215, err: -215, rdsysns_latency: 35
calibrate_latency: 12, tsc_ghz: 3.00000054699048, b2c: 144, c2d: -94, err: -94, rdsysns_latency: 45
calibrate_latency: 209, tsc_ghz: 3.00000124999077, b2c: 17, c2d: 12, err: 0, rdsysns_latency: 24
calibrate_latency: 12, tsc_ghz: 3.00000124999077, b2c: 27, c2d: 21, err: 0, rdsysns_latency: 43
calibrate_latency: 5, tsc_ghz: 3.00000124999077, b2c: 21, c2d: 20, err: 0, rdsysns_latency: 36
calibrate_latency: 5, tsc_ghz: 3.00000124999077, b2c: 33, c2d: 21, err: 0, rdsysns_latency: 49
calibrate_latency: 5, tsc_ghz: 3.00000124999077, b2c: 15, c2d: 21, err: 0, rdsysns_latency: 31
calibrate_latency: 5, tsc_ghz: 3.00000124999077, b2c: 14, c2d: 12, err: 0, rdsysns_latency: 21
calibrate_latency: 120, tsc_ghz: 3.00000125899078, b2c: 15, c2d: 13, err: 0, rdsysns_latency: 23
calibrate_latency: 5, tsc_ghz: 3.00000125899078, b2c: 31, c2d: 20, err: 0, rdsysns_latency: 46
calibrate_latency: 5, tsc_ghz: 3.00000125899078, b2c: 31, c2d: 20, err: 0, rdsysns_latency: 46
calibrate_latency: 6, tsc_ghz: 3.00000125899078, b2c: 32, c2d: 20, err: 0, rdsysns_latency: 47
[xtrader@XXX ~]$ sudo lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 18
On-line CPU(s) list: 0-17
Thread(s) per core: 1
Core(s) per socket: 18
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz
Stepping: 7
CPU MHz: 4999.877
CPU max MHz: 5000.0000
CPU min MHz: 1200.0000
from tscns.
服务器提供稳定的TSC。你说的频率不是一个层次问题,CPU超频运行的频率和系统TSC计算时钟频率不是一个东西
from tscns.
tsc频率一般是cpu的基础频率,不会随超频而改变。
from tscns.
Related Issues (14)
- Use constructor instead of init function HOT 1
- 含有编译时错误 HOT 1
- 如果不定期calibrate(),int64_t转double做运算有数值溢出或精度损失风险 HOT 1
- Concurrency safe? HOT 1
- 想请教一下,README中提到的时钟速度跳变,在什么情况下会发生呢 HOT 1
- Will this work on a Raspberry PI or arm64 architectures HOT 1
- 关于sleep影响计时准确性的问题 HOT 1
- Need mfence after builtin_ia32_rtscp HOT 1
- rdns of HOT 2
- do it like the kernel HOT 3
- 请教误差范围 HOT 7
- 精度不高的一个简单解决方案 HOT 3
- 请教为什么从rdtscp改回了rdtsc HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tscns.