raynos at raynos-ThinkPad-T440p ~/projects/temp
$ node bind-perf.js
v8 version: 5.0.71.60
.bind() allocate time: 311
fbind() allocate time: 51
raynos at raynos-ThinkPad-T440p ~/projects/temp
$ node bind-perf.js
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
package staticConfig | |
import ( | |
"io/ioutil" | |
"reflect" | |
"encoding/json" | |
"github.com/buger/jsonparser" | |
"github.com/pkg/errors" |
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 go test to generate coverage into ./coverage/cover.out | |
# go test ./... -cover -coverprofile ./coverage/cover.out | |
.PHONY: view-istanbul | |
view-istanbul: | |
@go get github.com/axw/gocov/gocov | |
@gocov convert ./coverage/cover.out > coverage/gocov.json | |
@node ./scripts/gocov-to-istanbul-coverage.js ./coverage/gocov.json \ | |
> coverage/istanbul.json | |
istanbul report --root ./coverage --include "**/istanbul.json" html |
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
raynos at raynos-SVS15127PXB ~/uber/tchannel/node on hyperbahn-advertise | |
$ npm install | |
npm http GET https://registry.npmjs.org/crc | |
npm http GET https://registry.npmjs.org/bufrw | |
npm http GET https://registry.npmjs.org/error | |
npm http GET https://registry.npmjs.org/farmhash | |
npm http GET https://registry.npmjs.org/hexer | |
npm http GET https://registry.npmjs.org/json-stringify-safe | |
npm http GET https://registry.npmjs.org/lru-cache | |
npm http GET https://registry.npmjs.org/readable-stream |
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
raynos at raynos-SVS15127PXB ~/uber/tchannel/node on hyperbahn-advertise* | |
$ npm install | |
npm http request GET https://registry.npmjs.org/bufrw | |
npm http request GET https://registry.npmjs.org/crc | |
npm http request GET https://registry.npmjs.org/error | |
npm http request GET https://registry.npmjs.org/farmhash | |
npm http request GET https://registry.npmjs.org/hexer | |
npm http request GET https://registry.npmjs.org/json-stringify-safe | |
npm http request GET https://registry.npmjs.org/lru-cache | |
npm http request GET https://registry.npmjs.org/readable-stream |
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 through = require('through'); | |
var ss = require('stream-serializer').json; | |
var net = require('net'); | |
var dba = null; | |
var dbb = null; | |
function boilerplateCreateServer(db) { |
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 h = require("virtual-hyperscript"); | |
// Children as arguments[2] | |
h("div", { | |
"aria-hidden": true, | |
"ev-click": onClick, | |
}, [ | |
h("p", { | |
"aria-hidden": true, |
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'; | |
/*usage: | |
```js | |
var IOError = require('error/io'); | |
var fs = require('fs'); | |
fs.readFile(fPath, function (err, file) { | |
if (err) { |
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 createElement = require('virtual-dom/create-element.js'); | |
var diff = require('virtual-dom/diff'); | |
var patch = require('virtual-dom/patch'); | |
var document = require('global/document'); | |
/* | |
A PureWrapperWidget wraps a vnode in a container. | |
It can do all kinds of DOM specific logic on the | |
container if you wanted to. Like handling |