1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
|
############################################################################
# Java production sources
############################################################################
api.build.dir = ${build.dir}/api
api.src.dir = ${basedir}/src/java
############################################################################
# Build artifacts
############################################################################
build.dir = ${basedir}/build
############################################################################
# Cobertura test coverage generator
############################################################################
cobertura.datafile = ${cobertura.dir}/cobertura.ser
cobertura.destdir = ${cobertura.dir}/data-output
cobertura.dir = ${tools.build.dir}/cobertura
cobertura.format = html
cobertura.todir = ${cobertura.dir}/classes
############################################################################
# Packaged artifacts
############################################################################
dist.dir = ${basedir}/dist
############################################################################
# Third-party tools
############################################################################
external.dir = ${basedir}/lib
external.import = ${external.dir}/config/external-config.xml
############################################################################
# FindBugs static analyzer
############################################################################
findbugs.failOnError = false
findbugs.outputFile = ${tools.build.dir}/findbugs.htm
findbugs.reportLevel = low
############################################################################
# Java compiler
############################################################################
javac.debug = true
javac.deprecation = on
javac.fork = no
javac.optimize = off
javac.source = 1.5
javac.target = 1.5
javac.verbose = no
############################################################################
# Javadoc tool
############################################################################
javadoc.build.dir = ${build.dir}/javadoc
############################################################################
# Manifest specification
############################################################################
manifest.impl.title = ${ant.project.name}
manifest.impl.url = http://code.google.com/p/concurrentlinkedhashmap/
manifest.impl.vendor = clhm
manifest.impl.version = 1.1_jdk5
############################################################################
# Java test sources
############################################################################
test.build.dir = ${build.dir}/test
test.src.dir = ${basedir}/unittest/src/java
############################################################################
# Java benchmark sources
############################################################################
benchmark.build.dir = ${build.dir}/benchmark
benchmark.src.dir = ${basedir}/benchmark/src/java
############################################################################
# Software tools output
############################################################################
tools.build.dir = ${build.dir}/tools
############################################################################
# PMD source code analyzer
############################################################################
pmd.failOnError = false
pmd.failOnRuleViolation = false
pmd.rulesetfiles = ${external.dir}/config/pmd-config.xml
pmd.shortFilenames = true
pmd.targetjdk = ${javac.target}
pmd.toFile = ${tools.build.dir}/pmd.htm
############################################################################
# TestNG unit testing
############################################################################
testng.dumpCommand = false
testng.haltonfailure = true
testng.haltonskipped = true
testng.outputdir = ${tools.build.dir}/testng
# Test groups:
# - development: Validate correctness
# - efficiency: Compare eviction algorithms
# - memoryLeak: Runs forever to check for memory leaks
testng.groups = development
# All tests
test.debugMode = false
# efficiency benchmark
efficiency.maximumCapacity = 5000
efficiency.workingSetSize = 20000
efficiency.distribution = Uniform
efficiency.distribution.uniform.lower = 0
efficiency.distribution.uniform.upper = 1000
efficiency.distribution.exponential.mean = 1000
efficiency.distribution.gaussian.mean = 1000
efficiency.distribution.gaussian.sigma = 10
efficiency.distribution.poisson.mean = 1000
efficiency.distribution.zipfian.skew = 1.3
# concurrency tests
multiThreaded.maximumCapacity = 50000
multiThreaded.iterations = 40000
multiThreaded.nThreads = 20
multiThreaded.timeout = 30
############################################################################
# JBoss Cache Benchmark Framework
############################################################################
cacheBenchFwk.heap = 512m
cacheBenchFwk.path = empty.path
cacheBenchFwk.config.dir = ${basedir}/benchmark/cache-benchmark-framework/conf
cacheBenchFwk.config.file = cachebench-local.xml
cacheBenchFwk.report.chart = putget
cacheBenchFwk.report.dir = ${tools.build.dir}/benchmark
cacheBenchFwk.report.file = LocalMode-java5
# LHM
cacheBenchFwk.product = LinkedHashMap
cacheBenchFwk.wrapper = org.cachebench.cachewrappers.LHMCacheWrapper
cacheBenchFwk.config = lhm-local.properties
# CHM
#cacheBenchFwk.product = ConcurrentHashMap
#cacheBenchFwk.wrapper = org.cachebench.cachewrappers.CHMCacheWrapper
#cacheBenchFwk.config = chm-local.properties
# CLHM
#cacheBenchFwk.product = ConcurrentLinkedHashMap
#cacheBenchFwk.wrapper = org.cachebench.cachewrappers.CLHMCacheWrapper
#cacheBenchFwk.config = clhm-local.properties
############################################################################
# Caliper Benchmark
############################################################################
caliper.heap = 64m
caliper.warmupMillis = 3000
caliper.runMillis = 1000
caliper.timeUnit = ns
caliper.benchmark.numberOfThreads = 16
caliper.benchmark.concurrencyLevel = 16
caliper.benchmark.initialCapacity = 100
caliper.benchmark.maximumCapacity = 100
caliper.scenario = GetPut
caliper.scenario.getPut.readRatio = 100
|