mirror of https://gitee.com/openkylin/nodejs.git
62 lines
2.1 KiB
Diff
62 lines
2.1 KiB
Diff
Description: a test uses a benchmark that read alice.html, dfsg excluded
|
|
Author: Jérémy Lal <kapouer@melix.org>
|
|
Forwarded: not-needed
|
|
Reviewed-By: Xavier Guimard <yadd@debian.org>
|
|
Last-Update: 2020-03-04
|
|
|
|
--- a/benchmark/buffers/buffer-indexof-number.js
|
|
+++ b/benchmark/buffers/buffer-indexof-number.js
|
|
@@ -10,7 +10,7 @@
|
|
|
|
function main({ n, value }) {
|
|
const aliceBuffer = fs.readFileSync(
|
|
- path.resolve(__dirname, '../fixtures/alice.html')
|
|
+ path.resolve(__dirname, '../../doc/api/all.html')
|
|
);
|
|
|
|
let count = 0;
|
|
--- a/benchmark/buffers/buffer-indexof.js
|
|
+++ b/benchmark/buffers/buffer-indexof.js
|
|
@@ -26,7 +26,7 @@
|
|
|
|
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') {
|
|
--- 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],
|
|
--- a/benchmark/http2/respond-with-fd.js
|
|
+++ b/benchmark/http2/respond-with-fd.js
|
|
@@ -4,7 +4,7 @@
|
|
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],
|
|
--- 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],
|