From: Jérémy Lal Date: Wed, 14 May 2025 21:43:31 +0000 (+0200) Subject: a test uses a benchmark that read alice.html, dfsg excluded X-Git-Tag: archive/raspbian/20.19.2+dfsg-1+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1a331aeed5ce79148998c2321efc87e08bb0f912;p=nodejs.git a test uses a benchmark that read alice.html, dfsg excluded Forwarded: not-needed Reviewed-By: Xavier Guimard Last-Update: 2020-03-04 Gbp-Pq: Topic dfsg Gbp-Pq: Name benchmark_without_alice.patch --- diff --git a/benchmark/buffers/buffer-indexof-number.js b/benchmark/buffers/buffer-indexof-number.js index 5d0ecb91d..cb6c3ab40 100644 --- a/benchmark/buffers/buffer-indexof-number.js +++ b/benchmark/buffers/buffer-indexof-number.js @@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { function main({ n, value }) { const aliceBuffer = fs.readFileSync( - path.resolve(__dirname, '../fixtures/alice.html'), + path.resolve(__dirname, '../../doc/api/all.html'), ); let count = 0; diff --git a/benchmark/buffers/buffer-indexof.js b/benchmark/buffers/buffer-indexof.js index 52cc95ccb..8cc1cc859 100644 --- a/benchmark/buffers/buffer-indexof.js +++ b/benchmark/buffers/buffer-indexof.js @@ -31,7 +31,7 @@ const bench = common.createBenchmark(main, { function main({ n, search, encoding, type }) { let aliceBuffer = fs.readFileSync( - path.resolve(__dirname, '../fixtures/alice.html'), + path.resolve(__dirname, '../../doc/api/all.html'), ); if (encoding === 'undefined') { diff --git a/benchmark/http2/compat.js b/benchmark/http2/compat.js index d37bb20c5..5c81179e0 100644 --- a/benchmark/http2/compat.js +++ b/benchmark/http2/compat.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const path = require('path'); const fs = require('fs'); -const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); +const file = path.join(path.resolve(__dirname, '../../doc/api'), 'all.html'); const bench = common.createBenchmark(main, { requests: [100, 1000, 5000], diff --git a/benchmark/http2/respond-with-fd.js b/benchmark/http2/respond-with-fd.js index c365c7cea..aa40dc35d 100644 --- a/benchmark/http2/respond-with-fd.js +++ b/benchmark/http2/respond-with-fd.js @@ -4,7 +4,7 @@ const common = require('../common.js'); const path = require('path'); const fs = require('fs'); -const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); +const file = path.join(path.resolve(__dirname, '../../doc/api'), 'all.html'); const bench = common.createBenchmark(main, { requests: [100, 1000, 5000], diff --git a/benchmark/http2/simple.js b/benchmark/http2/simple.js index 5ee780ab9..fc445a3b6 100644 --- a/benchmark/http2/simple.js +++ b/benchmark/http2/simple.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const path = require('path'); const fs = require('fs'); -const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); +const file = path.join(path.resolve(__dirname, '../../doc/api'), 'all.html'); const bench = common.createBenchmark(main, { requests: [100, 1000, 5000],