Permalink
Browse files

--

  • Loading branch information...
lvv committed Jan 13, 2011
1 parent 31c0026 commit 0403ac76ee84647de1c377d3033e19736396a6ff
Showing with 12 additions and 3 deletions.
  1. +1 −0 .htaccess
  2. +8 −1 benchmark.h
  3. +2 −2 include.mk
  4. +1 −0 timer.h
@@ -0,0 +1 @@
Redirect permanent /project/lvvlib/array.html http://volnitsky.com/project/lvvlib/array/
@@ -39,8 +39,15 @@
if (r==(REPEAT-1)) cerr << "\t\t" << tick.min() << " \t" << NAME << endl;\
t.interval_ticks();
///////////////////////////////////////////////////////////////////////////////////////////// ONLY TICKS
// called multile time from test-cycle (cycle var: r)
#define PRINT1 \
tick[r] = ticks = t.interval_ticks() / float (N); sec = t.interval_cpu(); \
if (r==(REPEAT-1)) cerr << setprecision(3) << setw(8) << tick.min() ;\
t.interval_ticks();
//////////////////////////////////////////////////////////////////////////////////////////// PRINT CONFIG
#define BENCHMARK_HEADER cerr << "*** TYPE: " << LVV_STR(TYPE) << endl \
#define BENCHMARK_HEADER cerr /*<< "*** TYPE: " << LVV_STR(TYPE) << endl*/ \
<< "*** REPEAT:" << REPEAT << endl\
<< "*** ID: " << "" ID << endl; \
cerr << "\nValue\tSeconds\t\tTick/Cycle ... Min-Tick/Cycle \t Method\n" << setprecision(4);
@@ -105,8 +105,8 @@ b-% u-% : MAKEFLAGS += -B
gdb -q -x /tmp/t $<
%-d %-r: %
./$<
#%-d %-r: %
# ./$<
%-g : SPEED = DEBUG
@@ -36,6 +36,7 @@
///////////////////////////////////////////////////////////////////////////////////// READ_TICK
// TODO: new stop start seq --- http://blog.regehr.org/archives/330
#if defined(__x86_64) || defined (__i386)
uint64_t static read_tick() { // tested with with x86_64 only.

0 comments on commit 0403ac7

Please sign in to comment.