on Mac Book Air (OSX 10.7.5) 1.6 GHz Intel Core i5 Memory 4GB
$ go test -bench .
PASS
BenchmarkClosure 100000000 11.5 ns/op
BenchmarkMutexClosure 50000000 35.3 ns/op
BenchmarkAtomicClosure 100000000 17.8 ns/op
package main | |
import ( | |
"log" | |
"runtime" | |
"sync" | |
) | |
var debug func(a ...interface{}) |
on Mac Book Air (OSX 10.7.5) 1.6 GHz Intel Core i5 Memory 4GB
$ go test -bench .
PASS
BenchmarkClosure 100000000 11.5 ns/op
BenchmarkMutexClosure 50000000 35.3 ns/op
BenchmarkAtomicClosure 100000000 17.8 ns/op
new Promise(function (resolve) { | |
var pp = new Promise(function(r) { | |
setTimeout(function() { | |
r('aa'); | |
}, 100); | |
}); | |
setTimeout(function() { | |
resolve(pp); | |
}, 100); |
var db = { | |
set: function(key, obj) { | |
localStorage.setItem(key, JSON.stringify(obj)); | |
}, | |
get: function(key) { | |
var tmp = localStorage.getItem(key); | |
return (tmp === undefined) ? null : JSON.parse(tmp); | |
}, |
module('localStorage',{ | |
setup: function() { | |
localStorage.clear(); | |
}, | |
teardown: function() { | |
localStorage.clear(); | |
} | |
}); | |
test('localStorage exists and has methods',function(){ |
log = function(a,b){ | |
if(console.log){(!b)? console.log(a) : console.log(a);console.log(b);} | |
}; | |
module('je', { | |
testdata: null, | |
docType: null, | |
docId: null, | |
/** |
log = function(a,b){ | |
// if(console.log){(a)? console.log(a) : console.log(a);console.log(b);} | |
}; | |
var je = { | |
baseURI: '/_je/', | |
POST: function(docType, data, callback, error) { | |
var jsonparam = { _doc: JSON.stringify(data) }; | |
$.ajax({ | |
type: 'post', |
/*** | |
* @function make the parallel request filters and finish with the last filter. | |
* | |
* @example | |
* | |
* misc.parallel( | |
* func1, func2, func3, func4 | |
* ); | |
* | |
* func1 ---+ |
From 67b1009502510dbbcdfbfe1621565e81d7422be7 Mon Sep 17 00:00:00 2001 | |
From: Jxck <block.rxckin.beats@gmail.com> | |
Date: Sat, 12 Mar 2011 23:14:34 +0900 | |
Subject: [PATCH] remove pids dir | |
--- | |
bin/express | 1 - | |
1 files changed, 0 insertions(+), 1 deletions(-) | |
diff --git a/bin/express b/bin/express |