source: node_modules/pg-protocol/dist/b.js@ 6c7cfa6

main
Last change on this file since 6c7cfa6 was 62b2964, checked in by Klimentina Efremova <klimentina08642@…>, 2 weeks ago

Project Handcraft Marketplace

  • Property mode set to 100644
File size: 636 bytes
Line 
1"use strict";
2// file for microbenchmarking
3Object.defineProperty(exports, "__esModule", { value: true });
4const buffer_reader_1 = require("./buffer-reader");
5const LOOPS = 1000;
6let count = 0;
7const start = performance.now();
8const reader = new buffer_reader_1.BufferReader();
9const buffer = Buffer.from([33, 33, 33, 33, 33, 33, 33, 0]);
10const run = () => {
11 if (count > LOOPS) {
12 console.log(performance.now() - start);
13 return;
14 }
15 count++;
16 for (let i = 0; i < LOOPS; i++) {
17 reader.setBuffer(0, buffer);
18 reader.cstring();
19 }
20 setImmediate(run);
21};
22run();
23//# sourceMappingURL=b.js.map
Note: See TracBrowser for help on using the repository browser.