Changeset 583 for Tests


Ignore:
Timestamp:
12/03/13 19:46:39 (8 years ago)
Author:
BegemoT
Message:
 
Location:
Tests/JAVA/logger/src/main/java/com/db/logger/benchmarks
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Tests/JAVA/logger/src/main/java/com/db/logger/benchmarks/AtomicBenchmark.java

    r581 r583  
    1919public class AtomicBenchmark { 
    2020        public static final int WRITER_BACKOFF = Integer.getInteger( "writer-backoff", 0 ); 
     21 
     22        static { 
     23                System.err.println( "backoff=" + WRITER_BACKOFF ); 
     24        } 
    2125 
    2226        public AtomicInteger counter; 
  • Tests/JAVA/logger/src/main/java/com/db/logger/benchmarks/SequencerBenchmark.java

    r581 r583  
    2525        public static final WaitingStrategy WAITING_STRATEGY = new WaitingStrategy.LimitedSpinning( 1024 * 1024 ); 
    2626 
     27        static { 
     28                System.out.printf( "len=%d, record=%d, backoff=%d\n", LENGTH, CELLS_PER_RECORD, WRITER_BACKOFF ); 
     29        } 
     30 
    2731        public static final AtomicInteger ID_GENERATOR = new AtomicInteger( 1 ); 
    2832 
     
    3438                } 
    3539        }; 
     40 
    3641 
    3742        public DemultiplexingSequencer sequencer; 
  • Tests/JAVA/logger/src/main/java/com/db/logger/benchmarks/ThreadLocalBenchmark.java

    r581 r583  
    1414@State( Scope.Group ) 
    1515public class ThreadLocalBenchmark { 
    16         public static final int WRITER_BACKOFF = Integer.getInteger( "writer-backoff", 0 ); 
     16//      public static final int WRITER_BACKOFF = Integer.getInteger( "writer-backoff", 0 ); 
    1717 
    1818        public ThreadLocal<Long> counter = new ThreadLocal<Long>(){ 
  • Tests/JAVA/logger/src/main/java/com/db/logger/benchmarks/VolatileBenchmark.java

    r581 r583  
    1818public class VolatileBenchmark { 
    1919        public static final int WRITER_BACKOFF = Integer.getInteger( "writer-backoff", 0 ); 
     20 
     21        static { 
     22                System.err.println( "backoff=" + WRITER_BACKOFF ); 
     23        } 
    2024 
    2125        public volatile long counter; 
Note: See TracChangeset for help on using the changeset viewer.