@the-w1zard/singularity 1.0.12 → 1.0.14
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.html +450 -0
- package/README.md +327 -2
- package/dist/bus_db_rpc/RULE_OF_2_same_node.d.ts +139 -0
- package/dist/bus_db_rpc/RULE_OF_2_same_node.d.ts.map +1 -0
- package/dist/bus_db_rpc/RULE_OF_2_same_node.js +502 -0
- package/dist/class.d.ts +161 -0
- package/dist/class.d.ts.map +1 -0
- package/dist/class.js +804 -0
- package/dist/comps/DISRUPTOR_CRYPTO.d.ts +47 -0
- package/dist/comps/DISRUPTOR_CRYPTO.d.ts.map +1 -0
- package/dist/comps/RULE_OF_2_same_app.d.ts +175 -0
- package/dist/comps/RULE_OF_2_same_app.d.ts.map +1 -0
- package/dist/comps/RULE_OF_2_same_app.js +482 -0
- package/dist/comps/binary.d.ts +71 -0
- package/dist/comps/binary.d.ts.map +1 -0
- package/dist/comps/byte_id.d.ts +12 -0
- package/dist/comps/byte_id.d.ts.map +1 -0
- package/dist/comps/cell-worker.d.ts +9 -0
- package/dist/comps/cell-worker.d.ts.map +1 -0
- package/dist/comps/cell.d.ts +349 -0
- package/dist/comps/cell.d.ts.map +1 -0
- package/dist/comps/create_live_self.d.ts +22 -0
- package/dist/comps/create_live_self.d.ts.map +1 -0
- package/dist/comps/queue.d.ts +103 -0
- package/dist/comps/queue.d.ts.map +1 -0
- package/dist/comps/serializer.d.ts +30 -0
- package/dist/comps/serializer.d.ts.map +1 -0
- package/dist/comps/serializer.js +131 -0
- package/dist/comps/vm-types.d.ts +20 -0
- package/dist/comps/vm-types.d.ts.map +1 -0
- package/dist/db/binary.d.ts +76 -0
- package/dist/db/binary.d.ts.map +1 -0
- package/dist/db/binary.js +441 -0
- package/dist/db/client.d.ts +28 -0
- package/dist/db/client.d.ts.map +1 -0
- package/dist/db/client.js +82 -0
- package/dist/db/db.d.ts +141 -0
- package/dist/db/db.d.ts.map +1 -0
- package/dist/db/db.js +898 -0
- package/dist/db/op.d.ts +13 -0
- package/dist/db/op.d.ts.map +1 -0
- package/dist/db/op.js +11 -0
- package/dist/db/storage-worker.d.ts +2 -0
- package/dist/db/storage-worker.d.ts.map +1 -0
- package/dist/db/storage-worker.js +152 -0
- package/dist/db/types.d.ts +134 -0
- package/dist/db/types.d.ts.map +1 -0
- package/dist/db/types.js +14 -0
- package/dist/db/wal.d.ts +30 -0
- package/dist/db/wal.d.ts.map +1 -0
- package/dist/db/wal.js +217 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/signals.js +10740 -5498
- package/dist/slab.d.ts +95 -0
- package/dist/slab.d.ts.map +1 -0
- package/dist/slab.js +575 -0
- package/dist/slab.types.d.ts +5 -0
- package/dist/slab.types.d.ts.map +1 -0
- package/dist/slab.types.js +1 -0
- package/dist/test.d.ts +152 -0
- package/dist/test.d.ts.map +1 -0
- package/dist/test.js +1183 -0
- package/dist/testt.d.ts +61 -0
- package/dist/testt.d.ts.map +1 -0
- package/dist/testt.js +143 -0
- package/dist/y.d.ts +152 -0
- package/dist/y.d.ts.map +1 -0
- package/dist/y.js +36 -65
- package/package.json +22 -19
package/README.html
CHANGED
|
@@ -179,6 +179,263 @@
|
|
|
179
179
|
<p align="left">The goal? To remove all friction, from everything.</p>
|
|
180
180
|
</div>
|
|
181
181
|
<br clear="right">
|
|
182
|
+
<pre><code class="language-tsx"><span class="hljs-comment">// class</span>
|
|
183
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">signal</span>.<span class="hljs-property">get</span> ---------------
|
|
184
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">1538.46</span> M ops/sec
|
|
185
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">449.27</span> M ops/sec
|
|
186
|
+
---------------------------------------------------------
|
|
187
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">signal</span>.<span class="hljs-property">peek</span> ---------------
|
|
188
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">1194.74</span> M ops/sec
|
|
189
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">547.03</span> M ops/sec
|
|
190
|
+
---------------------------------------------------------
|
|
191
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">signal</span>.<span class="hljs-property">set</span> ---------------
|
|
192
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">376.51</span> M ops/sec
|
|
193
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">223.76</span> M ops/sec
|
|
194
|
+
---------------------------------------------------------
|
|
195
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">signal</span>.<span class="hljs-property">get</span>.<span class="hljs-property">set</span> ---------------
|
|
196
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">424.09</span> M ops/sec
|
|
197
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">205.91</span> M ops/sec
|
|
198
|
+
---------------------------------------------------------
|
|
199
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">get</span>.<span class="hljs-property">cached</span> ---------------
|
|
200
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">161.50</span> M ops/sec
|
|
201
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">153.30</span> M ops/sec
|
|
202
|
+
---------------------------------------------------------
|
|
203
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">invalidate</span> ---------------
|
|
204
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">41.41</span> M ops/sec
|
|
205
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">34.98</span> M ops/sec
|
|
206
|
+
---------------------------------------------------------
|
|
207
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">recompute</span> ---------------
|
|
208
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">17.27</span> M ops/sec
|
|
209
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">16.75</span> M ops/sec
|
|
210
|
+
---------------------------------------------------------
|
|
211
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">chain</span>.<span class="hljs-property">cached</span> ---------------
|
|
212
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">74.21</span> M ops/sec
|
|
213
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">68.95</span> M ops/sec
|
|
214
|
+
---------------------------------------------------------
|
|
215
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">chain</span>.<span class="hljs-property">recompute</span> ---------------
|
|
216
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">6.48</span> M ops/sec
|
|
217
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">6.29</span> M ops/sec
|
|
218
|
+
---------------------------------------------------------
|
|
219
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">effect</span>.<span class="hljs-property">create</span>-dispose ---------------
|
|
220
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">29.63</span> M ops/sec
|
|
221
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">21.17</span> M ops/sec
|
|
222
|
+
---------------------------------------------------------
|
|
223
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">effect</span>.<span class="hljs-property">notify</span> ---------------
|
|
224
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">14.04</span> M ops/sec
|
|
225
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">12.55</span> M ops/sec
|
|
226
|
+
---------------------------------------------------------
|
|
227
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">effect</span>.<span class="hljs-property">cleanup</span>-rerun ---------------
|
|
228
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">21.30</span> M ops/sec
|
|
229
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">17.95</span> M ops/sec
|
|
230
|
+
---------------------------------------------------------
|
|
231
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">dependency</span>.<span class="hljs-property">track</span> ---------------
|
|
232
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">23.78</span> M ops/sec
|
|
233
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">20.99</span> M ops/sec
|
|
234
|
+
---------------------------------------------------------
|
|
235
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">fanout</span><span class="hljs-number">.16</span> ---------------
|
|
236
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">2.98</span> M ops/sec
|
|
237
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">2.80</span> M ops/sec
|
|
238
|
+
---------------------------------------------------------
|
|
239
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">fanout</span><span class="hljs-number">.64</span> ---------------
|
|
240
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">0.72</span> M ops/sec
|
|
241
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">0.70</span> M ops/sec
|
|
242
|
+
---------------------------------------------------------
|
|
243
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">batch</span><span class="hljs-number">.3</span>-writes ---------------
|
|
244
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">31.24</span> M ops/sec
|
|
245
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">26.66</span> M ops/sec
|
|
246
|
+
---------------------------------------------------------
|
|
247
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">batch</span>.<span class="hljs-property">effect</span><span class="hljs-number">.3</span>-writes ---------------
|
|
248
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">14.46</span> M ops/sec
|
|
249
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">13.05</span> M ops/sec
|
|
250
|
+
---------------------------------------------------------
|
|
251
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">graph</span>.<span class="hljs-property">diamond</span>.<span class="hljs-property">cached</span> ---------------
|
|
252
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">131.06</span> M ops/sec
|
|
253
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">113.01</span> M ops/sec
|
|
254
|
+
---------------------------------------------------------
|
|
255
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">graph</span>.<span class="hljs-property">diamond</span>.<span class="hljs-property">recompute</span> ---------------
|
|
256
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">4.81</span> M ops/sec
|
|
257
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">4.46</span> M ops/sec
|
|
258
|
+
---------------------------------------------------------
|
|
259
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">graph</span>.<span class="hljs-property">branch</span><span class="hljs-number">.16</span>.<span class="hljs-property">cached</span> ---------------
|
|
260
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">160.57</span> M ops/sec
|
|
261
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">138.04</span> M ops/sec
|
|
262
|
+
---------------------------------------------------------
|
|
263
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">graph</span>.<span class="hljs-property">branch</span><span class="hljs-number">.16</span>.<span class="hljs-property">recompute</span> ---------------
|
|
264
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">1.22</span> M ops/sec
|
|
265
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">1.14</span> M ops/sec
|
|
266
|
+
---------------------------------------------------------
|
|
267
|
+
</code></pre>
|
|
268
|
+
<pre><code class="language-tsx">------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">signal</span>.<span class="hljs-property">get</span> ---------------
|
|
269
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">1453.49</span> M ops/sec
|
|
270
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">479.81</span> M ops/sec
|
|
271
|
+
---------------------------------------------------------
|
|
272
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">signal</span>.<span class="hljs-property">peek</span> ---------------
|
|
273
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">1270.65</span> M ops/sec
|
|
274
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">583.82</span> M ops/sec
|
|
275
|
+
---------------------------------------------------------
|
|
276
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">signal</span>.<span class="hljs-property">set</span> ---------------
|
|
277
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">377.07</span> M ops/sec
|
|
278
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">196.89</span> M ops/sec
|
|
279
|
+
---------------------------------------------------------
|
|
280
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">signal</span>.<span class="hljs-property">get</span>.<span class="hljs-property">set</span> ---------------
|
|
281
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">363.64</span> M ops/sec
|
|
282
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">179.47</span> M ops/sec
|
|
283
|
+
---------------------------------------------------------
|
|
284
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">get</span>.<span class="hljs-property">cached</span> ---------------
|
|
285
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">77.94</span> M ops/sec
|
|
286
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">70.52</span> M ops/sec
|
|
287
|
+
---------------------------------------------------------
|
|
288
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">invalidate</span> ---------------
|
|
289
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">41.94</span> M ops/sec
|
|
290
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">35.91</span> M ops/sec
|
|
291
|
+
---------------------------------------------------------
|
|
292
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">recompute</span> ---------------
|
|
293
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">25.53</span> M ops/sec
|
|
294
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">22.65</span> M ops/sec
|
|
295
|
+
---------------------------------------------------------
|
|
296
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">chain</span>.<span class="hljs-property">cached</span> ---------------
|
|
297
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">74.32</span> M ops/sec
|
|
298
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">70.52</span> M ops/sec
|
|
299
|
+
---------------------------------------------------------
|
|
300
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">computed</span>.<span class="hljs-property">chain</span>.<span class="hljs-property">recompute</span> ---------------
|
|
301
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">6.31</span> M ops/sec
|
|
302
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">6.01</span> M ops/sec
|
|
303
|
+
---------------------------------------------------------
|
|
304
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">effect</span>.<span class="hljs-property">create</span>-dispose ---------------
|
|
305
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">28.45</span> M ops/sec
|
|
306
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">20.51</span> M ops/sec
|
|
307
|
+
---------------------------------------------------------
|
|
308
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">effect</span>.<span class="hljs-property">notify</span> ---------------
|
|
309
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">19.60</span> M ops/sec
|
|
310
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">17.11</span> M ops/sec
|
|
311
|
+
---------------------------------------------------------
|
|
312
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">effect</span>.<span class="hljs-property">cleanup</span>-rerun ---------------
|
|
313
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">18.50</span> M ops/sec
|
|
314
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">15.46</span> M ops/sec
|
|
315
|
+
---------------------------------------------------------
|
|
316
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">dependency</span>.<span class="hljs-property">track</span> ---------------
|
|
317
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">17.85</span> M ops/sec
|
|
318
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">15.87</span> M ops/sec
|
|
319
|
+
---------------------------------------------------------
|
|
320
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">fanout</span><span class="hljs-number">.16</span> ---------------
|
|
321
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">2.85</span> M ops/sec
|
|
322
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">2.73</span> M ops/sec
|
|
323
|
+
---------------------------------------------------------
|
|
324
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">fanout</span><span class="hljs-number">.64</span> ---------------
|
|
325
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">0.78</span> M ops/sec
|
|
326
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">0.76</span> M ops/sec
|
|
327
|
+
---------------------------------------------------------
|
|
328
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">batch</span><span class="hljs-number">.3</span>-writes ---------------
|
|
329
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">27.30</span> M ops/sec
|
|
330
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">23.25</span> M ops/sec
|
|
331
|
+
---------------------------------------------------------
|
|
332
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">batch</span>.<span class="hljs-property">effect</span><span class="hljs-number">.3</span>-writes ---------------
|
|
333
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">12.34</span> M ops/sec
|
|
334
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">10.81</span> M ops/sec
|
|
335
|
+
---------------------------------------------------------
|
|
336
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">graph</span>.<span class="hljs-property">diamond</span>.<span class="hljs-property">cached</span> ---------------
|
|
337
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">138.75</span> M ops/sec
|
|
338
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">98.59</span> M ops/sec
|
|
339
|
+
---------------------------------------------------------
|
|
340
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">graph</span>.<span class="hljs-property">diamond</span>.<span class="hljs-property">recompute</span> ---------------
|
|
341
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">5.06</span> M ops/sec
|
|
342
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">4.64</span> M ops/sec
|
|
343
|
+
---------------------------------------------------------
|
|
344
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">graph</span>.<span class="hljs-property">branch</span><span class="hljs-number">.16</span>.<span class="hljs-property">cached</span> ---------------
|
|
345
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">171.00</span> M ops/sec
|
|
346
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">159.56</span> M ops/sec
|
|
347
|
+
---------------------------------------------------------
|
|
348
|
+
------------ <span class="hljs-variable constant_">SIGNAL_ENGINE</span>.<span class="hljs-property">graph</span>.<span class="hljs-property">branch</span><span class="hljs-number">.16</span>.<span class="hljs-property">recompute</span> ---------------
|
|
349
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">0.87</span> M ops/sec
|
|
350
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">0.82</span> M ops/sec
|
|
351
|
+
---------------------------------------------------------
|
|
352
|
+
</code></pre>
|
|
353
|
+
<pre><code class="language-tsx"><span class="hljs-comment">// alien</span>
|
|
354
|
+
------------ alien.<span class="hljs-property">get</span> ---------------
|
|
355
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">1206.27</span> M ops/sec
|
|
356
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">437.22</span> M ops/sec
|
|
357
|
+
---------------------------------------------------------
|
|
358
|
+
------------ alien.<span class="hljs-property">peek</span> ---------------
|
|
359
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">80.26</span> M ops/sec
|
|
360
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">71.67</span> M ops/sec
|
|
361
|
+
---------------------------------------------------------
|
|
362
|
+
------------ alien.<span class="hljs-property">set</span> ---------------
|
|
363
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">154.82</span> M ops/sec
|
|
364
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">131.38</span> M ops/sec
|
|
365
|
+
---------------------------------------------------------
|
|
366
|
+
------------ alien.<span class="hljs-property">get</span>.<span class="hljs-property">set</span> ---------------
|
|
367
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">53.93</span> M ops/sec
|
|
368
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">51.81</span> M ops/sec
|
|
369
|
+
---------------------------------------------------------
|
|
370
|
+
------------ alien.<span class="hljs-property">computed</span> ---------------
|
|
371
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">82.54</span> M ops/sec
|
|
372
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">74.55</span> M ops/sec
|
|
373
|
+
---------------------------------------------------------
|
|
374
|
+
------------ alien.<span class="hljs-property">computed</span>.<span class="hljs-property">invalidate</span> ---------------
|
|
375
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">66.93</span> M ops/sec
|
|
376
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">65.79</span> M ops/sec
|
|
377
|
+
---------------------------------------------------------
|
|
378
|
+
------------ alien.<span class="hljs-property">computed</span>.<span class="hljs-property">recompute</span> ---------------
|
|
379
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">23.17</span> M ops/sec
|
|
380
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">21.20</span> M ops/sec
|
|
381
|
+
---------------------------------------------------------
|
|
382
|
+
------------ alien.<span class="hljs-property">computed</span>.<span class="hljs-property">chain</span>.<span class="hljs-property">cached</span> ---------------
|
|
383
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">185.49</span> M ops/sec
|
|
384
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">147.45</span> M ops/sec
|
|
385
|
+
---------------------------------------------------------
|
|
386
|
+
------------ alien.<span class="hljs-property">computed</span>.<span class="hljs-property">chain</span>.<span class="hljs-property">recompute</span> ---------------
|
|
387
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">7.23</span> M ops/sec
|
|
388
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">6.59</span> M ops/sec
|
|
389
|
+
---------------------------------------------------------
|
|
390
|
+
------------ alien.<span class="hljs-property">effect</span>.<span class="hljs-property">create</span>-dispose ---------------
|
|
391
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">20.98</span> M ops/sec
|
|
392
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">16.61</span> M ops/sec
|
|
393
|
+
---------------------------------------------------------
|
|
394
|
+
------------ alien.<span class="hljs-property">effect</span>.<span class="hljs-property">notify</span> ---------------
|
|
395
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">6.84</span> M ops/sec
|
|
396
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">6.25</span> M ops/sec
|
|
397
|
+
---------------------------------------------------------
|
|
398
|
+
------------ alien.<span class="hljs-property">effect</span>.<span class="hljs-property">cleanup</span>-rerun ---------------
|
|
399
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">11.39</span> M ops/sec
|
|
400
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">9.99</span> M ops/sec
|
|
401
|
+
---------------------------------------------------------
|
|
402
|
+
------------ alien.<span class="hljs-property">dependency</span>.<span class="hljs-property">track</span> ---------------
|
|
403
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">12.33</span> M ops/sec
|
|
404
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">11.54</span> M ops/sec
|
|
405
|
+
---------------------------------------------------------
|
|
406
|
+
------------ alien.<span class="hljs-property">fanout</span><span class="hljs-number">.16</span> ---------------
|
|
407
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">1.78</span> M ops/sec
|
|
408
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">1.31</span> M ops/sec
|
|
409
|
+
---------------------------------------------------------
|
|
410
|
+
------------ alien.<span class="hljs-property">fanout</span><span class="hljs-number">.64</span> ---------------
|
|
411
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">0.53</span> M ops/sec
|
|
412
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">0.49</span> M ops/sec
|
|
413
|
+
---------------------------------------------------------
|
|
414
|
+
------------ alien.<span class="hljs-property">batch</span><span class="hljs-number">.3</span>-writes ---------------
|
|
415
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">32.81</span> M ops/sec
|
|
416
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">29.46</span> M ops/sec
|
|
417
|
+
---------------------------------------------------------
|
|
418
|
+
------------ alien.<span class="hljs-property">batch</span>.<span class="hljs-property">effect</span><span class="hljs-number">.3</span>-writes ---------------
|
|
419
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">9.44</span> M ops/sec
|
|
420
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">8.44</span> M ops/sec
|
|
421
|
+
---------------------------------------------------------
|
|
422
|
+
------------ alien.<span class="hljs-property">graph</span>.<span class="hljs-property">diamond</span>.<span class="hljs-property">cached</span> ---------------
|
|
423
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">124.18</span> M ops/sec
|
|
424
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">116.90</span> M ops/sec
|
|
425
|
+
---------------------------------------------------------
|
|
426
|
+
------------ alien.<span class="hljs-property">graph</span>.<span class="hljs-property">diamond</span>.<span class="hljs-property">recompute</span> ---------------
|
|
427
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">4.82</span> M ops/sec
|
|
428
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">4.38</span> M ops/sec
|
|
429
|
+
---------------------------------------------------------
|
|
430
|
+
------------ alien.<span class="hljs-property">graph</span>.<span class="hljs-property">branch</span><span class="hljs-number">.16</span>.<span class="hljs-property">cached</span> ---------------
|
|
431
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">118.71</span> M ops/sec
|
|
432
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">110.17</span> M ops/sec
|
|
433
|
+
---------------------------------------------------------
|
|
434
|
+
------------ alien.<span class="hljs-property">graph</span>.<span class="hljs-property">branch</span><span class="hljs-number">.16</span>.<span class="hljs-property">recompute</span> ---------------
|
|
435
|
+
<span class="hljs-title class_">Peak</span> (<span class="hljs-title class_">Best</span> <span class="hljs-title class_">Batch</span>): <span class="hljs-number">0.75</span> M ops/sec
|
|
436
|
+
<span class="hljs-title class_">Average</span>: <span class="hljs-number">0.72</span> M ops/sec
|
|
437
|
+
---------------------------------------------------------
|
|
438
|
+
</code></pre>
|
|
182
439
|
<div class="markdown-alert markdown-alert-note"><p class="markdown-alert-title"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>Note</p><p></p>
|
|
183
440
|
<p>The entire goal of the dark side, power and performance. Nothing else matters...</p>
|
|
184
441
|
<p>We remove all frivolous features.</p>
|
|
@@ -3188,7 +3445,133 @@ Peak (Best Batch): 12.12 M ops/sec
|
|
|
3188
3445
|
Average: 11.36 M ops/sec
|
|
3189
3446
|
---------------------------------------------------------
|
|
3190
3447
|
</code></pre>
|
|
3448
|
+
<p>After performance update</p>
|
|
3449
|
+
<pre><code class="language-txt">------------ RAVEN.store.get ---------------
|
|
3450
|
+
Peak (Best Batch): 259.34 M ops/sec
|
|
3451
|
+
Average: 105.75 M ops/sec
|
|
3452
|
+
---------------------------------------------------------
|
|
3453
|
+
------------ RAVEN.store.has ---------------
|
|
3454
|
+
Peak (Best Batch): 251.70 M ops/sec
|
|
3455
|
+
Average: 25.86 M ops/sec
|
|
3456
|
+
---------------------------------------------------------
|
|
3457
|
+
------------ RAVEN.store.set ---------------
|
|
3458
|
+
Peak (Best Batch): 64.93 M ops/sec
|
|
3459
|
+
Average: 33.37 M ops/sec
|
|
3460
|
+
---------------------------------------------------------
|
|
3461
|
+
------------ RAVEN.store.set.functional ---------------
|
|
3462
|
+
Peak (Best Batch): 39.16 M ops/sec
|
|
3463
|
+
Average: 26.11 M ops/sec
|
|
3464
|
+
---------------------------------------------------------
|
|
3465
|
+
------------ RAVEN.store.get.set ---------------
|
|
3466
|
+
Peak (Best Batch): 54.02 M ops/sec
|
|
3467
|
+
Average: 48.20 M ops/sec
|
|
3468
|
+
---------------------------------------------------------
|
|
3469
|
+
------------ RAVEN.store.entries ---------------
|
|
3470
|
+
Peak (Best Batch): 7.51 M ops/sec
|
|
3471
|
+
Average: 6.62 M ops/sec
|
|
3472
|
+
---------------------------------------------------------
|
|
3473
|
+
------------ RAVEN.store.subscribe ---------------
|
|
3474
|
+
Peak (Best Batch): 2.55 M ops/sec
|
|
3475
|
+
Average: 2.32 M ops/sec
|
|
3476
|
+
---------------------------------------------------------
|
|
3477
|
+
------------ RAVEN.store.persist.get ---------------
|
|
3478
|
+
Peak (Best Batch): 59.26 M ops/sec
|
|
3479
|
+
Average: 48.68 M ops/sec
|
|
3480
|
+
---------------------------------------------------------
|
|
3481
|
+
------------ RAVEN.store.persist.has ---------------
|
|
3482
|
+
Peak (Best Batch): 72.35 M ops/sec
|
|
3483
|
+
Average: 64.40 M ops/sec
|
|
3484
|
+
---------------------------------------------------------
|
|
3485
|
+
------------ RAVEN.store.persist.set ---------------
|
|
3486
|
+
Peak (Best Batch): 50.32 M ops/sec
|
|
3487
|
+
Average: 47.28 M ops/sec
|
|
3488
|
+
---------------------------------------------------------
|
|
3489
|
+
------------ RAVEN.state.get ---------------
|
|
3490
|
+
Peak (Best Batch): 53.19 M ops/sec
|
|
3491
|
+
Average: 33.23 M ops/sec
|
|
3492
|
+
---------------------------------------------------------
|
|
3493
|
+
------------ RAVEN.state.getHot ---------------
|
|
3494
|
+
Peak (Best Batch): 145.39 M ops/sec
|
|
3495
|
+
Average: 107.64 M ops/sec
|
|
3496
|
+
---------------------------------------------------------
|
|
3497
|
+
------------ RAVEN.state.set ---------------
|
|
3498
|
+
Peak (Best Batch): 33.32 M ops/sec
|
|
3499
|
+
Average: 18.04 M ops/sec
|
|
3500
|
+
---------------------------------------------------------
|
|
3501
|
+
------------ RAVEN.state.get.set ---------------
|
|
3502
|
+
Peak (Best Batch): 80.10 M ops/sec
|
|
3503
|
+
Average: 61.39 M ops/sec
|
|
3504
|
+
---------------------------------------------------------
|
|
3505
|
+
------------ RAVEN.state.getAll ---------------
|
|
3506
|
+
Peak (Best Batch): 6.68 M ops/sec
|
|
3507
|
+
Average: 5.65 M ops/sec
|
|
3508
|
+
---------------------------------------------------------
|
|
3509
|
+
------------ RAVEN.state.getByPrefix ---------------
|
|
3510
|
+
Peak (Best Batch): 4.68 M ops/sec
|
|
3511
|
+
Average: 4.17 M ops/sec
|
|
3512
|
+
---------------------------------------------------------
|
|
3513
|
+
------------ RAVEN.state.subscribe ---------------
|
|
3514
|
+
Peak (Best Batch): 2.90 M ops/sec
|
|
3515
|
+
Average: 2.64 M ops/sec
|
|
3516
|
+
---------------------------------------------------------
|
|
3517
|
+
------------ RAVEN.state.notify ---------------
|
|
3518
|
+
Peak (Best Batch): 1.18 M ops/sec
|
|
3519
|
+
Average: 0.96 M ops/sec
|
|
3520
|
+
---------------------------------------------------------
|
|
3521
|
+
------------ RAVEN.darkState.get ---------------
|
|
3522
|
+
Peak (Best Batch): 2.57 M ops/sec
|
|
3523
|
+
Average: 2.08 M ops/sec
|
|
3524
|
+
---------------------------------------------------------
|
|
3525
|
+
------------ RAVEN.darkState.set ---------------
|
|
3526
|
+
Peak (Best Batch): 15.56 M ops/sec
|
|
3527
|
+
Average: 14.42 M ops/sec
|
|
3528
|
+
---------------------------------------------------------
|
|
3529
|
+
------------ RAVEN.darkState.get.set ---------------
|
|
3530
|
+
Peak (Best Batch): 2.19 M ops/sec
|
|
3531
|
+
Average: 1.80 M ops/sec
|
|
3532
|
+
---------------------------------------------------------
|
|
3533
|
+
------------ RAVEN.darkState.selector.get ---------------
|
|
3534
|
+
Peak (Best Batch): 2.46 M ops/sec
|
|
3535
|
+
Average: 1.77 M ops/sec
|
|
3536
|
+
---------------------------------------------------------
|
|
3537
|
+
------------ RAVEN.darkState.selector.set ---------------
|
|
3538
|
+
Peak (Best Batch): 8.58 M ops/sec
|
|
3539
|
+
Average: 8.18 M ops/sec
|
|
3540
|
+
---------------------------------------------------------
|
|
3541
|
+
------------ RAVEN.darkState.derived.get ---------------
|
|
3542
|
+
Peak (Best Batch): 2.47 M ops/sec
|
|
3543
|
+
Average: 1.91 M ops/sec
|
|
3544
|
+
---------------------------------------------------------
|
|
3545
|
+
------------ RAVEN.darkState.derived.set ---------------
|
|
3546
|
+
Peak (Best Batch): 12.58 M ops/sec
|
|
3547
|
+
Average: 12.15 M ops/sec
|
|
3548
|
+
---------------------------------------------------------
|
|
3549
|
+
</code></pre>
|
|
3191
3550
|
</details>
|
|
3551
|
+
<div class="markdown-alert markdown-alert-note"><p class="markdown-alert-title"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>BUILDERS LOG #16</p><p></p>
|
|
3552
|
+
<p>TLDR: design bench so that the test runs in the sub one sec time window or when 11 secs has elapsed. This rule would remove all variables concerning v8.</p>
|
|
3553
|
+
<p>The discrepency in numbers... man, am I fucking so happy that... it dawned on me when it did hahaha, or else I would literally be here for days trying to figure this out...</p>
|
|
3554
|
+
<p>SOOOOO... couple of things are working against us, thankfully I only wasted like 20 mins on this, but since we are now benching against the real live implementation in place of a set up bench and harness it changes how we hit v8 than we did previously.</p>
|
|
3555
|
+
<p>The implementation has a ready boolean to signify once everything has been initalised, that is part of the problem.</p>
|
|
3556
|
+
<p>The second problem was where exactly during v8s execution window, were we hitting exactly. For those of you that dont know v8s execution window starts with the largest burst of performance fitting within a sub 1 second window. Which is how 99% of all users us v8, which is why this exists. If v8 continues to run, it sees a massive dip, obviously, following the burst up till around the 5-6 second mark. When it expereiences another dip, due to handing off the process to v8s turbo. From here... it takes till the around the 10 sec mark to finally start hitting v8s turbo when it has fully initialized.</p>
|
|
3557
|
+
<p>Basically... the hot paths we were testing fucking... just hit it at all the wrong times as you can see here:</p>
|
|
3558
|
+
<pre><code class="language-txt">------------ RAVEN.state.getHot2 ---------------
|
|
3559
|
+
Peak (Best Batch): 1453.49 M ops/sec
|
|
3560
|
+
Average: 587.23 M ops/sec
|
|
3561
|
+
---------------------------------------------------------
|
|
3562
|
+
------------ RAVEN.state.getHot ---------------
|
|
3563
|
+
Peak (Best Batch): 376.36 M ops/sec
|
|
3564
|
+
Average: 206.64 M ops/sec
|
|
3565
|
+
---------------------------------------------------------
|
|
3566
|
+
</code></pre>
|
|
3567
|
+
<p>Prior to this run, both hot paths were only hitting 100 mill lol... as you can see here, hot 2 is hitting the burst on its way down since it is only getting 1453 here, when it should be getting almost 1700. getHot, previousl runs at 100, now almost at the very end of the burst is at 375... sooo...</p>
|
|
3568
|
+
<p>In order to have complete control and give each test the same variables... we need to design the tests differently, that way each test atleast has the same parameters to run that way we aren't accidently changing them from test to test and not making us wonder about life on why one test is so much slower then the next. When in reality, it literally has nothing to do with the code, the bench or the harness... but in fact, it was v8 all along.</p>
|
|
3569
|
+
<p>But let me be clear. We are NOT designing your average bench mark of warm up phase, fucking 5+ seconds of other bullshit and then finally start testing for another 10 secs or whatever stupid and dumb processs they designed. THAT IS NOT HOW THE REAL WORLD USES V8, but instead benchmarkers, for whatever reason, bench against a made up and unreal synthetic test. The numbers do not translate to the real world in any form, but maybe sub 1% of use cases.</p>
|
|
3570
|
+
<p>There is a reason why v8 sub 1 sec performance... bursts the way it does. Since users only hit either the sub 1 burst, or when turbo has already flattened.</p>
|
|
3571
|
+
<p>The next time you create a test, keep that in mind. Because you may not even be hitting v8 at the exact timing you should be.</p>
|
|
3572
|
+
<p>If you do not beleive a fucking word of this... that's ok, go to the message queues repo... download the main test, and run vader, rule of 2, and raven and these three disruptors will give you an exact look into how v8s execution process actually runs in real time. And you can hit it as many times as you want to witness it.</p>
|
|
3573
|
+
<p>I would suggest keeping the tests to sub 20secs because at the 26 sec mark, you will heat soak the core and performance will drop based on your thermal situation. To run these tests, there is literally 0 configuration, just run 'bun run test.ts' since buns performance is much higher than nodes, and run the non-bare metal test. As the bare metal test does not log the results per second, but instead once when the test ends.</p>
|
|
3574
|
+
</div>
|
|
3192
3575
|
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[THE DARK SIDE: USE STATE]</span> </strong></summary>
|
|
3193
3576
|
<pre><code class="language-txt">
|
|
3194
3577
|
</code></pre>
|
|
@@ -3241,6 +3624,73 @@ Average: 11.36 M ops/sec
|
|
|
3241
3624
|
<pre><code class="language-txt">
|
|
3242
3625
|
</code></pre>
|
|
3243
3626
|
</details>
|
|
3627
|
+
<div class="markdown-alert markdown-alert-note"><p class="markdown-alert-title"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>BUILDERS LOG #16</p><p></p>
|
|
3628
|
+
<p>I'm adding some final touches on the message queue and its adapters and an idea just came to me... along with a question... why do we always just create... a signle sub... when in reality there are in fact 2 subs, there is the one that devs usualy and almost 100% use which is the sub and unsub version, where you create the sub at the call site but also immediatly unsub the sub as soon as the first message comes in....</p>
|
|
3629
|
+
<p>Then theres the second kind, the kind that you do not want to unsub, the long standing version and in fact want it to stay open...</p>
|
|
3630
|
+
<p>It is super late in the game to change the api, but this would be adding to it in a way that won't disrupt the current paths, where they will stay the way they are as it already exposes the unsub version, and we simply just add the new one beside it.</p>
|
|
3631
|
+
</div>
|
|
3632
|
+
<pre><code class="language-tsx"> public sub = (<span class="hljs-function">() =></span> {
|
|
3633
|
+
<span class="hljs-keyword">const</span> fn = (<span class="hljs-attr">handler</span>: A, <span class="hljs-attr">k</span>: S, <span class="hljs-attr">s</span>: S = <span class="hljs-string">'_globalThis'</span>, <span class="hljs-attr">m</span>: S = <span class="hljs-variable language_">this</span>.<span class="hljs-property">m</span>, <span class="hljs-attr">r</span>: S = <span class="hljs-variable language_">this</span>.<span class="hljs-property">r</span>, <span class="hljs-attr">c</span>: c_type = <span class="hljs-string">"globalThis"</span> ): <span class="hljs-function">() =></span> <span class="hljs-function"><span class="hljs-params">V</span> =></span> {
|
|
3634
|
+
<span class="hljs-keyword">let</span> <span class="hljs-attr">unsub</span>: <span class="hljs-function">() =></span> V = <span class="hljs-function">() =></span> {};
|
|
3635
|
+
<span class="hljs-keyword">const</span> <span class="hljs-attr">once_handler</span>: A = <span class="hljs-function">(<span class="hljs-params">p: U</span>) =></span> {<span class="hljs-title function_">unsub</span>();<span class="hljs-title function_">handler</span>(p);};
|
|
3636
|
+
unsub = <span class="hljs-variable language_">this</span>.<span class="hljs-title function_">sub_infinity</span>(once_handler, k, s, m, r, c);
|
|
3637
|
+
<span class="hljs-keyword">return</span> unsub;
|
|
3638
|
+
};
|
|
3639
|
+
|
|
3640
|
+
public sub_infinity = (<span class="hljs-function">() =></span> {
|
|
3641
|
+
<span class="hljs-keyword">const</span> fn = (<span class="hljs-attr">handler</span>: A, <span class="hljs-attr">k</span>: S, <span class="hljs-attr">s</span>: S = <span class="hljs-string">'_globalThis'</span>, <span class="hljs-attr">m</span>: S = <span class="hljs-variable language_">this</span>.<span class="hljs-property">m</span>, <span class="hljs-attr">r</span>: S = <span class="hljs-variable language_">this</span>.<span class="hljs-property">r</span>, <span class="hljs-attr">c</span>: c_type = <span class="hljs-string">"globalThis"</span>): <span class="hljs-function">() =></span> <span class="hljs-function"><span class="hljs-params">V</span> =></span> {
|
|
3642
|
+
<span class="hljs-comment">// CHANNEL LEVEL</span>
|
|
3643
|
+
<span class="hljs-keyword">const</span> channelSet = (mesh.<span class="hljs-title function_">getR</span>(r, c)[r] ??= <span class="hljs-keyword">new</span> <span class="hljs-title class_">Set</span><A>()) <span class="hljs-keyword">as</span> <span class="hljs-title class_">Set</span><A>;
|
|
3644
|
+
channelSet.<span class="hljs-title function_">add</span>(handler);
|
|
3645
|
+
|
|
3646
|
+
<span class="hljs-comment">// SUB_CHANNEL LEVEL</span>
|
|
3647
|
+
<span class="hljs-keyword">const</span> subMap = mesh.<span class="hljs-title function_">getM</span>(m, r, c);
|
|
3648
|
+
<span class="hljs-keyword">const</span> subSet = (subMap[r] ??= <span class="hljs-keyword">new</span> <span class="hljs-title class_">Set</span><A>()) <span class="hljs-keyword">as</span> <span class="hljs-title class_">Set</span><A>;
|
|
3649
|
+
subSet.<span class="hljs-title function_">add</span>(handler);
|
|
3650
|
+
|
|
3651
|
+
<span class="hljs-comment">// TRIP_CHANNEL LEVEL</span>
|
|
3652
|
+
<span class="hljs-keyword">const</span> tripMap = mesh.<span class="hljs-title function_">getS</span>(s, m, r, c);
|
|
3653
|
+
<span class="hljs-keyword">const</span> tripSet = (tripMap[m] ??= <span class="hljs-keyword">new</span> <span class="hljs-title class_">Set</span><A>()) <span class="hljs-keyword">as</span> <span class="hljs-title class_">Set</span><A>;
|
|
3654
|
+
tripSet.<span class="hljs-title function_">add</span>(handler);
|
|
3655
|
+
|
|
3656
|
+
<span class="hljs-comment">// QUAD_CHANNEL LEVEL</span>
|
|
3657
|
+
<span class="hljs-keyword">const</span> quadMap = (tripMap[k] ??= <span class="hljs-title class_">Object</span>.<span class="hljs-title function_">create</span>(<span class="hljs-literal">null</span>)) <span class="hljs-keyword">as</span> <span class="hljs-title class_">Record</span><S, <span class="hljs-title class_">Set</span><A>>;
|
|
3658
|
+
<span class="hljs-keyword">const</span> quadSet = (quadMap[s] ??= <span class="hljs-keyword">new</span> <span class="hljs-title class_">Set</span><A>()) <span class="hljs-keyword">as</span> <span class="hljs-title class_">Set</span><A>;
|
|
3659
|
+
quadSet.<span class="hljs-title function_">add</span>(handler);
|
|
3660
|
+
|
|
3661
|
+
<span class="hljs-keyword">return</span> <span class="hljs-function">() =></span> {
|
|
3662
|
+
<span class="hljs-comment">// QUAD_CHANNEL</span>
|
|
3663
|
+
quadSet.<span class="hljs-title function_">delete</span>(handler);
|
|
3664
|
+
<span class="hljs-keyword">if</span> (!quadSet.<span class="hljs-property">size</span>) <span class="hljs-keyword">delete</span> quadMap[s];
|
|
3665
|
+
<span class="hljs-keyword">if</span> (!<span class="hljs-title class_">Object</span>.<span class="hljs-title function_">keys</span>(quadMap).<span class="hljs-property">length</span>) <span class="hljs-keyword">delete</span> tripMap[k];
|
|
3666
|
+
|
|
3667
|
+
<span class="hljs-comment">// TRIP_CHANNEL</span>
|
|
3668
|
+
tripSet.<span class="hljs-title function_">delete</span>(handler);
|
|
3669
|
+
<span class="hljs-keyword">if</span> (!tripSet.<span class="hljs-property">size</span>) <span class="hljs-keyword">delete</span> tripMap[m];
|
|
3670
|
+
|
|
3671
|
+
<span class="hljs-comment">// SUB_CHANNEL</span>
|
|
3672
|
+
subSet.<span class="hljs-title function_">delete</span>(handler);
|
|
3673
|
+
<span class="hljs-keyword">if</span> (!subSet.<span class="hljs-property">size</span>) <span class="hljs-keyword">delete</span> subMap[r];
|
|
3674
|
+
|
|
3675
|
+
<span class="hljs-comment">// CHANNEL</span>
|
|
3676
|
+
channelSet.<span class="hljs-title function_">delete</span>(handler);
|
|
3677
|
+
<span class="hljs-keyword">if</span> (!channelSet.<span class="hljs-property">size</span>) <span class="hljs-keyword">delete</span> mesh.<span class="hljs-title function_">getR</span>(r, c)[r];
|
|
3678
|
+
|
|
3679
|
+
<span class="hljs-comment">// Remove empty hierarchy nodes</span>
|
|
3680
|
+
<span class="hljs-keyword">if</span> (!<span class="hljs-title class_">Object</span>.<span class="hljs-title function_">keys</span>(subMap).<span class="hljs-property">length</span>) { <span class="hljs-keyword">delete</span> mesh.<span class="hljs-title function_">getR</span>(c, r)[m]; }
|
|
3681
|
+
<span class="hljs-keyword">if</span> (!<span class="hljs-title class_">Object</span>.<span class="hljs-title function_">keys</span>(tripMap).<span class="hljs-property">length</span>) { <span class="hljs-keyword">delete</span> mesh.<span class="hljs-title function_">getR</span>(c, r)[m]; }
|
|
3682
|
+
};
|
|
3683
|
+
};
|
|
3684
|
+
|
|
3685
|
+
<span class="hljs-keyword">return</span> fn;
|
|
3686
|
+
})();
|
|
3687
|
+
</code></pre>
|
|
3688
|
+
<div class="markdown-alert markdown-alert-note"><p class="markdown-alert-title"><svg class="octicon octicon-info mr-2" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>PERFORMANCE NOTES</p><p></p>
|
|
3689
|
+
<ul>
|
|
3690
|
+
<li>replace all maps with objs, arrays even better if you have the use case for them but arrays aren't the best for real world app use cases</li>
|
|
3691
|
+
<li>nesting fns in iiffes seems to experience a drop in total ops, from the results I have experienced. I still do this for erverything but hot paths due to increases ergo</li>
|
|
3692
|
+
</ul>
|
|
3693
|
+
</div>
|
|
3244
3694
|
|
|
3245
3695
|
<script async src="https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.js"></script>
|
|
3246
3696
|
|