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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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'} |
This file contains hidden or 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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12.5, | |
// font family with optional fallbacks | |
fontFamily: '"Meslo LG S for Powerline", Menlo, "DejaVu Sans Mono", "Lucida Console", monospace', | |
// terminal cursor background color (hex) | |
cursorColor: 'rgba(255,255,255,.4)', |
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:
This file contains hidden or 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 _ = require('lodash') | |
var async = require('async') | |
var GitHubApi = require('github') | |
// Token from your settings page on github | |
var token = 'YOURGITHUBTOKEN' | |
// Repository to migrate | |
var owner = 'upfrontIO' |
This file contains hidden or 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
#!/usr/bin/env node | |
// Embed semver module to make this script completely independent | |
// minified [email protected] | |
// https://github.com/npm/node-semver | |
var semver={};!function(r){function e(r,e){if(r instanceof i)return r;if("string"!=typeof r)return null;if(r.length>L)return null;var t=e?F[pr]:F[ar];if(!t.test(r))return null;try{return new i(r,e)}catch(n){return null}}function t(r,t){var n=e(r,t);return n?n.version:null}function n(r,t){var n=e(r.trim().replace(/^[=v]+/,""),t);return n?n.version:null}function i(r,e){if(r instanceof i){if(r.loose===e)return r;r=r.version}else if("string"!=typeof r)throw new TypeError("Invalid Version: "+r);if(r.length>L)throw new TypeError("version is longer than "+L+" characters");if(!(this instanceof i))return new i(r,e);B("SemVer",r,e),this.loose=e;var t=r.trim().match(e?F[pr]:F[ar]);if(!t)throw new TypeError("Invalid Version: "+r);if(this.raw=r,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>U||this.major<0)throw new TypeError("Invalid major version");if(this.m |