Skip to content

Commit 44b851d

Browse files
committed
test: Increase benchmark from 1,000 to 10,000 ops
Per https://wikitech.wikimedia.org/wiki/Performance/Guides/Backend_performance_practices#Percentiles but also more generally because it's just running far too quickly. It's only running for ~0.1s on modern equipment, which leaves too much room for variance. Change-Id: I25e0d0187be3ab22e0299219f7f9860d6b41a6d8
1 parent 3f17e2a commit 44b851d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/.eslintrc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"root": true,
3-
"extends": "wikimedia/server"
3+
"extends": [
4+
"wikimedia",
5+
"wikimedia/node",
6+
"wikimedia/language/es2021"
7+
]
48
}

test/bench.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async function getFixture( name, sha1, url ) {
103103

104104
async function benchFixture( fixture ) {
105105
const data = await getFixture( fixture.name, fixture.sha1, fixture.src );
106-
const ops = 1000;
106+
const ops = 10_000;
107107
const bench = Object.create( baseBench );
108108
let i = ops;
109109
bench.start( fixture.name );

0 commit comments

Comments
 (0)