Skip to content

Commit

Permalink
ci(perf): Fix imports in perf script
Browse files Browse the repository at this point in the history
  • Loading branch information
smessie committed Oct 17, 2024
1 parent bc5948d commit a26e3d0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
15 changes: 7 additions & 8 deletions perf/perftest.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
const Benchmark = require("benchmark");
const { replicateLDES } = require("../dist/lib/client");
const { intoConfig } = require("../dist/lib/config");
const { Tree } = require("../dist/tests/helper");
const { Parser } = require("n3");
const { TREE } = require("@treecg/types");
import Benchmark from "benchmark";
import { Parser } from "n3";
import { Tree } from "../dist/tests/helper.js";
import { TREE } from "@treecg/types";
import { intoConfig, replicateLDES } from "../dist/lib/client.js";

// Increase the max listeners to prevent warnings
process.setMaxListeners(20);
process.setMaxListeners(35);

let tree = new Tree(
(x, numb) => {
Expand Down Expand Up @@ -34,7 +33,7 @@ function build_tree(depth, width, delay = 200, member_count = 5) {
}

function wide_tree(depth, width, node, member, delay, memberCount) {
if (depth == 0) return member;
if (depth === 0) return member;

const newId = tree.newFragment(delay);
const frag = tree.fragment(newId);
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
},
"include": [
"lib/**/*",
"bin/**/*"
"bin/**/*",
"tests/helper.ts",
],
"exclude": [
"node_modules",
"dist",
// "tests",
"web"
]
}
}

0 comments on commit a26e3d0

Please sign in to comment.