chore(repo): remove the cpu benchmark from pipelines (#20660)
This commit is contained in:
parent
283f1d7d17
commit
d27158ca66
@ -100,9 +100,6 @@ jobs:
|
||||
os: linux
|
||||
- nx/set-shas:
|
||||
main-branch-name: 'master'
|
||||
- run:
|
||||
name: Benchmark
|
||||
command: node tools/benchmark/benchmark.js
|
||||
- run:
|
||||
name: Check Documentation
|
||||
command: pnpm nx documentation --no-dte
|
||||
|
||||
@ -56,6 +56,3 @@ launch-templates:
|
||||
|
||||
- name: Load Cargo Env
|
||||
script: echo "PATH=$HOME/.cargo/bin:$PATH" >> $NX_CLOUD_ENV
|
||||
|
||||
- name: Benchmark
|
||||
script: node tools/benchmark/benchmark.js
|
||||
|
||||
@ -150,7 +150,6 @@
|
||||
"conventional-changelog-cli": "^2.0.23",
|
||||
"convert-source-map": "^2.0.0",
|
||||
"copy-webpack-plugin": "^10.2.4",
|
||||
"cpu-benchmark": "^1.0.1",
|
||||
"css-minimizer-webpack-plugin": "^5.0.0",
|
||||
"cypress": "^13.0.0",
|
||||
"cytoscape": "^3.18.2",
|
||||
|
||||
7
pnpm-lock.yaml
generated
7
pnpm-lock.yaml
generated
@ -527,9 +527,6 @@ devDependencies:
|
||||
copy-webpack-plugin:
|
||||
specifier: ^10.2.4
|
||||
version: 10.2.4(webpack@5.88.0)
|
||||
cpu-benchmark:
|
||||
specifier: ^1.0.1
|
||||
version: 1.0.1
|
||||
css-minimizer-webpack-plugin:
|
||||
specifier: ^5.0.0
|
||||
version: 5.0.0(esbuild@0.19.5)(webpack@5.88.0)
|
||||
@ -14243,10 +14240,6 @@ packages:
|
||||
path-type: 4.0.0
|
||||
dev: true
|
||||
|
||||
/cpu-benchmark@1.0.1:
|
||||
resolution: {integrity: sha512-b6FmkWdWvwKySXIdMFjXqh9xkWl5MCDq5EZv26/PxzlSoY+/pugsA8wx2rUJ4/w7MhtU/GqmKmifr+uufgMFnw==}
|
||||
dev: true
|
||||
|
||||
/create-require@1.1.1:
|
||||
resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==}
|
||||
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
const { exec } = require('child_process');
|
||||
|
||||
for (let i = 0; i < 3; i++) {
|
||||
const cp = exec(`node ./tools/benchmark/worker.js test_${i}`);
|
||||
cp.stdout.pipe(process.stdout);
|
||||
}
|
||||
@ -1,18 +0,0 @@
|
||||
const { fib, dist } = require('cpu-benchmark');
|
||||
|
||||
const data = [];
|
||||
const passes = 100;
|
||||
for (let i = 0; i < passes; i++) {
|
||||
const duration = fib(41); // Returns time required (ms)
|
||||
// to calculate the 41. fibonacci number recursively.
|
||||
const ops = dist(1000); // Returns the amount of operations
|
||||
// (distance matrix calculations) in 1000ms
|
||||
|
||||
data.push({ duration, ops });
|
||||
}
|
||||
|
||||
const avgDuration = data.reduce((acc, d) => acc + d.duration, 0) / data.length;
|
||||
const avgOps = data.reduce((acc, d) => acc + d.ops, 0) / data.length;
|
||||
|
||||
console.log(avgDuration, `average duration over ${passes} passes`); // Average duration
|
||||
console.log(avgOps, `average ops over ${passes} passes`); // Average ops
|
||||
Loading…
x
Reference in New Issue
Block a user