atomic-up.h speedup
Mathieu Desnoyers <[email protected]>
| Newsgroups | gmane.linux.kernel.tracing |
|---|---|
| Message-ID | <20061109164832.GA23019@Krystal> |
Hello, I just ran some tests to see the speedup given by using atomic-up.h on per cpu variables. On my 3GHz Pentium 4, it takes 255.83ns to log a 4 bytes event when the LOCK prefix is used (without atomic-up). When I enable my modified version, it drops to 205.63ns. Therefore, the speedup is : (205.63-255.83)/255.83 * 100% = -19.62 % (Test : 3*20000 loops of 4 bytes event log in flight recorder mode) Mathieu OpenPGP public key: http://krystal.dyndns.org:8080/key/compudj.gpg Key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68