File: benchmark_without_alice.patch

package info (click to toggle)
nodejs 22.21.1%2Bdfsg%2B~cs22.19.0-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 251,924 kB
  • sloc: cpp: 1,542,927; javascript: 597,777; ansic: 114,330; python: 60,784; sh: 4,155; makefile: 2,914; asm: 1,750; pascal: 1,565; perl: 248; lisp: 222; xml: 42
file content (61 lines) | stat: -rw-r--r-- 2,109 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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
@@ -31,7 +31,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],