Skip to content

Commit

Permalink
feat: bump deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Prozi committed Jan 15, 2025
1 parent 7001aa2 commit e18d0ad
Show file tree
Hide file tree
Showing 96 changed files with 2,626 additions and 2,850 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
yarn-error.log

.idea
.vscode/
.vscode
54 changes: 16 additions & 38 deletions dist/benchmarks/stress.bench.js
Original file line number Diff line number Diff line change
@@ -1,27 +1,4 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
Expand All @@ -31,33 +8,34 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.stressBenchmark = void 0;
/* tslint:disable:no-implicit-dependencies variable-name no-any */
const tinybench_1 = require("tinybench");
const stress_js_1 = __importDefault(require("../demo/stress.js"));
const amounts = Array.from({ length: 10 }, (_, index) => 1000 * (index + 1));
const stressBenchmark = () => __awaiter(void 0, void 0, void 0, function* () {
const { default: Stress } = yield Promise.resolve().then(() => __importStar(require("../demo/stress.js")));
let stressTest;
const benchmark = new tinybench_1.Bench({
time: 1000,
warmupIterations: 0,
setup: ({ opts }) => {
stressTest = new Stress(opts.items);
stressTest.headless = true;
},
teardown: () => {
stressTest.physics.clear();
},
});
const recursiveAddTest = (items) => {
amounts.forEach((items) => {
benchmark.add(`stress test, items=${items}`, () => {
stressTest.update();
}, { items });
if (items < 10000) {
recursiveAddTest(items + 1000);
}
};
recursiveAddTest(1000);
}, {
beforeEach: () => {
stressTest = new stress_js_1.default(items);
stressTest.headless = true;
},
afterEach: () => {
stressTest.physics.clear();
},
});
});
yield benchmark.run();
console.table(benchmark.table());
});
Expand Down
1 change: 1 addition & 0 deletions docs/assets/hierarchy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/icons.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions docs/assets/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

Loading

0 comments on commit e18d0ad

Please sign in to comment.