Skip to content

Instantly share code, notes, and snippets.

View adam-wyluda's full-sized avatar

Adam Wyłuda adam-wyluda

  • Białystok, Poland
View GitHub Profile
===================== 10k
[info] Benchmark Mode Cnt Score Error Units
[info] IntMapBenchmark.foreachDebox thrpt 15 8710.386 ± 496.310 ops/s
[info] IntMapBenchmark.foreachJavalib thrpt 15 5814.439 ± 39.378 ops/s
[info] IntMapBenchmark.foreachMacro thrpt 15 8304.898 ± 353.884 ops/s
[info] IntMapBenchmark.foreachSpecialized thrpt 15 8561.384 ± 388.886 ops/s
[info] IntMapBenchmark.foreachStdlib thrpt 15 3688.732 ± 22.746 ops/s
[info] IntMapBenchmark.getDirectDebox thrpt 15 33668882.974 ± 757403.570 ops/s
[info] Benchmark Mode Cnt Score Error Units
[info] IntMapBenchmark.foreachGeneric thrpt 15 2465.371 ± 193.889 ops/s
[info] IntMapBenchmark.foreachOffheap thrpt 15 6223.255 ± 12.441 ops/s
[info] IntMapBenchmark.foreachSpecialized thrpt 15 6591.076 ± 105.424 ops/s
[info] IntMapBenchmark.foreachStdlib thrpt 15 1031.980 ± 45.310 ops/s
[info] IntMapBenchmark.getNonExistingGeneric thrpt 15 53070040.709 ± 995047.045 ops/s
[info] IntMapBenchmark.getNonExistingOffheap thrpt 15 95934646.236 ± 2533274.886 ops/s
[info] IntMapBenchmark.getNonExistingSpecialized thrpt 15 104859601.467 ± 2646323.420 ops/s
[info] IntMapBenchmark.getNonExistingStdlib thrpt 15 117702819.904 ± 4038029.880 ops/s
@adam-wyluda
adam-wyluda / forge.gradle
Created July 8, 2013 19:31
Gradle Forge library source
// FORGE_LIBRARY_VERSION=2.0
allprojects {
afterEvaluate {
if (project.hasProperty('profile')) {
def profileFile = "$profile-profile.gradle"
if (new File(profileFile).exists()) {
project.apply from: profileFile
}
}
@adam-wyluda
adam-wyluda / forgeLibraryExample.gradle
Created July 6, 2013 14:58
Forge Gradle library example of use
// In parent project:
allprojects {
dependencies {
addManaged config: 'testCompile', group: 'junit', name: 'junit', version: '4.11'
}
}
// In the same project or in subprojects:
dependencies {
if (!project.hasProperty('_managedDependencies')) {
project._managedDependencies = [:]
}
def addManaged = {
project._managedDependencies[it.group + ':' + it.name] = [
'version': it.version,
'config' : it.config
]
}
def addDirect = {
@adam-wyluda
adam-wyluda / forgeOutput.gradle
Last active December 19, 2015 06:09
Gradle-Forge output script
task forgeOutput << {
def indentLevel = 0
def outputFile = new File('forge-output.xml').newPrintWriter()
def indent = {
indentLevel.times {
outputFile.print ' '
}
}
def output = {
indent()