NANOBENCH version 1
# benchFunction
end ~220 ms (0 s + 219586469 ns)
# benchBind
end ~3.19 s (3 s + 186017098 ns)
# benchObject
end ~90 ms (0 s + 89620728 ns)
🏳️🌈
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM multiarch/alpine:x86_64-v3.6 as syslog-ng | |
ENV VERSION=3.12.1 | |
RUN apk --no-cache add ca-certificates glib pcre eventlog libressl json-c && \ | |
apk add --no-cache --virtual .build-deps alpine-sdk wget build-base glib-static glib-dev eventlog-dev pcre-dev libressl-dev python2-dev json-c-dev && \ | |
wget -O "/tmp/syslog-ng-$VERSION.tar.gz" "https://github.com/balabit/syslog-ng/releases/download/syslog-ng-$VERSION/syslog-ng-$VERSION.tar.gz" && \ | |
cd /tmp && \ | |
tar zxfv "syslog-ng-$VERSION.tar.gz" && \ | |
cd "syslog-ng-$VERSION" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@version: 3.12 | |
options { | |
chain_hostnames(0); | |
time_reopen(10); | |
time_reap(360); | |
log_fifo_size(2048); | |
create_dirs(yes); | |
group(adm); | |
perm(0640); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var async = require('async') | |
var ms = require('ms') | |
var _ = require('lodash') | |
var config = require('./config') | |
var Docker = require('dockerode') | |
var docker = new Docker(config.docker) | |
var api | |
api = | |
module.exports = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs') | |
var jp = require('jsonpointer') | |
var tag = process.env.TAG | |
var branch = process.env.BRANCH | |
if (!tag || !branch) { | |
console.error([ | |
'Error: BRANCH and TAG environment variables are required.', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var util = require('util') | |
var EventEmitter = require('events').EventEmitter | |
var _ = require('lodash') | |
var Aggregate = require('eventsourced-object') | |
function InMemoryRepository (Model) { | |
this.eventCount = 0 | |
this._Model = Model | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stream = require('stream') | |
var util = require('util') | |
module.exports = UpdateStream | |
util.inherits(UpdateStream, stream.Writable) | |
function UpdateStream (trx, tableName, transformMethod) { | |
stream.Writable.call(this, {objectMode: true}) | |
this.trx = trx | |
this.tableName = tableName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
var bench = require('fastbench') | |
var fs = require('fs') | |
var dest = fs.createWriteStream('/dev/null') | |
var plog = require('../pino')(dest) | |
var plogMaster = require('../pino-master')(dest) | |
var twoKeyObject = {foo: 'bar', bar: 'foo'} | |
var threeKeyObject = {foo: 'bar', bar: 'foo', qux: 'quz'} |
I hereby claim:
- I am marcbachmann on github.
- I am marcbachmann (https://keybase.io/marcbachmann) on keybase.
- I have a public key whose fingerprint is C88E A2F7 009D 8512 AB43 F0E6 0018 84E1 4410 67E1
To claim this, I am signing this object: