Skip to content

Instantly share code, notes, and snippets.

View junkdog's full-sized avatar
🐥

Adrian Papari junkdog

🐥
  • Stockholm
View GitHub Profile
@junkdog
junkdog / BitsetBenchmark.java
Last active August 16, 2016 10:49
decoding bits to IntBag, benchmarking artemis-odb's BitVector
@BenchmarkMode(Mode.Throughput)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@Warmup(iterations = 3, time = 1, timeUnit = SECONDS)
@Measurement(iterations = 5, time = 1, timeUnit = SECONDS)
@Fork(1)
@Threads(1)
@State(Scope.Thread)
/*
# Run complete. Total time: 00:04:08
  • checkbox
  • hmm
package com.artemis.generated;
import com.artemis.ComponentMapper;
import com.artemis.EntityTransmuter;
import com.artemis.World;
import com.artemis.annotations.AspectDescriptor;
import com.artemis.component.CompA;
import com.artemis.component.CompB;
import com.artemis.component.CompC;
import com.artemis.component.ComponentX;
@junkdog
junkdog / BitVectorBenchmark.log
Last active June 28, 2017 22:27
bitvector kotlin benchmarks
# Run complete. Total time: 00:05:29
Benchmark (fillRate) Mode Cnt Score Error Units
BitVectorBenchmark.artemis_foreach_intbag .01 thrpt 5 6783.714 ± 37.221 ops/ms
BitVectorBenchmark.artemis_foreach_intbag .05 thrpt 5 2565.076 ± 68.773 ops/ms
BitVectorBenchmark.artemis_foreach_intbag .10 thrpt 5 1809.597 ± 408.815 ops/ms
BitVectorBenchmark.artemis_foreach_intbag .20 thrpt 5 937.769 ± 10.426 ops/ms
BitVectorBenchmark.artemis_foreach_intbag .40 thrpt 5 634.629 ± 7.420 ops/ms
BitVectorBenchmark.artemis_foreach_intbag .50 thrpt 5 535.599 ± 11.867 ops/ms
BitVectorBenchmark.artemis_foreach_intbag .60 thrpt 5 450.715 ± 3.111 ops/ms
Result "net.onedaybeard.bitvector.BitVectorBenchmark.artemis_foreach_intbag":
289.513 ±(99.9%) 3.925 ops/ms [Average]
(min, avg, max) = (288.385, 289.513, 291.137), stdev = 1.019
CI (99.9%): [285.588, 293.438] (assumes normal distribution)
Secondary result "net.onedaybeard.bitvector.BitVectorBenchmark.artemis_foreach_intbag:·perf":
Perf stats:
--------------------------------------------------
4253,782535 task-clock (msec) # 0,516 CPUs utilized
// https://twitter.com/Donzanoid/status/903424376707657730
vec3 Geoffrey(float t) {
vec3 r = t * 2.1 - vec3(1.8, 1.14, 0.3);
return 1.0 - r * r;
}
#!/usr/bin/env bash
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\
function register_clang_version {
local version=$1
local priority=$2
update-alternatives \
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \
pipeline {
agent {
docker {
image 'junkdog/mvn-3-jdk8'
// -u root for /root/.m2 to be resolved
args '-v /root/.m2:/root/.m2 -u root'
}
}
options {
skipStagesAfterUnstable()
package org.bouncycastle.crypto;
/**
* A wrapper class that allows block ciphers to be used to process data in
* a piecemeal fashion. The BufferedBlockCipher outputs a block only when the
* buffer is full and more data is being added, or on a doFinal.
* <p>
* Note: in the case where the underlying cipher is either a CFB cipher or an
* OFB one the last block may not be a multiple of the block size.
package sift.instrumenter.deprecated
import sift.core.entity.Entity
import sift.core.InstrumenterService
import sift.core.api.Action
import sift.core.api.Dsl
import sift.core.api.Dsl.classes
import sift.core.entity.EntityService
import sift.core.tree.EntityNode
import sift.core.tree.Tree