@mark1russell7/vex 0.17.2 → 0.19.0

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/README.md CHANGED
@@ -78,6 +78,12 @@ plan.run({ space: space.array([{ n: 2 }]), origin: "0" }); // => { ok: true, val
78
78
 
79
79
  Vex keeps what is its own: the typed domains, the spaces, the moves and the axes, the closure compiler, the loop compiler and the sheets.
80
80
 
81
+ ## Speed
82
+
83
+ A program of this package runs in the interpreter (tier 1). In CI, the interpreter takes approximately 17 to 21 times the time of hand-written loops for the nearest other box. For a step of the Game of Life, it takes approximately 38 to 41 times.
84
+
85
+ For speed, compile the program with [`@mark1russell7/vex-compiler`](https://www.npmjs.com/package/@mark1russell7/vex-compiler). Its tier 2 takes 1.2 to 1.7 times the time of the same loops, with the results of the interpreter. The speed gates in `packages/core/bench/gate.ts` and `packages/compiler/bench/gate.ts` give each limit and the runs that set it.
86
+
81
87
  ## Related packages
82
88
 
83
89
  - [`@mark1russell7/vex-domains`](https://www.npmjs.com/package/@mark1russell7/vex-domains): 2D vectors, colors, angles, numbers and booleans