diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b7aaf85..66bb9d36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ project adheres to [Semantic Versioning](http://semver.org/). - AggregatorRegistry renamed to ClusterRegistry, old name deprecated - chore: update faceoff to 1.1 - perf: Stat aggregation uses similar strategy to collection. 60% faster aggregation +- ci: Run additional benchmarks against trunk ### Added diff --git a/benchmarks/index.js b/benchmarks/index.js index 666e1138..20dbab24 100644 --- a/benchmarks/index.js +++ b/benchmarks/index.js @@ -14,9 +14,9 @@ const debug = require('debug')('benchmark'); const benchmarks = new Benchmark({ // TODO: Update this once the module is published to as @prometheus/client. - '@prometheus/client@latest': 'prom-client@latest', - '@prometheus/client@trunk': 'git@github.com:prometheus/client_js', - '@prometheus/client@current': { location: process.cwd() }, + released: 'prom-client@latest', + trunk: 'git@github.com:prometheus/client_js', + current: { location: process.cwd() }, }); benchmarks.suite('counter', require('./counter')); diff --git a/benchmarks/util.js b/benchmarks/util.js index 7c08e3b3..013f8587 100644 --- a/benchmarks/util.js +++ b/benchmarks/util.js @@ -5,7 +5,7 @@ const Path = require('path'); module.exports = setupUtilSuite; function setupUtilSuite(suite) { - const skip = ['@prometheus/client@latest']; + const skip = ['released']; suite.add( 'hashObject', @@ -57,10 +57,6 @@ function setupUtilSuite(suite) { suite.add( 'LabelGrouper.keyFrom()', (client, labelGrouper) => { - if (labelGrouper === undefined) { - return; - } - labelGrouper.keyFrom({ foo: 'longish', user_agent: 'Chrome', @@ -77,7 +73,7 @@ function setupUtilSuite(suite) { return new Util.LabelGrouper(); }, - skip: ['@prometheus/client@latest', '@prometheus/client@trunk'], + skip: ['released', 'trunk'], }, ); } diff --git a/package.json b/package.json index 68d10136..0227ac9c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "eslint-plugin-n": "^17.20.0", "eslint-plugin-prettier": "^5.0.1", "express": "^5.1.0", - "faceoff": "^1.1.0", + "faceoff": "~1.3.1", "globals": "^16.2.0", "husky": "^9.0.0", "jest": "^30.0.2",