mirror of https://gitee.com/openkylin/nodejs.git
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:
parent
167a39ad61
commit
41dffd7a38
|
@ -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;
|
||||||
|
|
|
@ -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') {
|
||||||
|
|
|
@ -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],
|
||||||
|
|
|
@ -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],
|
||||||
|
|
|
@ -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],
|
||||||
|
|
Loading…
Reference in New Issue