From 16ed1459a6c315f4637e6682200e1db6f469b900 Mon Sep 17 00:00:00 2001 From: XD Date: Thu, 11 Apr 2024 12:21:53 +0200 Subject: [PATCH] fix: extend listeners --- .github/workflows/perf-test.yml | 2 +- perf/perftest.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/perf-test.yml b/.github/workflows/perf-test.yml index d47b79f..8c177c3 100644 --- a/.github/workflows/perf-test.yml +++ b/.github/workflows/perf-test.yml @@ -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 diff --git a/perf/perftest.js b/perf/perftest.js index 562bed4..d8bebc6 100644 --- a/perf/perftest.js +++ b/perf/perftest.js @@ -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) {