|
@ -5,7 +5,7 @@ var data = random(1e6).toString('base64') |
|
|
var start = Date.now() |
|
|
var start = Date.now() |
|
|
var raw = b64.toByteArray(data) |
|
|
var raw = b64.toByteArray(data) |
|
|
var middle = Date.now() |
|
|
var middle = Date.now() |
|
|
var data = b64.fromByteArray(raw) |
|
|
data = b64.fromByteArray(raw) |
|
|
var end = Date.now() |
|
|
var end = Date.now() |
|
|
|
|
|
|
|
|
console.log('decode ms, decode ops/ms, encode ms, encode ops/ms') |
|
|
console.log('decode ms, decode ops/ms, encode ms, encode ops/ms') |
|
|