run-perf
This webcomponent measures performance by counting the number of executions a function achieves in 1 second
Instalation
npm install "run-perf/run-perf-spinner"
Usage
<run-perf src="./example-test.js" autorun></run-perf>
example-test.js
before(() => [...Array(1000).keys()]);
test("find 100", (data) => {
data.find((x) => x == 100);
});
test("find 200", (data) => {
data.find((x) => x == 200);
});
test("find 400", (data) => {
data.find((x) => x == 400);
});
after((results) => {
console.log(results);
});
This component also allows the import of modules for the test execution, eg:
import { foo } from "http://unpkg.com/foo";
import { baa } from "http://unpkg.com/baa";
test("foo", () => {
foo();
});
test("baa", () => {
baa();
});
Components
run-perf
This webcomponent measures performance by counting the number of executions a function achieves in 1 second
This webcomponent measures performance by counting the number of executions a function achieves in 1 second
run-perf-range
Range ui to use within the run-perf component, exemplifies range to define percentage comparisons based on container
Range ui to use within the run-perf component, exemplifies range to define percentage comparisons based on container
run-perf-spinner
Load spinner for component
Load spinner for component