a test uses a benchmark that read alice.html, dfsg excluded

Forwarded: not-needed
Reviewed-By: Xavier Guimard <yadd@debian.org>
Last-Update: 2020-03-04

Gbp-Pq: Name benchmark_without_alice.patch
This commit is contained in:
Jérémy Lal 2022-08-16 11:14:23 +08:00 committed by Lu zhiping
parent 167a39ad61
commit 41dffd7a38
5 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
function main({ n, value }) { function main({ n, value }) {
const aliceBuffer = fs.readFileSync( const aliceBuffer = fs.readFileSync(
path.resolve(__dirname, '../fixtures/alice.html') path.resolve(__dirname, '../../doc/api/all.html')
); );
let count = 0; let count = 0;

View File

@ -26,7 +26,7 @@ const bench = common.createBenchmark(main, {
function main({ n, search, encoding, type }) { function main({ n, search, encoding, type }) {
let aliceBuffer = fs.readFileSync( let aliceBuffer = fs.readFileSync(
path.resolve(__dirname, '../fixtures/alice.html') path.resolve(__dirname, '../../doc/api/all.html')
); );
if (encoding === 'undefined') { if (encoding === 'undefined') {

View File

@ -3,7 +3,7 @@
const common = require('../common.js'); const common = require('../common.js');
const path = require('path'); const path = require('path');
const fs = require('fs'); 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, { const bench = common.createBenchmark(main, {
requests: [100, 1000, 5000], requests: [100, 1000, 5000],

View File

@ -4,7 +4,7 @@ const common = require('../common.js');
const path = require('path'); const path = require('path');
const fs = require('fs'); 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, { const bench = common.createBenchmark(main, {
requests: [100, 1000, 5000], requests: [100, 1000, 5000],

View File

@ -3,7 +3,7 @@
const common = require('../common.js'); const common = require('../common.js');
const path = require('path'); const path = require('path');
const fs = require('fs'); 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, { const bench = common.createBenchmark(main, {
requests: [100, 1000, 5000], requests: [100, 1000, 5000],