summaryrefslogtreecommitdiff
path: root/bench
AgeCommit message (Collapse)AuthorFilesLines
2011-02-22move MHz display to mhz.cDave Jones1-0/+12
2009-12-11Only calculate MHz on the first cpu, unless --all-cpus is passed.Dave Jones1-0/+7
2009-10-26Do the rdtsc cleanup how I meant to do it the first time.Dave Jones1-3/+1
2009-10-26Revert "cleanup the rdtsc type usage a little."Dave Jones2-4/+6
This reverts commit 3aa21b5d657644980e5acd1ae87461b46bb24790.
2009-10-26handle rdtsc wrapping.Dave Jones1-1/+6
2009-10-26cleanup the rdtsc type usage a little.Dave Jones2-6/+4
2008-12-24Fix up warnings. Add -Werror to catch new ones.Dave Jones1-1/+1
The lsmsr ones are kind of brute-force fixes because I'm lazy right now. We should possibly just use unsigned long longs everywhere, instead of all those u_int64_t's.
2008-08-29Only do CPU binding once per cpu.Dave Jones2-4/+0
2008-07-02Factor out cpu binding to a common function.Dave Jones2-22/+2
2008-07-02Make the benchmarks code work againDave Jones3-28/+34
2008-07-02Improve MHz estimation.Dave Jones1-23/+14
The fatal flaw was that rdtsc was wrapping too soon as we were only using 32bits of accuracy. Extending this to 64bit increases the resolution of the timing dramatically. We can also do away with all the other timing code as a bonus.
2008-07-02The estimate MHz routine is utterly busted.Dave Jones1-13/+35
At the least it should be binding to a CPU. Also, the usleep doesn't make the CPU busy, so replace it with a loop and wake up on an alarm after 3 seconds. It's still wildly inaccurate. Not sure what to do yet, but this is no more broken than it already was.
2008-07-02* Vastly rework the core cpuid handling on uniprocessor.Dave Jones1-1/+1
- No more nasty pages and pages of assembly - x86-64 'just works' * cpuid takes 32 bit registers. always. wtf were we passing around longs? * implement cpuid4() * start using cpuid4 to determine number of cores.
2008-07-01ridiculous amount of whitespace cleanupsDave Jones1-2/+2
2008-07-01Remove CVS tags from headers, remove pointless crap, and dead urls.Dave Jones1-2/+0
general cleanup
2007-06-06Solaris support.John Levon1-3/+8
2006-05-21Clean up warnings from sparseDave Jones2-4/+3
2005-08-27Remove support for non Linux OS's.Dave Jones1-39/+0
The ifdefs really were ugly, and I've not heard a report from a single user of this code since it was merged.
2003-06-09* bench/MHz.c: Rounding up to nearest 50MHz if MHz is within a 15MHzdavej1-1/+8
discrepancy of the nearest 50. Crap, needs improving.
2003-05-02* identify.c: Display MHz as GHz if >1000. Always do MHz calculation,davej1-8/+7
even if no --MHz is specified * Mhz.c: Store results in cpu struct. Use integer instead of fp.
2003-03-14* bench/bench.h: improve timing routine a little. still needs work.davej2-8/+12
* bench/benchmarks.c: remove lea (eax), 1(eax) test for now.
2003-02-07benchmark bswapdavej1-2/+3
2003-01-28Remove dud protosdavej1-3/+0
2003-01-27Drop broken benchmarks for nowdavej1-3/+0
2003-01-27Add nehemiahdavej1-0/+4
2003-01-23couple of extra benchmarksdavej1-1/+3
2003-01-18Various cleanups and addition of locked add benchmarkdavej4-61/+31
2002-12-22* bench/cpuid.c: Benchmark cpuid.davej4-1/+35
* bench/int80h.c: Report time in int not float.
2002-12-18split the int 0x80 and new sysenter stuff.davej4-13/+40
add --bench
2002-12-18new directory for benchmark type thingsdavej2-0/+135