# 1 thread
$ time bench()
real 0m46.143s
user 0m45.798s
sys 0m0.188s
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
const bitcoin = require('bitcoinjs-lib') | |
const regcli = require('regtest-client') | |
const bs58 = require('bs58check') | |
const APIURL = process.env['APIURL'] || 'http://127.0.0.1:8080/1'; | |
const APIPASS = process.env['APIPASS'] || 'satoshi'; | |
const regtestUtils = new regcli.RegtestUtils({ APIURL, APIPASS }) | |
const network = bitcoin.networks.regtest | |
const rootNode = bitcoin.bip32.fromBase58('tprv8ZgxMBicQKsPfBD2PErVQNAqcjwLBg8fWZSX8qwx1cRyFsDrgvRDLqaT5Rf2N4VEXZDAkpWeJ9vXXREbAUY67RtoZorrfxqgDMxsb6FiBFH', network) | |
async function main() { |
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
sudo du -h -a / 2>/dev/null | sort -h -r |
lnbc11780n1pwaqwjepp56979uu5m0hr6z7nu9dgglt76w46urrntd6p9hg0d5vn985pt8d9qdp6gpk826m9vd5xjmrywvsy2mr9vd68yatdyp6x2um5ypxyugrfdemx76trv5cqzynxqyz5vqrzjq2gvezz8qsrnk2mr8a5ls5hgeg4rwestkdv6r6rp726gwcxznzk9xzfh4uqqtwsqqqqqqqwzqqqqqqgq9qerhlwfd6az59sm2m5eaywtarg0gynj4zh9njhwqser43twfj850rcz5kgr4yudwg73ncy56mvctusu28ar2c5pafe99yt29wak0dsrcp5juth7
My Fee
https://etherscan.io/tx/0xd50d3392352e6376421bdac847f92ea76433fc5dd277a2d998d4d7f2091c4394
Bob Deposit
https://kmdexplorer.io/tx/c763d3767c00be3eb227935872c5927650bef027ae09769155761888489f6511
Alice Payment
https://etherscan.io/tx/0x20457e3797e452c534818ceba088335a04a8987192ead2ee815833221f766d32
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
{ | |
"uuid": "0ba313922acf3df65579f0c969198ed20c401bc5aeb89656ee85b54574665a1f", | |
"requestId": 2035240010, | |
"quoteId": 1054714439, | |
"timeStarted": 1536076648826, | |
"orderType": "buy", | |
"status": "completed", | |
"statusFormatted": "completed", | |
"isActive": false, | |
"error": false, |
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
{ | |
"uuid": "d0b0ddb6a45d4596f946a01bd8d163f516890d4411b96329bdbd95a914218553", | |
"requestId": 2349317043, | |
"quoteId": 2092844076, | |
"timeStarted": 1534957099421, | |
"orderType": "buy", | |
"status": "completed", | |
"statusFormatted": "completed", | |
"error": false, | |
"progress": 1, |
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
{ | |
"uuid": "51ead533d50be7d4125f961dd0f0e873136ebec3e36f51f23419c3b5869d6abf", | |
"requestId": 3630423274, | |
"quoteId": 2859345951, | |
"timeStarted": 1534698328332, | |
"orderType": "buy", | |
"status": "completed", | |
"statusFormatted": "completed", | |
"error": { | |
"code": -9997, |
Running base64-js benchmarks on Node.js v8.1.2 vs v8.2.0-rc.1
$ node --version
v8.1.2
$ node bench/basic.js
decode ms, decode ops/ms, encode ms, encode ops/ms
8 166667 37 36036.10810810811