@sentio/runtime 2.5.0 → 2.5.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'fs';
3
- import * as console from 'console';
4
3
  const fileContent = fs.readFileSync('../../../chain/aptos/testdata/block-0-9999.json', { encoding: 'utf-8' });
5
4
  // console.log(fileContent)
6
5
  const contents = JSON.parse(fileContent);
@@ -1 +1 @@
1
- {"version":3,"file":"decode-benchmark.js","sourceRoot":"","sources":["../src/decode-benchmark.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,IAAI,CAAA;AACnB,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAElC,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,iDAAiD,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAA;AAC7G,2BAA2B;AAE3B,MAAM,QAAQ,GAAa,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;AAElD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;AAE5B,MAAM,IAAI,GAAiB,EAAE,CAAA;AAC7B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;IAC9B,IAAI,CAAC,IAAI,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;CAC7D;AAED,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;AAEzB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;AAExB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;IAC3B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;KACpD;CACF;AAED,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;AACtB,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,CAAC,CAAA","sourcesContent":["#!/usr/bin/env node\n\nimport fs from 'fs'\nimport * as console from 'console'\n\nconst fileContent = fs.readFileSync('../../../chain/aptos/testdata/block-0-9999.json', { encoding: 'utf-8' })\n// console.log(fileContent)\n\nconst contents: object[] = JSON.parse(fileContent)\n\nconsole.log(contents.length)\n\nconst raws: Uint8Array[] = []\nfor (const content of contents) {\n raws.push(new TextEncoder().encode(JSON.stringify(content)))\n}\n\nconsole.log('test begin')\n\nconst start = Date.now()\n\nfor (let i = 0; i < 10; i++) {\n for (const raw of raws) {\n const x = JSON.parse(new TextDecoder().decode(raw))\n }\n}\n\nconst end = Date.now()\nconsole.log((end - start) / 1000.0, 'seconds')\n"]}
1
+ {"version":3,"file":"decode-benchmark.js","sourceRoot":"","sources":["../src/decode-benchmark.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,IAAI,CAAA;AAEnB,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,iDAAiD,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAA;AAC7G,2BAA2B;AAE3B,MAAM,QAAQ,GAAa,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;AAElD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;AAE5B,MAAM,IAAI,GAAiB,EAAE,CAAA;AAC7B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;IAC9B,IAAI,CAAC,IAAI,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;CAC7D;AAED,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAA;AAEzB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;AAExB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE,EAAE;IAC3B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACtB,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;KACpD;CACF;AAED,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAA;AACtB,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,MAAM,EAAE,SAAS,CAAC,CAAA","sourcesContent":["#!/usr/bin/env node\n\nimport fs from 'fs'\n\nconst fileContent = fs.readFileSync('../../../chain/aptos/testdata/block-0-9999.json', { encoding: 'utf-8' })\n// console.log(fileContent)\n\nconst contents: object[] = JSON.parse(fileContent)\n\nconsole.log(contents.length)\n\nconst raws: Uint8Array[] = []\nfor (const content of contents) {\n raws.push(new TextEncoder().encode(JSON.stringify(content)))\n}\n\nconsole.log('test begin')\n\nconst start = Date.now()\n\nfor (let i = 0; i < 10; i++) {\n for (const raw of raws) {\n const x = JSON.parse(new TextDecoder().decode(raw))\n }\n}\n\nconst end = Date.now()\nconsole.log((end - start) / 1000.0, 'seconds')\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
3
  "license": "Apache-2.0",
4
- "version": "2.5.0",
4
+ "version": "2.5.1-rc.1",
5
5
  "scripts": {
6
6
  "compile": "tsc",
7
7
  "build": "yarn compile",
@@ -13,7 +13,7 @@
13
13
  "start_js": "ts-node-esm --files ./lib/processor-runner.js $PWD/../../debug/dist/lib.js"
14
14
  },
15
15
  "dependencies": {
16
- "@sentio/protos": "^2.5.0",
16
+ "@sentio/protos": "^2.5.1-rc.1",
17
17
  "command-line-args": "^5.2.1",
18
18
  "command-line-usage": "^6.1.3",
19
19
  "fs-extra": "^11.0.0",
@@ -46,5 +46,5 @@
46
46
  "!{lib,src}/tests",
47
47
  "!**/*.test.{js,ts}"
48
48
  ],
49
- "gitHead": "74abc85d23a04f46a68f787a708dd5f4b67e504c"
49
+ "gitHead": "67085a9cfa83c3c13b3f38cea88970680bd60b5c"
50
50
  }
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import fs from 'fs'
4
- import * as console from 'console'
5
4
 
6
5
  const fileContent = fs.readFileSync('../../../chain/aptos/testdata/block-0-9999.json', { encoding: 'utf-8' })
7
6
  // console.log(fileContent)