Skip to content

Commit fa3d54c

Browse files
committed
Add timing to the example as well
1 parent 2f812f2 commit fa3d54c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,12 @@ import { BoilingData } from "@boilingdata/node-boilingdata";
5050
async function main() {
5151
const bdInstance = new BoilingData({ username: process.env["BD_USERNAME"], password: process.env["BD_PASSWORD"] });
5252
await bdInstance.connect();
53+
const start = Date.now();
5354
const sql = `SELECT COUNT(*) FROM parquet_scan('s3://boilingdata-demo/demo.parquet');`;
5455
const rows = await bdInstance.execQueryPromise({ sql });
56+
const stop = Date.now();
5557
console.log(JSON.parse(JSON.stringify(rows)));
58+
console.log("Query time measured from this script (ms):", stop - start);
5659
await bdInstance.close();
5760
}
5861

0 commit comments

Comments
 (0)