Skip to content

Commit

Permalink
fix: extend listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
xdxxxdx committed Apr 11, 2024
1 parent fba3df7 commit 16ed145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/perf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: '20.x'
- run: npm ci
- run: npm run build --if-present
- run: node ./perf/perftest.js | tee output.txt
- run: node ./perf/perftest.js | tee >(grep 'ops' > output.txt)

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
Expand Down
3 changes: 3 additions & 0 deletions perf/perftest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ const { Tree } = require("../dist/tests/helper");
const { Parser } = require("n3");
const { TREE } = require("@treecg/types");

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

let tree = new Tree(
(x, numb) => {
if (!numb) {
Expand Down

0 comments on commit 16ed145

Please sign in to comment.