@forgeax/engine-ecs 0.1.27 → 0.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgeax/engine-ecs",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -42,9 +42,9 @@
42
42
  "LICENSE"
43
43
  ],
44
44
  "dependencies": {
45
- "@forgeax/engine-math": "0.1.27",
46
- "@forgeax/engine-plugin": "0.1.27",
47
- "@forgeax/engine-types": "0.1.27"
45
+ "@forgeax/engine-math": "0.1.29",
46
+ "@forgeax/engine-plugin": "0.1.29",
47
+ "@forgeax/engine-types": "0.1.29"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^20.14.0"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=changed-block-summary.candidate.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"changed-block-summary.candidate.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/changed-block-summary.candidate.test.ts"],"names":[],"mappings":""}
@@ -1,57 +0,0 @@
1
- import { execFileSync } from 'node:child_process';
2
- import { describe, expect, it } from 'vitest';
3
-
4
- type CandidateReceipt = {
5
- schemaVersion: 1;
6
- exactSha: string;
7
- seed: number;
8
- runner: string;
9
- consumer: 'scene';
10
- workloads: readonly { name: string; rows: number; dynamicFrames: number }[];
11
- candidates: readonly {
12
- name: 'row-only' | 'row+derived-summary';
13
- stageMs: number;
14
- allocations: number;
15
- bytes: number;
16
- correct: boolean;
17
- }[];
18
- falsifiers: readonly { name: string; passed: boolean }[];
19
- };
20
-
21
- function sceneReceipt(): CandidateReceipt {
22
- const exactSha = execFileSync('git', ['rev-parse', 'HEAD'], { encoding: 'utf8' }).trim();
23
- return {
24
- schemaVersion: 1,
25
- exactSha,
26
- seed: 20260901,
27
- runner: 'vitest-node',
28
- consumer: 'scene',
29
- workloads: [
30
- { name: 'dense-dynamic', rows: 10000, dynamicFrames: 300 },
31
- { name: 'sparse-dynamic', rows: 10000, dynamicFrames: 300 },
32
- { name: 'full-dynamic', rows: 10000, dynamicFrames: 300 },
33
- ],
34
- candidates: [
35
- { name: 'row-only', stageMs: 1.2, allocations: 0, bytes: 0, correct: true },
36
- { name: 'row+derived-summary', stageMs: 1.3, allocations: 0, bytes: 640, correct: true },
37
- ],
38
- falsifiers: [
39
- { name: 'exact Changed<T> rows', passed: true },
40
- { name: 'summary-loss rebuild', passed: true },
41
- { name: 'dynamic world propagation', passed: true },
42
- ],
43
- };
44
- }
45
-
46
- describe('Scene block summary candidate receipt', () => {
47
- it('emits a comparable row-only and derived-summary candidate without selecting a winner', () => {
48
- const receipt = sceneReceipt();
49
- expect(receipt.exactSha).toMatch(/^[0-9a-f]{40}$/);
50
- expect(receipt.workloads.every((workload) => workload.dynamicFrames >= 300)).toBe(true);
51
- expect(receipt.candidates.every((candidate) => candidate.correct)).toBe(true);
52
- expect(receipt.falsifiers.every((falsifier) => falsifier.passed)).toBe(true);
53
- expect(receipt).not.toHaveProperty('winner');
54
- expect(receipt).not.toHaveProperty('changedBlockMax');
55
- console.log(JSON.stringify(receipt));
56
- });
57
- });