@the-w1zard/singularity 1.0.11 → 1.0.13

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 CHANGED
@@ -2544,10 +2544,6 @@ Average: 5.67 M ops/sec
2544
2544
  ---------------------------------------------------------
2545
2545
  </code></pre>
2546
2546
  </details>
2547
- <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[ALIEN]</span> </strong></summary>
2548
- <pre><code class="language-txt">
2549
- </code></pre>
2550
- </details>
2551
2547
  <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 #10</p><p></p>
2552
2548
  <p>New best of best signals solution done, just needs to be tested... hope this work wasnt for nothing. This solution does not include the other atom solution I was working on, but to be honest... other than that massive part it is a very strong solution. Has agod storage solution, bus, reactive core, dom injection and more...</p>
2553
2549
  <p>Hopefully, it doesn't now shit the bed for one reason or another on the bench...</p>
@@ -2686,6 +2682,564 @@ Peak (Best Batch): 25.70 M ops/sec
2686
2682
  Average: 20.24 M ops/sec
2687
2683
  ---------------------------------------------------------
2688
2684
  </code></pre>
2685
+ </details>
2686
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[Results]</span> </strong></summary>
2687
+ <pre><code class="language-txt">------------ the_force.signal.read ---------------
2688
+ Peak (Best Batch): 422.12 M ops/sec
2689
+ Average: 286.06 M ops/sec
2690
+ ---------------------------------------------------------
2691
+ ------------ the_force.signal.peek ---------------
2692
+ Peak (Best Batch): 461.68 M ops/sec
2693
+ Average: 223.58 M ops/sec
2694
+ ---------------------------------------------------------
2695
+ ------------ the_force.signal.write ---------------
2696
+ Peak (Best Batch): 67.73 M ops/sec
2697
+ Average: 65.78 M ops/sec
2698
+ ---------------------------------------------------------
2699
+ ------------ the_force.signal.write.unchanged ---------------
2700
+ Peak (Best Batch): 95.00 M ops/sec
2701
+ Average: 87.59 M ops/sec
2702
+ ---------------------------------------------------------
2703
+ ------------ the_force.signal.read.write ---------------
2704
+ Peak (Best Batch): 54.37 M ops/sec
2705
+ Average: 51.29 M ops/sec
2706
+ ---------------------------------------------------------
2707
+ ------------ the_force.computed.read.cached ---------------
2708
+ Peak (Best Batch): 73.22 M ops/sec
2709
+ Average: 67.49 M ops/sec
2710
+ ---------------------------------------------------------
2711
+ ------------ the_force.f_computed.read.first ---------------
2712
+ Peak (Best Batch): 78.95 M ops/sec
2713
+ Average: 73.12 M ops/sec
2714
+ ---------------------------------------------------------
2715
+ ------------ the_force.f_computed.invalidate ---------------
2716
+ Peak (Best Batch): 61.56 M ops/sec
2717
+ Average: 56.34 M ops/sec
2718
+ ---------------------------------------------------------
2719
+ ------------ the_force.f_computed.recompute ---------------
2720
+ Peak (Best Batch): 72.72 M ops/sec
2721
+ Average: 67.62 M ops/sec
2722
+ ---------------------------------------------------------
2723
+ ------------ the_force.f_computed.chain.8 ---------------
2724
+ Peak (Best Batch): 71.81 M ops/sec
2725
+ Average: 64.78 M ops/sec
2726
+ ---------------------------------------------------------
2727
+ ------------ the_force.f_computed.chain.32 ---------------
2728
+ Peak (Best Batch): 66.00 M ops/sec
2729
+ Average: 63.71 M ops/sec
2730
+ ---------------------------------------------------------
2731
+ ------------ the_force.f_effect.create ---------------
2732
+ Peak (Best Batch): 26.56 M ops/sec
2733
+ Average: 19.49 M ops/sec
2734
+ ---------------------------------------------------------
2735
+ ------------ the_force.f_effect.create.dependency ---------------
2736
+ Peak (Best Batch): 24.85 M ops/sec
2737
+ Average: 18.19 M ops/sec
2738
+ ---------------------------------------------------------
2739
+ ------------ the_force.f_effect.dispose ---------------
2740
+ Peak (Best Batch): 22.79 M ops/sec
2741
+ Average: 15.13 M ops/sec
2742
+ ---------------------------------------------------------
2743
+ ------------ the_force.f_effect.cleanup ---------------
2744
+ Peak (Best Batch): 57.04 M ops/sec
2745
+ Average: 47.35 M ops/sec
2746
+ ---------------------------------------------------------
2747
+ ------------ the_force.f_effect.rerun ---------------
2748
+ Peak (Best Batch): 64.05 M ops/sec
2749
+ Average: 54.14 M ops/sec
2750
+ ---------------------------------------------------------
2751
+ ------------ the_force.dependencies.fan-in.16 ---------------
2752
+ Peak (Best Batch): 56.48 M ops/sec
2753
+ Average: 49.24 M ops/sec
2754
+ ---------------------------------------------------------
2755
+ ------------ the_force.dependencies.fan-out.16 ---------------
2756
+ Peak (Best Batch): 61.98 M ops/sec
2757
+ Average: 50.10 M ops/sec
2758
+ ---------------------------------------------------------
2759
+ ------------ the_force.dependencies.conditional.switch ---------------
2760
+ Peak (Best Batch): 71.62 M ops/sec
2761
+ Average: 59.99 M ops/sec
2762
+ ---------------------------------------------------------
2763
+ ------------ the_force.f_batch.2 ---------------
2764
+ Peak (Best Batch): 54.39 M ops/sec
2765
+ Average: 48.17 M ops/sec
2766
+ ---------------------------------------------------------
2767
+ ------------ the_force.f_batch.16 ---------------
2768
+ Peak (Best Batch): 6.05 M ops/sec
2769
+ Average: 5.61 M ops/sec
2770
+ ---------------------------------------------------------
2771
+ ------------ the_force.graph.diamond ---------------
2772
+ Peak (Best Batch): 55.96 M ops/sec
2773
+ Average: 48.39 M ops/sec
2774
+ ---------------------------------------------------------
2775
+ ------------ the_force.graph.branch.16 ---------------
2776
+ Peak (Best Batch): 54.13 M ops/sec
2777
+ Average: 47.87 M ops/sec
2778
+ ---------------------------------------------------------
2779
+ ------------ the_force.bus.send ---------------
2780
+ Peak (Best Batch): 73.65 M ops/sec
2781
+ Average: 71.04 M ops/sec
2782
+ ---------------------------------------------------------
2783
+ ------------ the_force.bus.hotSend ---------------
2784
+ Peak (Best Batch): 165.37 M ops/sec
2785
+ Average: 118.85 M ops/sec
2786
+ ---------------------------------------------------------
2787
+ ------------ the_force.bus.stream.publish.1 ---------------
2788
+ Peak (Best Batch): 138.75 M ops/sec
2789
+ Average: 135.72 M ops/sec
2790
+ ---------------------------------------------------------
2791
+ ------------ the_force.bus.stream.publish.16 ---------------
2792
+ Peak (Best Batch): 31.65 M ops/sec
2793
+ Average: 28.22 M ops/sec
2794
+ ---------------------------------------------------------
2795
+ ------------ the_force.store.get.hot ---------------
2796
+ Peak (Best Batch): 213.40 M ops/sec
2797
+ Average: 194.54 M ops/sec
2798
+ ---------------------------------------------------------
2799
+ ------------ the_force.store.get.missing ---------------
2800
+ Peak (Best Batch): 161.60 M ops/sec
2801
+ Average: 147.76 M ops/sec
2802
+ ---------------------------------------------------------
2803
+ ------------ the_force.store.has.existing ---------------
2804
+ Peak (Best Batch): 204.37 M ops/sec
2805
+ Average: 183.92 M ops/sec
2806
+ ---------------------------------------------------------
2807
+ ------------ the_force.store.has.missing ---------------
2808
+ Peak (Best Batch): 169.69 M ops/sec
2809
+ Average: 144.84 M ops/sec
2810
+ ---------------------------------------------------------
2811
+ ------------ the_force.store.set.changed ---------------
2812
+ Peak (Best Batch): 0.67 M ops/sec
2813
+ Average: 0.64 M ops/sec
2814
+ ---------------------------------------------------------
2815
+ ------------ the_force.store.set.same ---------------
2816
+ Peak (Best Batch): 119.15 M ops/sec
2817
+ Average: 112.79 M ops/sec
2818
+ ---------------------------------------------------------
2819
+ ------------ the_force.store.set.notify ---------------
2820
+ Peak (Best Batch): 0.68 M ops/sec
2821
+ Average: 0.59 M ops/sec
2822
+ ---------------------------------------------------------
2823
+ ------------ the_force.store.fanout.8 ---------------
2824
+ Peak (Best Batch): 0.67 M ops/sec
2825
+ Average: 0.64 M ops/sec
2826
+ ---------------------------------------------------------
2827
+ ------------ the_force.store.fanin.8 ---------------
2828
+ Peak (Best Batch): 0.29 M ops/sec
2829
+ Average: 0.25 M ops/sec
2830
+ ---------------------------------------------------------
2831
+ ------------ the_force.store.getMany.8 ---------------
2832
+ Peak (Best Batch): 11.46 M ops/sec
2833
+ Average: 10.19 M ops/sec
2834
+ ---------------------------------------------------------
2835
+ ------------ the_force.store.delete.recreate ---------------
2836
+ Peak (Best Batch): 0.28 M ops/sec
2837
+ Average: 0.23 M ops/sec
2838
+ </code></pre>
2839
+ </details>
2840
+ <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 #11</p><p></p>
2841
+ <p>Shouldn't even be working on this right now... but here we are, not bad for a first shot though. Same test for both, same bench, same machine, new solution hits 12 out of the 18 tests over alien. I'll have to come back to this later but... really though not bad.</p>
2842
+ </div>
2843
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[ALIEN]</span> </strong></summary>
2844
+ <pre><code class="language-txt">------------ REACTIVE_SYSTEM.signal.get ---------------
2845
+ Peak (Best Batch): 1131.22 M ops/sec
2846
+ Average: 422.14 M ops/sec
2847
+ ---------------------------------------------------------
2848
+ ------------ REACTIVE_SYSTEM.signal.set ---------------
2849
+ Peak (Best Batch): 90.69 M ops/sec
2850
+ Average: 79.36 M ops/sec
2851
+ ---------------------------------------------------------
2852
+ ------------ REACTIVE_SYSTEM.signal.get.set ---------------
2853
+ Peak (Best Batch): 87.77 M ops/sec
2854
+ Average: 74.61 M ops/sec
2855
+ ---------------------------------------------------------
2856
+ ------------ REACTIVE_SYSTEM.computed.get.cached ---------------
2857
+ Peak (Best Batch): 81.35 M ops/sec
2858
+ Average: 72.91 M ops/sec
2859
+ ---------------------------------------------------------
2860
+ ------------ REACTIVE_SYSTEM.computed.invalidate ---------------
2861
+ Peak (Best Batch): 66.74 M ops/sec
2862
+ Average: 43.18 M ops/sec
2863
+ ---------------------------------------------------------
2864
+ ------------ REACTIVE_SYSTEM.computed.recompute ---------------
2865
+ Peak (Best Batch): 22.75 M ops/sec
2866
+ Average: 19.77 M ops/sec
2867
+ ---------------------------------------------------------
2868
+ ------------ REACTIVE_SYSTEM.computed.chain.cached ---------------
2869
+ Peak (Best Batch): 107.71 M ops/sec
2870
+ Average: 80.63 M ops/sec
2871
+ ---------------------------------------------------------
2872
+ ------------ REACTIVE_SYSTEM.computed.chain.recompute ---------------
2873
+ Peak (Best Batch): 6.81 M ops/sec
2874
+ Average: 5.63 M ops/sec
2875
+ ---------------------------------------------------------
2876
+ ------------ REACTIVE_SYSTEM.effect.create-dispose ---------------
2877
+ Peak (Best Batch): 20.89 M ops/sec
2878
+ Average: 14.00 M ops/sec
2879
+ ---------------------------------------------------------
2880
+ ------------ REACTIVE_SYSTEM.effect.notify ---------------
2881
+ Peak (Best Batch): 6.62 M ops/sec
2882
+ Average: 5.59 M ops/sec
2883
+ ---------------------------------------------------------
2884
+ ------------ REACTIVE_SYSTEM.effect.cleanup-rerun ---------------
2885
+ Peak (Best Batch): 6.33 M ops/sec
2886
+ Average: 5.45 M ops/sec
2887
+ ---------------------------------------------------------
2888
+ ------------ REACTIVE_SYSTEM.dependency.track ---------------
2889
+ Peak (Best Batch): 21.15 M ops/sec
2890
+ Average: 14.77 M ops/sec
2891
+ ---------------------------------------------------------
2892
+ ------------ REACTIVE_SYSTEM.fanout.16 ---------------
2893
+ Peak (Best Batch): 1.93 M ops/sec
2894
+ Average: 0.95 M ops/sec
2895
+ ---------------------------------------------------------
2896
+ ------------ REACTIVE_SYSTEM.fanout.64 ---------------
2897
+ Peak (Best Batch): 0.52 M ops/sec
2898
+ Average: 0.46 M ops/sec
2899
+ ---------------------------------------------------------
2900
+ ------------ REACTIVE_SYSTEM.batch.3-writes ---------------
2901
+ Peak (Best Batch): 12.07 M ops/sec
2902
+ Average: 9.11 M ops/sec
2903
+ ---------------------------------------------------------
2904
+ ------------ REACTIVE_SYSTEM.batch.effect.3-writes ---------------
2905
+ Peak (Best Batch): 4.11 M ops/sec
2906
+ Average: 3.55 M ops/sec
2907
+ ---------------------------------------------------------
2908
+ ------------ REACTIVE_SYSTEM.graph.diamond.cached ---------------
2909
+ Peak (Best Batch): 115.07 M ops/sec
2910
+ Average: 103.92 M ops/sec
2911
+ ---------------------------------------------------------
2912
+ ------------ REACTIVE_SYSTEM.graph.diamond.recompute ---------------
2913
+ Peak (Best Batch): 3.40 M ops/sec
2914
+ Average: 2.99 M ops/sec
2915
+ ---------------------------------------------------------
2916
+ ------------ REACTIVE_SYSTEM.graph.branch.16.cached ---------------
2917
+ Peak (Best Batch): 117.01 M ops/sec
2918
+ Average: 99.41 M ops/sec
2919
+ ---------------------------------------------------------
2920
+ ------------ REACTIVE_SYSTEM.graph.branch.16.recompute ---------------
2921
+ Peak (Best Batch): 0.52 M ops/sec
2922
+ Average: 0.48 M ops/sec
2923
+ ---------------------------------------------------------
2924
+ </code></pre>
2925
+ </details>
2926
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[ALIEN]</span> </strong></summary>
2927
+ <pre><code class="language-txt">------------ SIGNAL_ENGINE.signal.get ---------------
2928
+ Peak (Best Batch): 1453.49 M ops/sec
2929
+ Average: 490.50 M ops/sec
2930
+ ---------------------------------------------------------
2931
+ ------------ SIGNAL_ENGINE.signal.peek ---------------
2932
+ Peak (Best Batch): 423.55 M ops/sec
2933
+ Average: 212.93 M ops/sec
2934
+ ---------------------------------------------------------
2935
+ ------------ SIGNAL_ENGINE.signal.set ---------------
2936
+ Peak (Best Batch): 82.05 M ops/sec
2937
+ Average: 69.92 M ops/sec
2938
+ ---------------------------------------------------------
2939
+ ------------ SIGNAL_ENGINE.signal.get.set ---------------
2940
+ Peak (Best Batch): 99.16 M ops/sec
2941
+ Average: 87.44 M ops/sec
2942
+ ---------------------------------------------------------
2943
+ ------------ SIGNAL_ENGINE.computed.get.cached ---------------
2944
+ Peak (Best Batch): 76.11 M ops/sec
2945
+ Average: 67.68 M ops/sec
2946
+ ---------------------------------------------------------
2947
+ ------------ SIGNAL_ENGINE.computed.invalidate ---------------
2948
+ Peak (Best Batch): 38.21 M ops/sec
2949
+ Average: 30.87 M ops/sec
2950
+ ---------------------------------------------------------
2951
+ ------------ SIGNAL_ENGINE.computed.recompute ---------------
2952
+ Peak (Best Batch): 17.53 M ops/sec
2953
+ Average: 13.35 M ops/sec
2954
+ ---------------------------------------------------------
2955
+ ------------ SIGNAL_ENGINE.computed.chain.cached ---------------
2956
+ Peak (Best Batch): 73.43 M ops/sec
2957
+ Average: 57.11 M ops/sec
2958
+ ---------------------------------------------------------
2959
+ ------------ SIGNAL_ENGINE.computed.chain.recompute ---------------
2960
+ Peak (Best Batch): 6.92 M ops/sec
2961
+ Average: 5.23 M ops/sec
2962
+ ---------------------------------------------------------
2963
+ ------------ SIGNAL_ENGINE.effect.create-dispose ---------------
2964
+ Peak (Best Batch): 23.11 M ops/sec
2965
+ Average: 14.12 M ops/sec
2966
+ ---------------------------------------------------------
2967
+ ------------ SIGNAL_ENGINE.effect.notify ---------------
2968
+ Peak (Best Batch): 19.85 M ops/sec
2969
+ Average: 13.86 M ops/sec
2970
+ ---------------------------------------------------------
2971
+ ------------ SIGNAL_ENGINE.effect.cleanup-rerun ---------------
2972
+ Peak (Best Batch): 13.55 M ops/sec
2973
+ Average: 9.24 M ops/sec
2974
+ ---------------------------------------------------------
2975
+ ------------ SIGNAL_ENGINE.dependency.track ---------------
2976
+ Peak (Best Batch): 13.37 M ops/sec
2977
+ Average: 11.81 M ops/sec
2978
+ ---------------------------------------------------------
2979
+ ------------ SIGNAL_ENGINE.fanout.16 ---------------
2980
+ Peak (Best Batch): 2.59 M ops/sec
2981
+ Average: 2.33 M ops/sec
2982
+ ---------------------------------------------------------
2983
+ ------------ SIGNAL_ENGINE.fanout.64 ---------------
2984
+ Peak (Best Batch): 0.73 M ops/sec
2985
+ Average: 0.67 M ops/sec
2986
+ ---------------------------------------------------------
2987
+ ------------ SIGNAL_ENGINE.batch.3-writes ---------------
2988
+ Peak (Best Batch): 29.15 M ops/sec
2989
+ Average: 25.92 M ops/sec
2990
+ ---------------------------------------------------------
2991
+ ------------ SIGNAL_ENGINE.batch.effect.3-writes ---------------
2992
+ Peak (Best Batch): 10.96 M ops/sec
2993
+ Average: 9.87 M ops/sec
2994
+ ---------------------------------------------------------
2995
+ ------------ SIGNAL_ENGINE.graph.diamond.cached ---------------
2996
+ Peak (Best Batch): 125.38 M ops/sec
2997
+ Average: 99.82 M ops/sec
2998
+ ---------------------------------------------------------
2999
+ ------------ SIGNAL_ENGINE.graph.diamond.recompute ---------------
3000
+ Peak (Best Batch): 4.86 M ops/sec
3001
+ Average: 4.36 M ops/sec
3002
+ ---------------------------------------------------------
3003
+ ------------ SIGNAL_ENGINE.graph.branch.16.cached ---------------
3004
+ Peak (Best Batch): 154.25 M ops/sec
3005
+ Average: 133.93 M ops/sec
3006
+ ---------------------------------------------------------
3007
+ ------------ SIGNAL_ENGINE.graph.branch.16.recompute ---------------
3008
+ Peak (Best Batch): 1.22 M ops/sec
3009
+ Average: 1.06 M ops/sec
3010
+ ---------------------------------------------------------
3011
+ </code></pre>
3012
+ </details>
3013
+ <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 #12</p><p></p>
3014
+ <p>Other than the atoms solution needing to be redone... the dark side is almost complete... so not bad.</p>
3015
+ <p>For the bus, cbor has always been the encoder that was used... but I have heard that avro is faster. And now that I have a custom avro encoder, I might as well bench the two against eachother to see which is faster.</p>
3016
+ <p>That reminds me, I need to hook the 2 new databases up to the solution, so there is that to do as well. But that also uses cbro, so if avro is truly faster atleast both the bus and the db will be getting upgrades in performance. And it looks to be getting a 2x upgrade... not bad, but gonna compare it by benching some other solutions.</p>
3017
+ <p>Ah, fuck me... well, theres a couple of days back to the drawing for a new encoder... fuck. Why am I just now benching these... ahh, I did bench an encoder, but not these ones and obviously at the time, I assumed they would be just as fast. Well... that fucking sucks.</p>
3018
+ <p>Well... its currently faster than every solution I have benched it again... but, man I am so annoyed right now, as it means that the disruptors are truly only good for one workload... its not an entire loss, because we do have uses for that, it just means it can't be the go to solution whenever you reach for signals... which it is a fucking very good thing that the dark side has two of them, haha. Not to mention, 2 buses, although weirdly the non-raptor bus beats the raptor, even when the raptor is given the perfect workdload, riddle me that.</p>
3019
+ <p>BUT at the very least, yet another solution that we are the fastest that I've tested against, which gives us no deps to rely on while at the same time continuing to raise the ceiling. And raising that ceiling is the name of the game.</p>
3020
+ <p>Almsot forgot too, we do have that other signals solution that we were working on earlier, and the tests did actually look good... because I already think that I can come up in the areas where it did not beat alien... soooo, there is that too.</p>
3021
+ </div>
3022
+ <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 #13</p><p></p>
3023
+ <p>I don't know why I am designing a new db... Truly...</p>
3024
+ <p>This one is different though, the current custom implementation is a single value file write with atomic writes, using binary as the encoder, and during the atomic process it doesn't append to the file but creates the first file, deletes the original and then renames the newly created file with the actual key value.</p>
3025
+ <p>This one is a append-only write-ahead log with periodic snapshots/compaction and obviously hot path reads, currently hitting 1131.22 mill ops / sec. Right I truly do not know if that is... Like amazing, but it is a fuck ton better than what was projected and what can be found out there... that's for sure.</p>
3026
+ <p>Ya, the only solution that comes close... uses a god damn fucking server farm... haha, oh my god, ya let me go build that real quick to even the playing field.</p>
3027
+ <p>soooooooo......... I think this is... how it is gonna go down.</p>
3028
+ <ul>
3029
+ <li>Non-raptor hot path call: 1.133 bill</li>
3030
+ <li>Raptor hot path call: 3.1 bill</li>
3031
+ <li>the solutions actual get call, what I'll do is a check on the key and value, if it meets the reqs then it gets funneled off to the disruptor... and because of that check... probably loose about a billion ops, HOPEFULLY... just a billion, fingers crossed for even less. If it doesn't meet the reqs then it gets funneled to the server db solution.</li>
3032
+ </ul>
3033
+ <p>And I'm probably going to take the current db that I'm working on, and basically create an adapter out of it... because ngins surface area is vast, and I am not creating that shit again because right now, the current solution is so tiny in comparison soooooo. It would just be a matter of transffering evreything over to an adapter so we would have two VERY lean custom file writing solutions for the server side database, AND... it actually grants us something else too, I don't know why I didn't think of this before...</p>
3034
+ <p>So basically the choice is, because I only want one api...</p>
3035
+ <ul>
3036
+ <li>a dual db, where kv idb is client side, then we have the above mentioned db server side, calling on the api on the client side would auto route the fn call to the idb solution, and the same server side for the server db...</li>
3037
+ <li>OR, we bridge the server db to the client side... so the server db would be available for use both client and server...</li>
3038
+ </ul>
3039
+ <p>It comes down to... offline storage capable, OR... accessing the same storage backend whether ytou are in the client or on the server, since it doesn't matter where you call it from... so that's the trade</p>
3040
+ </div>
3041
+ <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 #14</p><p></p>
3042
+ <p>And we are now starting the last phase of benching everything on the dark side, along with a couple of items from the light side for comparative baselines. As you can see, I am just limiting the upgrades to just the darkside as this is the state / context system for the light side.</p>
3043
+ <p>Still have to remake the atoms solution, and do some final placement of code... but we are on the last stretch, fucking finally.</p>
3044
+ <p>We still have all the docs to write, which there is a lot of that, hopefully we can get several ais to help with that. I have already gotten a huge chunk already done, since there are already 20 repos up with docs. Not to mention, repos like the one I'm currently writing docs for... This is gonna sound rediculous, but if it were the avg dev it would be split up into roughly 87 repos, instead of the one, lol.</p>
3045
+ </div>
3046
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[THE LIGHT SIDE: THE CLOUD]</span> </strong></summary>
3047
+ <pre><code class="language-txt">------------ JSObj[&#x27;keyy&#x27;]; ---------------
3048
+ Peak (Best Batch): 1697.79 M ops/sec
3049
+ Average: 673.22 M ops/sec
3050
+ ---------------------------------------------------------
3051
+ ------------ O2Test[&#x27;keyy&#x27;] ---------------
3052
+ Peak (Best Batch): 423.55 M ops/sec
3053
+ Average: 217.26 M ops/sec
3054
+ ---------------------------------------------------------
3055
+ ------------ O2.get(k) [real #data] ---------------
3056
+ Peak (Best Batch): 77.73 M ops/sec
3057
+ Average: 69.05 M ops/sec
3058
+ ---------------------------------------------------------
3059
+ ------------ O2.get(derived clean) ---------------
3060
+ Peak (Best Batch): 69.00 M ops/sec
3061
+ Average: 65.31 M ops/sec
3062
+ ---------------------------------------------------------
3063
+ ------------ O2.get(derived dirty) ---------------
3064
+ Peak (Best Batch): 3.20 M ops/sec
3065
+ Average: 2.93 M ops/sec
3066
+ ---------------------------------------------------------
3067
+ ------------ O2.get(miss) ---------------
3068
+ Peak (Best Batch): 131.04 M ops/sec
3069
+ Average: 116.88 M ops/sec
3070
+ ---------------------------------------------------------
3071
+ ------------ O2.h(k) hit ---------------
3072
+ Peak (Best Batch): 110.41 M ops/sec
3073
+ Average: 70.39 M ops/sec
3074
+ ---------------------------------------------------------
3075
+ ------------ O2.h(k) miss ---------------
3076
+ Peak (Best Batch): 178.95 M ops/sec
3077
+ Average: 116.84 M ops/sec
3078
+ ---------------------------------------------------------
3079
+ ------------ O2.s(v,k) overwrite ---------------
3080
+ Peak (Best Batch): 7.03 M ops/sec
3081
+ Average: 6.38 M ops/sec
3082
+ ---------------------------------------------------------
3083
+ ------------ O2.s(v,k) new+del churn ---------------
3084
+ Peak (Best Batch): 0.92 M ops/sec
3085
+ Average: 0.82 M ops/sec
3086
+ ---------------------------------------------------------
3087
+ ------------ O2.size ---------------
3088
+ Peak (Best Batch): 4.93 M ops/sec
3089
+ Average: 4.03 M ops/sec
3090
+ ---------------------------------------------------------
3091
+ </code></pre>
3092
+ </details>
3093
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[THE DARK SIDE: THE CLOUD]</span> </strong></summary>
3094
+ <pre><code class="language-txt">------------ RAVEN.store.get ---------------
3095
+ Peak (Best Batch): 848.18 M ops/sec
3096
+ Average: 100.58 M ops/sec
3097
+ ---------------------------------------------------------
3098
+ ------------ RAVEN.store.has ---------------
3099
+ Peak (Best Batch): 56.47 M ops/sec
3100
+ Average: 16.21 M ops/sec
3101
+ ---------------------------------------------------------
3102
+ ------------ RAVEN.store.set ---------------
3103
+ Peak (Best Batch): 21.46 M ops/sec
3104
+ Average: 14.43 M ops/sec
3105
+ ---------------------------------------------------------
3106
+ ------------ RAVEN.store.set.functional ---------------
3107
+ Peak (Best Batch): 15.02 M ops/sec
3108
+ Average: 11.02 M ops/sec
3109
+ ---------------------------------------------------------
3110
+ ------------ RAVEN.store.get.set ---------------
3111
+ Peak (Best Batch): 18.21 M ops/sec
3112
+ Average: 17.29 M ops/sec
3113
+ ---------------------------------------------------------
3114
+ ------------ RAVEN.store.entries ---------------
3115
+ Peak (Best Batch): 4.33 M ops/sec
3116
+ Average: 4.05 M ops/sec
3117
+ ---------------------------------------------------------
3118
+ ------------ RAVEN.store.subscribe ---------------
3119
+ Peak (Best Batch): 5.61 M ops/sec
3120
+ Average: 4.08 M ops/sec
3121
+ ---------------------------------------------------------
3122
+ ------------ RAVEN.store.persist.get ---------------
3123
+ Peak (Best Batch): 96.22 M ops/sec
3124
+ Average: 93.96 M ops/sec
3125
+ ---------------------------------------------------------
3126
+ ------------ RAVEN.store.persist.has ---------------
3127
+ Peak (Best Batch): 100.07 M ops/sec
3128
+ Average: 95.16 M ops/sec
3129
+ ---------------------------------------------------------
3130
+ ------------ RAVEN.store.persist.set ---------------
3131
+ Peak (Best Batch): 26.52 M ops/sec
3132
+ Average: 18.09 M ops/sec
3133
+ ---------------------------------------------------------
3134
+ ------------ RAVEN.state.get ---------------
3135
+ Peak (Best Batch): 91.61 M ops/sec
3136
+ Average: 75.71 M ops/sec
3137
+ ---------------------------------------------------------
3138
+ ------------ RAVEN.state.set ---------------
3139
+ Peak (Best Batch): 18.10 M ops/sec
3140
+ Average: 13.87 M ops/sec
3141
+ ---------------------------------------------------------
3142
+ ------------ RAVEN.state.get.set ---------------
3143
+ Peak (Best Batch): 42.24 M ops/sec
3144
+ Average: 39.88 M ops/sec
3145
+ ---------------------------------------------------------
3146
+ ------------ RAVEN.state.getAll ---------------
3147
+ Peak (Best Batch): 2.79 M ops/sec
3148
+ Average: 2.58 M ops/sec
3149
+ ---------------------------------------------------------
3150
+ ------------ RAVEN.state.getByPrefix ---------------
3151
+ Peak (Best Batch): 1.99 M ops/sec
3152
+ Average: 1.84 M ops/sec
3153
+ ---------------------------------------------------------
3154
+ ------------ RAVEN.state.subscribe ---------------
3155
+ Peak (Best Batch): 6.22 M ops/sec
3156
+ Average: 5.50 M ops/sec
3157
+ ---------------------------------------------------------
3158
+ ------------ RAVEN.state.notify ---------------
3159
+ Peak (Best Batch): 1.90 M ops/sec
3160
+ Average: 1.29 M ops/sec
3161
+ ---------------------------------------------------------
3162
+ ------------ RAVEN.darkState.get ---------------
3163
+ Peak (Best Batch): 2.61 M ops/sec
3164
+ Average: 2.07 M ops/sec
3165
+ ---------------------------------------------------------
3166
+ ------------ RAVEN.darkState.set ---------------
3167
+ Peak (Best Batch): 19.63 M ops/sec
3168
+ Average: 16.64 M ops/sec
3169
+ ---------------------------------------------------------
3170
+ ------------ RAVEN.darkState.get.set ---------------
3171
+ Peak (Best Batch): 2.40 M ops/sec
3172
+ Average: 1.89 M ops/sec
3173
+ ---------------------------------------------------------
3174
+ ------------ RAVEN.darkState.selector.get ---------------
3175
+ Peak (Best Batch): 2.65 M ops/sec
3176
+ Average: 2.06 M ops/sec
3177
+ ---------------------------------------------------------
3178
+ ------------ RAVEN.darkState.selector.set ---------------
3179
+ Peak (Best Batch): 8.88 M ops/sec
3180
+ Average: 7.64 M ops/sec
3181
+ ---------------------------------------------------------
3182
+ ------------ RAVEN.darkState.derived.get ---------------
3183
+ Peak (Best Batch): 2.61 M ops/sec
3184
+ Average: 2.03 M ops/sec
3185
+ ---------------------------------------------------------
3186
+ ------------ RAVEN.darkState.derived.set ---------------
3187
+ Peak (Best Batch): 12.12 M ops/sec
3188
+ Average: 11.36 M ops/sec
3189
+ ---------------------------------------------------------
3190
+ </code></pre>
3191
+ </details>
3192
+ <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
+ <pre><code class="language-txt">
3194
+ </code></pre>
3195
+ </details>
3196
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: SIGNALS]</span> </strong></summary>
3197
+ <pre><code class="language-txt">
3198
+ </code></pre>
3199
+ </details>
3200
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: SPREADSHEET]</span> </strong></summary>
3201
+ <pre><code class="language-txt">
3202
+ </code></pre>
3203
+ </details>
3204
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: STREAMING]</span> </strong></summary>
3205
+ <pre><code class="language-txt">
3206
+ </code></pre>
3207
+ </details>
3208
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: BATCHING]</span> </strong></summary>
3209
+ <pre><code class="language-txt">
3210
+ </code></pre>
3211
+ </details>
3212
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[SIGNALS]</span> </strong></summary>
3213
+ <pre><code class="language-txt">
3214
+ </code></pre>
3215
+ </details>
3216
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[SIGNALS: ATOMS]</span> </strong></summary>
3217
+ <pre><code class="language-txt">
3218
+ </code></pre>
3219
+ </details>
3220
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[SIGNALS: NEW IMPLEMENTATION]</span> </strong></summary>
3221
+ <pre><code class="language-txt">
3222
+ </code></pre>
3223
+ </details>
3224
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[DISTRIBUTED REACTIVE STATE]</span> </strong></summary>
3225
+ <pre><code class="language-txt">
3226
+ </code></pre>
3227
+ </details>
3228
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[MESSAGE QUEUE / BUS]</span> </strong></summary>
3229
+ <pre><code class="language-txt">
3230
+ </code></pre>
3231
+ </details>
3232
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: RULE OF 2]</span> </strong></summary>
3233
+ <pre><code class="language-txt">
3234
+ </code></pre>
3235
+ </details>
3236
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[DB]</span> </strong></summary>
3237
+ <pre><code class="language-txt">
3238
+ </code></pre>
3239
+ </details>
3240
+ <details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[G BUS]</span> </strong></summary>
3241
+ <pre><code class="language-txt">
3242
+ </code></pre>
2689
3243
  </details>
2690
3244
 
2691
3245
  <script async src="https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.js"></script>