We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b90cfb6 commit 57e2b51Copy full SHA for 57e2b51
extensions/ql-vscode/test/benchmarks/jsonl-reader.bench.ts
@@ -1,3 +1,17 @@
1
+/**
2
+ * Benchmarks the jsonl-parser against a reference implementation and checks that it generates
3
+ * the same output.
4
+ *
5
+ * Usage:
6
7
+ * ts-node json-reader.bench.ts [evaluator-log.summary.jsonl] [count]
8
9
+ * The log file defaults to a small checked-in log and count defaults to 100
10
+ * (and should be lowered significantly for large files).
11
12
+ * At the time of writing it is about as fast as the synchronous reference implementation,
13
+ * but doesn't run out of memory for large files.
14
+ */
15
import { readFile } from "fs-extra";
16
import { readJsonlFile } from "../../src/common/jsonl-reader";
17
import { performance } from "perf_hooks";
0 commit comments