From 41dffd7a38b0e4e7ed9b1699845e45a07feb0873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lal?= Date: Tue, 16 Aug 2022 11:14:23 +0800 Subject: [PATCH] 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: Name benchmark_without_alice.patch --- benchmark/buffers/buffer-indexof-number.js | 2 +- benchmark/buffers/buffer-indexof.js | 2 +- benchmark/http2/compat.js | 2 +- benchmark/http2/respond-with-fd.js | 2 +- benchmark/http2/simple.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmark/buffers/buffer-indexof-number.js b/benchmark/buffers/buffer-indexof-number.js index b00a4652..3c4e4221 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 4c0993a1..c08f9311 100644 --- a/benchmark/buffers/buffer-indexof.js +++ b/benchmark/buffers/buffer-indexof.js @@ -26,7 +26,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 2c7e732b..4638dd3b 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 5bf5988d..30de0040 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 929c4c65..ab285bec 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],