@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 +558 -4
- package/README.md +879 -6
- package/dist/comps/DISRUPTOR_CRYPTO.js +293 -0
- package/dist/comps/binary.js +611 -0
- package/dist/comps/byte_id.js +40 -0
- package/dist/comps/cell-worker.js +120 -0
- package/dist/comps/cell.js +2478 -0
- package/dist/comps/create_live_self.js +22 -0
- package/dist/comps/queue.js +532 -0
- package/dist/comps/vm-types.js +1 -0
- package/dist/db/client/kv_idb.js +590 -0
- package/dist/db/server/bench.js +28 -0
- package/dist/db/server/binary.js +43 -0
- package/dist/db/server/constants.js +8 -0
- package/dist/db/server/crc.js +15 -0
- package/dist/db/server/db.js +1475 -0
- package/dist/db/server/manifest.js +34 -0
- package/dist/db/server/pages.js +100 -0
- package/dist/db/server/storage-worker.js +152 -0
- package/dist/db/server/types.js +14 -0
- package/dist/db/server/wal.js +81 -0
- package/dist/index.js +1 -0
- package/dist/signals.js +18435 -0
- package/dist/y.js +1324 -0
- package/package.json +13 -6
package/README.md
CHANGED
|
@@ -2622,13 +2622,7 @@ Average: 5.67 M ops/sec
|
|
|
2622
2622
|
|
|
2623
2623
|
</details>
|
|
2624
2624
|
|
|
2625
|
-
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[ALIEN]</span> </strong></summary>
|
|
2626
2625
|
|
|
2627
|
-
```txt
|
|
2628
|
-
|
|
2629
|
-
```
|
|
2630
|
-
|
|
2631
|
-
</details>
|
|
2632
2626
|
|
|
2633
2627
|
|
|
2634
2628
|
> [!NOTE] BUILDERS LOG #10
|
|
@@ -2780,3 +2774,882 @@ Average: 20.24 M ops/sec
|
|
|
2780
2774
|
|
|
2781
2775
|
</details>
|
|
2782
2776
|
|
|
2777
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[Results]</span> </strong></summary>
|
|
2778
|
+
|
|
2779
|
+
```txt
|
|
2780
|
+
------------ the_force.signal.read ---------------
|
|
2781
|
+
Peak (Best Batch): 422.12 M ops/sec
|
|
2782
|
+
Average: 286.06 M ops/sec
|
|
2783
|
+
---------------------------------------------------------
|
|
2784
|
+
------------ the_force.signal.peek ---------------
|
|
2785
|
+
Peak (Best Batch): 461.68 M ops/sec
|
|
2786
|
+
Average: 223.58 M ops/sec
|
|
2787
|
+
---------------------------------------------------------
|
|
2788
|
+
------------ the_force.signal.write ---------------
|
|
2789
|
+
Peak (Best Batch): 67.73 M ops/sec
|
|
2790
|
+
Average: 65.78 M ops/sec
|
|
2791
|
+
---------------------------------------------------------
|
|
2792
|
+
------------ the_force.signal.write.unchanged ---------------
|
|
2793
|
+
Peak (Best Batch): 95.00 M ops/sec
|
|
2794
|
+
Average: 87.59 M ops/sec
|
|
2795
|
+
---------------------------------------------------------
|
|
2796
|
+
------------ the_force.signal.read.write ---------------
|
|
2797
|
+
Peak (Best Batch): 54.37 M ops/sec
|
|
2798
|
+
Average: 51.29 M ops/sec
|
|
2799
|
+
---------------------------------------------------------
|
|
2800
|
+
------------ the_force.computed.read.cached ---------------
|
|
2801
|
+
Peak (Best Batch): 73.22 M ops/sec
|
|
2802
|
+
Average: 67.49 M ops/sec
|
|
2803
|
+
---------------------------------------------------------
|
|
2804
|
+
------------ the_force.f_computed.read.first ---------------
|
|
2805
|
+
Peak (Best Batch): 78.95 M ops/sec
|
|
2806
|
+
Average: 73.12 M ops/sec
|
|
2807
|
+
---------------------------------------------------------
|
|
2808
|
+
------------ the_force.f_computed.invalidate ---------------
|
|
2809
|
+
Peak (Best Batch): 61.56 M ops/sec
|
|
2810
|
+
Average: 56.34 M ops/sec
|
|
2811
|
+
---------------------------------------------------------
|
|
2812
|
+
------------ the_force.f_computed.recompute ---------------
|
|
2813
|
+
Peak (Best Batch): 72.72 M ops/sec
|
|
2814
|
+
Average: 67.62 M ops/sec
|
|
2815
|
+
---------------------------------------------------------
|
|
2816
|
+
------------ the_force.f_computed.chain.8 ---------------
|
|
2817
|
+
Peak (Best Batch): 71.81 M ops/sec
|
|
2818
|
+
Average: 64.78 M ops/sec
|
|
2819
|
+
---------------------------------------------------------
|
|
2820
|
+
------------ the_force.f_computed.chain.32 ---------------
|
|
2821
|
+
Peak (Best Batch): 66.00 M ops/sec
|
|
2822
|
+
Average: 63.71 M ops/sec
|
|
2823
|
+
---------------------------------------------------------
|
|
2824
|
+
------------ the_force.f_effect.create ---------------
|
|
2825
|
+
Peak (Best Batch): 26.56 M ops/sec
|
|
2826
|
+
Average: 19.49 M ops/sec
|
|
2827
|
+
---------------------------------------------------------
|
|
2828
|
+
------------ the_force.f_effect.create.dependency ---------------
|
|
2829
|
+
Peak (Best Batch): 24.85 M ops/sec
|
|
2830
|
+
Average: 18.19 M ops/sec
|
|
2831
|
+
---------------------------------------------------------
|
|
2832
|
+
------------ the_force.f_effect.dispose ---------------
|
|
2833
|
+
Peak (Best Batch): 22.79 M ops/sec
|
|
2834
|
+
Average: 15.13 M ops/sec
|
|
2835
|
+
---------------------------------------------------------
|
|
2836
|
+
------------ the_force.f_effect.cleanup ---------------
|
|
2837
|
+
Peak (Best Batch): 57.04 M ops/sec
|
|
2838
|
+
Average: 47.35 M ops/sec
|
|
2839
|
+
---------------------------------------------------------
|
|
2840
|
+
------------ the_force.f_effect.rerun ---------------
|
|
2841
|
+
Peak (Best Batch): 64.05 M ops/sec
|
|
2842
|
+
Average: 54.14 M ops/sec
|
|
2843
|
+
---------------------------------------------------------
|
|
2844
|
+
------------ the_force.dependencies.fan-in.16 ---------------
|
|
2845
|
+
Peak (Best Batch): 56.48 M ops/sec
|
|
2846
|
+
Average: 49.24 M ops/sec
|
|
2847
|
+
---------------------------------------------------------
|
|
2848
|
+
------------ the_force.dependencies.fan-out.16 ---------------
|
|
2849
|
+
Peak (Best Batch): 61.98 M ops/sec
|
|
2850
|
+
Average: 50.10 M ops/sec
|
|
2851
|
+
---------------------------------------------------------
|
|
2852
|
+
------------ the_force.dependencies.conditional.switch ---------------
|
|
2853
|
+
Peak (Best Batch): 71.62 M ops/sec
|
|
2854
|
+
Average: 59.99 M ops/sec
|
|
2855
|
+
---------------------------------------------------------
|
|
2856
|
+
------------ the_force.f_batch.2 ---------------
|
|
2857
|
+
Peak (Best Batch): 54.39 M ops/sec
|
|
2858
|
+
Average: 48.17 M ops/sec
|
|
2859
|
+
---------------------------------------------------------
|
|
2860
|
+
------------ the_force.f_batch.16 ---------------
|
|
2861
|
+
Peak (Best Batch): 6.05 M ops/sec
|
|
2862
|
+
Average: 5.61 M ops/sec
|
|
2863
|
+
---------------------------------------------------------
|
|
2864
|
+
------------ the_force.graph.diamond ---------------
|
|
2865
|
+
Peak (Best Batch): 55.96 M ops/sec
|
|
2866
|
+
Average: 48.39 M ops/sec
|
|
2867
|
+
---------------------------------------------------------
|
|
2868
|
+
------------ the_force.graph.branch.16 ---------------
|
|
2869
|
+
Peak (Best Batch): 54.13 M ops/sec
|
|
2870
|
+
Average: 47.87 M ops/sec
|
|
2871
|
+
---------------------------------------------------------
|
|
2872
|
+
------------ the_force.bus.send ---------------
|
|
2873
|
+
Peak (Best Batch): 73.65 M ops/sec
|
|
2874
|
+
Average: 71.04 M ops/sec
|
|
2875
|
+
---------------------------------------------------------
|
|
2876
|
+
------------ the_force.bus.hotSend ---------------
|
|
2877
|
+
Peak (Best Batch): 165.37 M ops/sec
|
|
2878
|
+
Average: 118.85 M ops/sec
|
|
2879
|
+
---------------------------------------------------------
|
|
2880
|
+
------------ the_force.bus.stream.publish.1 ---------------
|
|
2881
|
+
Peak (Best Batch): 138.75 M ops/sec
|
|
2882
|
+
Average: 135.72 M ops/sec
|
|
2883
|
+
---------------------------------------------------------
|
|
2884
|
+
------------ the_force.bus.stream.publish.16 ---------------
|
|
2885
|
+
Peak (Best Batch): 31.65 M ops/sec
|
|
2886
|
+
Average: 28.22 M ops/sec
|
|
2887
|
+
---------------------------------------------------------
|
|
2888
|
+
------------ the_force.store.get.hot ---------------
|
|
2889
|
+
Peak (Best Batch): 213.40 M ops/sec
|
|
2890
|
+
Average: 194.54 M ops/sec
|
|
2891
|
+
---------------------------------------------------------
|
|
2892
|
+
------------ the_force.store.get.missing ---------------
|
|
2893
|
+
Peak (Best Batch): 161.60 M ops/sec
|
|
2894
|
+
Average: 147.76 M ops/sec
|
|
2895
|
+
---------------------------------------------------------
|
|
2896
|
+
------------ the_force.store.has.existing ---------------
|
|
2897
|
+
Peak (Best Batch): 204.37 M ops/sec
|
|
2898
|
+
Average: 183.92 M ops/sec
|
|
2899
|
+
---------------------------------------------------------
|
|
2900
|
+
------------ the_force.store.has.missing ---------------
|
|
2901
|
+
Peak (Best Batch): 169.69 M ops/sec
|
|
2902
|
+
Average: 144.84 M ops/sec
|
|
2903
|
+
---------------------------------------------------------
|
|
2904
|
+
------------ the_force.store.set.changed ---------------
|
|
2905
|
+
Peak (Best Batch): 0.67 M ops/sec
|
|
2906
|
+
Average: 0.64 M ops/sec
|
|
2907
|
+
---------------------------------------------------------
|
|
2908
|
+
------------ the_force.store.set.same ---------------
|
|
2909
|
+
Peak (Best Batch): 119.15 M ops/sec
|
|
2910
|
+
Average: 112.79 M ops/sec
|
|
2911
|
+
---------------------------------------------------------
|
|
2912
|
+
------------ the_force.store.set.notify ---------------
|
|
2913
|
+
Peak (Best Batch): 0.68 M ops/sec
|
|
2914
|
+
Average: 0.59 M ops/sec
|
|
2915
|
+
---------------------------------------------------------
|
|
2916
|
+
------------ the_force.store.fanout.8 ---------------
|
|
2917
|
+
Peak (Best Batch): 0.67 M ops/sec
|
|
2918
|
+
Average: 0.64 M ops/sec
|
|
2919
|
+
---------------------------------------------------------
|
|
2920
|
+
------------ the_force.store.fanin.8 ---------------
|
|
2921
|
+
Peak (Best Batch): 0.29 M ops/sec
|
|
2922
|
+
Average: 0.25 M ops/sec
|
|
2923
|
+
---------------------------------------------------------
|
|
2924
|
+
------------ the_force.store.getMany.8 ---------------
|
|
2925
|
+
Peak (Best Batch): 11.46 M ops/sec
|
|
2926
|
+
Average: 10.19 M ops/sec
|
|
2927
|
+
---------------------------------------------------------
|
|
2928
|
+
------------ the_force.store.delete.recreate ---------------
|
|
2929
|
+
Peak (Best Batch): 0.28 M ops/sec
|
|
2930
|
+
Average: 0.23 M ops/sec
|
|
2931
|
+
```
|
|
2932
|
+
|
|
2933
|
+
</details>
|
|
2934
|
+
|
|
2935
|
+
> [!NOTE] BUILDERS LOG #11
|
|
2936
|
+
>
|
|
2937
|
+
> 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.
|
|
2938
|
+
|
|
2939
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[ALIEN]</span> </strong></summary>
|
|
2940
|
+
|
|
2941
|
+
```txt
|
|
2942
|
+
------------ REACTIVE_SYSTEM.signal.get ---------------
|
|
2943
|
+
Peak (Best Batch): 1131.22 M ops/sec
|
|
2944
|
+
Average: 422.14 M ops/sec
|
|
2945
|
+
---------------------------------------------------------
|
|
2946
|
+
------------ REACTIVE_SYSTEM.signal.set ---------------
|
|
2947
|
+
Peak (Best Batch): 90.69 M ops/sec
|
|
2948
|
+
Average: 79.36 M ops/sec
|
|
2949
|
+
---------------------------------------------------------
|
|
2950
|
+
------------ REACTIVE_SYSTEM.signal.get.set ---------------
|
|
2951
|
+
Peak (Best Batch): 87.77 M ops/sec
|
|
2952
|
+
Average: 74.61 M ops/sec
|
|
2953
|
+
---------------------------------------------------------
|
|
2954
|
+
------------ REACTIVE_SYSTEM.computed.get.cached ---------------
|
|
2955
|
+
Peak (Best Batch): 81.35 M ops/sec
|
|
2956
|
+
Average: 72.91 M ops/sec
|
|
2957
|
+
---------------------------------------------------------
|
|
2958
|
+
------------ REACTIVE_SYSTEM.computed.invalidate ---------------
|
|
2959
|
+
Peak (Best Batch): 66.74 M ops/sec
|
|
2960
|
+
Average: 43.18 M ops/sec
|
|
2961
|
+
---------------------------------------------------------
|
|
2962
|
+
------------ REACTIVE_SYSTEM.computed.recompute ---------------
|
|
2963
|
+
Peak (Best Batch): 22.75 M ops/sec
|
|
2964
|
+
Average: 19.77 M ops/sec
|
|
2965
|
+
---------------------------------------------------------
|
|
2966
|
+
------------ REACTIVE_SYSTEM.computed.chain.cached ---------------
|
|
2967
|
+
Peak (Best Batch): 107.71 M ops/sec
|
|
2968
|
+
Average: 80.63 M ops/sec
|
|
2969
|
+
---------------------------------------------------------
|
|
2970
|
+
------------ REACTIVE_SYSTEM.computed.chain.recompute ---------------
|
|
2971
|
+
Peak (Best Batch): 6.81 M ops/sec
|
|
2972
|
+
Average: 5.63 M ops/sec
|
|
2973
|
+
---------------------------------------------------------
|
|
2974
|
+
------------ REACTIVE_SYSTEM.effect.create-dispose ---------------
|
|
2975
|
+
Peak (Best Batch): 20.89 M ops/sec
|
|
2976
|
+
Average: 14.00 M ops/sec
|
|
2977
|
+
---------------------------------------------------------
|
|
2978
|
+
------------ REACTIVE_SYSTEM.effect.notify ---------------
|
|
2979
|
+
Peak (Best Batch): 6.62 M ops/sec
|
|
2980
|
+
Average: 5.59 M ops/sec
|
|
2981
|
+
---------------------------------------------------------
|
|
2982
|
+
------------ REACTIVE_SYSTEM.effect.cleanup-rerun ---------------
|
|
2983
|
+
Peak (Best Batch): 6.33 M ops/sec
|
|
2984
|
+
Average: 5.45 M ops/sec
|
|
2985
|
+
---------------------------------------------------------
|
|
2986
|
+
------------ REACTIVE_SYSTEM.dependency.track ---------------
|
|
2987
|
+
Peak (Best Batch): 21.15 M ops/sec
|
|
2988
|
+
Average: 14.77 M ops/sec
|
|
2989
|
+
---------------------------------------------------------
|
|
2990
|
+
------------ REACTIVE_SYSTEM.fanout.16 ---------------
|
|
2991
|
+
Peak (Best Batch): 1.93 M ops/sec
|
|
2992
|
+
Average: 0.95 M ops/sec
|
|
2993
|
+
---------------------------------------------------------
|
|
2994
|
+
------------ REACTIVE_SYSTEM.fanout.64 ---------------
|
|
2995
|
+
Peak (Best Batch): 0.52 M ops/sec
|
|
2996
|
+
Average: 0.46 M ops/sec
|
|
2997
|
+
---------------------------------------------------------
|
|
2998
|
+
------------ REACTIVE_SYSTEM.batch.3-writes ---------------
|
|
2999
|
+
Peak (Best Batch): 12.07 M ops/sec
|
|
3000
|
+
Average: 9.11 M ops/sec
|
|
3001
|
+
---------------------------------------------------------
|
|
3002
|
+
------------ REACTIVE_SYSTEM.batch.effect.3-writes ---------------
|
|
3003
|
+
Peak (Best Batch): 4.11 M ops/sec
|
|
3004
|
+
Average: 3.55 M ops/sec
|
|
3005
|
+
---------------------------------------------------------
|
|
3006
|
+
------------ REACTIVE_SYSTEM.graph.diamond.cached ---------------
|
|
3007
|
+
Peak (Best Batch): 115.07 M ops/sec
|
|
3008
|
+
Average: 103.92 M ops/sec
|
|
3009
|
+
---------------------------------------------------------
|
|
3010
|
+
------------ REACTIVE_SYSTEM.graph.diamond.recompute ---------------
|
|
3011
|
+
Peak (Best Batch): 3.40 M ops/sec
|
|
3012
|
+
Average: 2.99 M ops/sec
|
|
3013
|
+
---------------------------------------------------------
|
|
3014
|
+
------------ REACTIVE_SYSTEM.graph.branch.16.cached ---------------
|
|
3015
|
+
Peak (Best Batch): 117.01 M ops/sec
|
|
3016
|
+
Average: 99.41 M ops/sec
|
|
3017
|
+
---------------------------------------------------------
|
|
3018
|
+
------------ REACTIVE_SYSTEM.graph.branch.16.recompute ---------------
|
|
3019
|
+
Peak (Best Batch): 0.52 M ops/sec
|
|
3020
|
+
Average: 0.48 M ops/sec
|
|
3021
|
+
---------------------------------------------------------
|
|
3022
|
+
```
|
|
3023
|
+
|
|
3024
|
+
</details>
|
|
3025
|
+
|
|
3026
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[ALIEN]</span> </strong></summary>
|
|
3027
|
+
|
|
3028
|
+
|
|
3029
|
+
```txt
|
|
3030
|
+
------------ SIGNAL_ENGINE.signal.get ---------------
|
|
3031
|
+
Peak (Best Batch): 1453.49 M ops/sec
|
|
3032
|
+
Average: 490.50 M ops/sec
|
|
3033
|
+
---------------------------------------------------------
|
|
3034
|
+
------------ SIGNAL_ENGINE.signal.peek ---------------
|
|
3035
|
+
Peak (Best Batch): 423.55 M ops/sec
|
|
3036
|
+
Average: 212.93 M ops/sec
|
|
3037
|
+
---------------------------------------------------------
|
|
3038
|
+
------------ SIGNAL_ENGINE.signal.set ---------------
|
|
3039
|
+
Peak (Best Batch): 82.05 M ops/sec
|
|
3040
|
+
Average: 69.92 M ops/sec
|
|
3041
|
+
---------------------------------------------------------
|
|
3042
|
+
------------ SIGNAL_ENGINE.signal.get.set ---------------
|
|
3043
|
+
Peak (Best Batch): 99.16 M ops/sec
|
|
3044
|
+
Average: 87.44 M ops/sec
|
|
3045
|
+
---------------------------------------------------------
|
|
3046
|
+
------------ SIGNAL_ENGINE.computed.get.cached ---------------
|
|
3047
|
+
Peak (Best Batch): 76.11 M ops/sec
|
|
3048
|
+
Average: 67.68 M ops/sec
|
|
3049
|
+
---------------------------------------------------------
|
|
3050
|
+
------------ SIGNAL_ENGINE.computed.invalidate ---------------
|
|
3051
|
+
Peak (Best Batch): 38.21 M ops/sec
|
|
3052
|
+
Average: 30.87 M ops/sec
|
|
3053
|
+
---------------------------------------------------------
|
|
3054
|
+
------------ SIGNAL_ENGINE.computed.recompute ---------------
|
|
3055
|
+
Peak (Best Batch): 17.53 M ops/sec
|
|
3056
|
+
Average: 13.35 M ops/sec
|
|
3057
|
+
---------------------------------------------------------
|
|
3058
|
+
------------ SIGNAL_ENGINE.computed.chain.cached ---------------
|
|
3059
|
+
Peak (Best Batch): 73.43 M ops/sec
|
|
3060
|
+
Average: 57.11 M ops/sec
|
|
3061
|
+
---------------------------------------------------------
|
|
3062
|
+
------------ SIGNAL_ENGINE.computed.chain.recompute ---------------
|
|
3063
|
+
Peak (Best Batch): 6.92 M ops/sec
|
|
3064
|
+
Average: 5.23 M ops/sec
|
|
3065
|
+
---------------------------------------------------------
|
|
3066
|
+
------------ SIGNAL_ENGINE.effect.create-dispose ---------------
|
|
3067
|
+
Peak (Best Batch): 23.11 M ops/sec
|
|
3068
|
+
Average: 14.12 M ops/sec
|
|
3069
|
+
---------------------------------------------------------
|
|
3070
|
+
------------ SIGNAL_ENGINE.effect.notify ---------------
|
|
3071
|
+
Peak (Best Batch): 19.85 M ops/sec
|
|
3072
|
+
Average: 13.86 M ops/sec
|
|
3073
|
+
---------------------------------------------------------
|
|
3074
|
+
------------ SIGNAL_ENGINE.effect.cleanup-rerun ---------------
|
|
3075
|
+
Peak (Best Batch): 13.55 M ops/sec
|
|
3076
|
+
Average: 9.24 M ops/sec
|
|
3077
|
+
---------------------------------------------------------
|
|
3078
|
+
------------ SIGNAL_ENGINE.dependency.track ---------------
|
|
3079
|
+
Peak (Best Batch): 13.37 M ops/sec
|
|
3080
|
+
Average: 11.81 M ops/sec
|
|
3081
|
+
---------------------------------------------------------
|
|
3082
|
+
------------ SIGNAL_ENGINE.fanout.16 ---------------
|
|
3083
|
+
Peak (Best Batch): 2.59 M ops/sec
|
|
3084
|
+
Average: 2.33 M ops/sec
|
|
3085
|
+
---------------------------------------------------------
|
|
3086
|
+
------------ SIGNAL_ENGINE.fanout.64 ---------------
|
|
3087
|
+
Peak (Best Batch): 0.73 M ops/sec
|
|
3088
|
+
Average: 0.67 M ops/sec
|
|
3089
|
+
---------------------------------------------------------
|
|
3090
|
+
------------ SIGNAL_ENGINE.batch.3-writes ---------------
|
|
3091
|
+
Peak (Best Batch): 29.15 M ops/sec
|
|
3092
|
+
Average: 25.92 M ops/sec
|
|
3093
|
+
---------------------------------------------------------
|
|
3094
|
+
------------ SIGNAL_ENGINE.batch.effect.3-writes ---------------
|
|
3095
|
+
Peak (Best Batch): 10.96 M ops/sec
|
|
3096
|
+
Average: 9.87 M ops/sec
|
|
3097
|
+
---------------------------------------------------------
|
|
3098
|
+
------------ SIGNAL_ENGINE.graph.diamond.cached ---------------
|
|
3099
|
+
Peak (Best Batch): 125.38 M ops/sec
|
|
3100
|
+
Average: 99.82 M ops/sec
|
|
3101
|
+
---------------------------------------------------------
|
|
3102
|
+
------------ SIGNAL_ENGINE.graph.diamond.recompute ---------------
|
|
3103
|
+
Peak (Best Batch): 4.86 M ops/sec
|
|
3104
|
+
Average: 4.36 M ops/sec
|
|
3105
|
+
---------------------------------------------------------
|
|
3106
|
+
------------ SIGNAL_ENGINE.graph.branch.16.cached ---------------
|
|
3107
|
+
Peak (Best Batch): 154.25 M ops/sec
|
|
3108
|
+
Average: 133.93 M ops/sec
|
|
3109
|
+
---------------------------------------------------------
|
|
3110
|
+
------------ SIGNAL_ENGINE.graph.branch.16.recompute ---------------
|
|
3111
|
+
Peak (Best Batch): 1.22 M ops/sec
|
|
3112
|
+
Average: 1.06 M ops/sec
|
|
3113
|
+
---------------------------------------------------------
|
|
3114
|
+
```
|
|
3115
|
+
|
|
3116
|
+
</details>
|
|
3117
|
+
|
|
3118
|
+
|
|
3119
|
+
> [!NOTE] BUILDERS LOG #12
|
|
3120
|
+
>
|
|
3121
|
+
> Other than the atoms solution needing to be redone... the dark side is almost complete... so not bad.
|
|
3122
|
+
>
|
|
3123
|
+
> 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.
|
|
3124
|
+
>
|
|
3125
|
+
> 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.
|
|
3126
|
+
>
|
|
3127
|
+
> 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.
|
|
3128
|
+
>
|
|
3129
|
+
> 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.
|
|
3130
|
+
>
|
|
3131
|
+
> 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.
|
|
3132
|
+
>
|
|
3133
|
+
> 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.
|
|
3134
|
+
|
|
3135
|
+
|
|
3136
|
+
|
|
3137
|
+
> [!NOTE] BUILDERS LOG #13
|
|
3138
|
+
>
|
|
3139
|
+
> I don't know why I am designing a new db... Truly...
|
|
3140
|
+
>
|
|
3141
|
+
> 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.
|
|
3142
|
+
>
|
|
3143
|
+
> 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.
|
|
3144
|
+
>
|
|
3145
|
+
> 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.
|
|
3146
|
+
>
|
|
3147
|
+
> soooooooo......... I think this is... how it is gonna go down.
|
|
3148
|
+
>
|
|
3149
|
+
> - Non-raptor hot path call: 1.133 bill
|
|
3150
|
+
> - Raptor hot path call: 3.1 bill
|
|
3151
|
+
> - 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.
|
|
3152
|
+
>
|
|
3153
|
+
> 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...
|
|
3154
|
+
>
|
|
3155
|
+
> So basically the choice is, because I only want one api...
|
|
3156
|
+
> - 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...
|
|
3157
|
+
> - OR, we bridge the server db to the client side... so the server db would be available for use both client and server...
|
|
3158
|
+
>
|
|
3159
|
+
> 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
|
|
3160
|
+
|
|
3161
|
+
|
|
3162
|
+
> [!NOTE] BUILDERS LOG #14
|
|
3163
|
+
>
|
|
3164
|
+
> 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.
|
|
3165
|
+
>
|
|
3166
|
+
> Still have to remake the atoms solution, and do some final placement of code... but we are on the last stretch, fucking finally.
|
|
3167
|
+
>
|
|
3168
|
+
> 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.
|
|
3169
|
+
>
|
|
3170
|
+
>
|
|
3171
|
+
|
|
3172
|
+
|
|
3173
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[THE LIGHT SIDE: THE CLOUD]</span> </strong></summary>
|
|
3174
|
+
|
|
3175
|
+
```txt
|
|
3176
|
+
------------ JSObj['keyy']; ---------------
|
|
3177
|
+
Peak (Best Batch): 1697.79 M ops/sec
|
|
3178
|
+
Average: 673.22 M ops/sec
|
|
3179
|
+
---------------------------------------------------------
|
|
3180
|
+
------------ O2Test['keyy'] ---------------
|
|
3181
|
+
Peak (Best Batch): 423.55 M ops/sec
|
|
3182
|
+
Average: 217.26 M ops/sec
|
|
3183
|
+
---------------------------------------------------------
|
|
3184
|
+
------------ O2.get(k) [real #data] ---------------
|
|
3185
|
+
Peak (Best Batch): 77.73 M ops/sec
|
|
3186
|
+
Average: 69.05 M ops/sec
|
|
3187
|
+
---------------------------------------------------------
|
|
3188
|
+
------------ O2.get(derived clean) ---------------
|
|
3189
|
+
Peak (Best Batch): 69.00 M ops/sec
|
|
3190
|
+
Average: 65.31 M ops/sec
|
|
3191
|
+
---------------------------------------------------------
|
|
3192
|
+
------------ O2.get(derived dirty) ---------------
|
|
3193
|
+
Peak (Best Batch): 3.20 M ops/sec
|
|
3194
|
+
Average: 2.93 M ops/sec
|
|
3195
|
+
---------------------------------------------------------
|
|
3196
|
+
------------ O2.get(miss) ---------------
|
|
3197
|
+
Peak (Best Batch): 131.04 M ops/sec
|
|
3198
|
+
Average: 116.88 M ops/sec
|
|
3199
|
+
---------------------------------------------------------
|
|
3200
|
+
------------ O2.h(k) hit ---------------
|
|
3201
|
+
Peak (Best Batch): 110.41 M ops/sec
|
|
3202
|
+
Average: 70.39 M ops/sec
|
|
3203
|
+
---------------------------------------------------------
|
|
3204
|
+
------------ O2.h(k) miss ---------------
|
|
3205
|
+
Peak (Best Batch): 178.95 M ops/sec
|
|
3206
|
+
Average: 116.84 M ops/sec
|
|
3207
|
+
---------------------------------------------------------
|
|
3208
|
+
------------ O2.s(v,k) overwrite ---------------
|
|
3209
|
+
Peak (Best Batch): 7.03 M ops/sec
|
|
3210
|
+
Average: 6.38 M ops/sec
|
|
3211
|
+
---------------------------------------------------------
|
|
3212
|
+
------------ O2.s(v,k) new+del churn ---------------
|
|
3213
|
+
Peak (Best Batch): 0.92 M ops/sec
|
|
3214
|
+
Average: 0.82 M ops/sec
|
|
3215
|
+
---------------------------------------------------------
|
|
3216
|
+
------------ O2.size ---------------
|
|
3217
|
+
Peak (Best Batch): 4.93 M ops/sec
|
|
3218
|
+
Average: 4.03 M ops/sec
|
|
3219
|
+
---------------------------------------------------------
|
|
3220
|
+
```
|
|
3221
|
+
|
|
3222
|
+
|
|
3223
|
+
</details>
|
|
3224
|
+
|
|
3225
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[THE DARK SIDE: THE CLOUD]</span> </strong></summary>
|
|
3226
|
+
|
|
3227
|
+
```txt
|
|
3228
|
+
------------ RAVEN.store.get ---------------
|
|
3229
|
+
Peak (Best Batch): 848.18 M ops/sec
|
|
3230
|
+
Average: 100.58 M ops/sec
|
|
3231
|
+
---------------------------------------------------------
|
|
3232
|
+
------------ RAVEN.store.has ---------------
|
|
3233
|
+
Peak (Best Batch): 56.47 M ops/sec
|
|
3234
|
+
Average: 16.21 M ops/sec
|
|
3235
|
+
---------------------------------------------------------
|
|
3236
|
+
------------ RAVEN.store.set ---------------
|
|
3237
|
+
Peak (Best Batch): 21.46 M ops/sec
|
|
3238
|
+
Average: 14.43 M ops/sec
|
|
3239
|
+
---------------------------------------------------------
|
|
3240
|
+
------------ RAVEN.store.set.functional ---------------
|
|
3241
|
+
Peak (Best Batch): 15.02 M ops/sec
|
|
3242
|
+
Average: 11.02 M ops/sec
|
|
3243
|
+
---------------------------------------------------------
|
|
3244
|
+
------------ RAVEN.store.get.set ---------------
|
|
3245
|
+
Peak (Best Batch): 18.21 M ops/sec
|
|
3246
|
+
Average: 17.29 M ops/sec
|
|
3247
|
+
---------------------------------------------------------
|
|
3248
|
+
------------ RAVEN.store.entries ---------------
|
|
3249
|
+
Peak (Best Batch): 4.33 M ops/sec
|
|
3250
|
+
Average: 4.05 M ops/sec
|
|
3251
|
+
---------------------------------------------------------
|
|
3252
|
+
------------ RAVEN.store.subscribe ---------------
|
|
3253
|
+
Peak (Best Batch): 5.61 M ops/sec
|
|
3254
|
+
Average: 4.08 M ops/sec
|
|
3255
|
+
---------------------------------------------------------
|
|
3256
|
+
------------ RAVEN.store.persist.get ---------------
|
|
3257
|
+
Peak (Best Batch): 96.22 M ops/sec
|
|
3258
|
+
Average: 93.96 M ops/sec
|
|
3259
|
+
---------------------------------------------------------
|
|
3260
|
+
------------ RAVEN.store.persist.has ---------------
|
|
3261
|
+
Peak (Best Batch): 100.07 M ops/sec
|
|
3262
|
+
Average: 95.16 M ops/sec
|
|
3263
|
+
---------------------------------------------------------
|
|
3264
|
+
------------ RAVEN.store.persist.set ---------------
|
|
3265
|
+
Peak (Best Batch): 26.52 M ops/sec
|
|
3266
|
+
Average: 18.09 M ops/sec
|
|
3267
|
+
---------------------------------------------------------
|
|
3268
|
+
------------ RAVEN.state.get ---------------
|
|
3269
|
+
Peak (Best Batch): 91.61 M ops/sec
|
|
3270
|
+
Average: 75.71 M ops/sec
|
|
3271
|
+
---------------------------------------------------------
|
|
3272
|
+
------------ RAVEN.state.set ---------------
|
|
3273
|
+
Peak (Best Batch): 18.10 M ops/sec
|
|
3274
|
+
Average: 13.87 M ops/sec
|
|
3275
|
+
---------------------------------------------------------
|
|
3276
|
+
------------ RAVEN.state.get.set ---------------
|
|
3277
|
+
Peak (Best Batch): 42.24 M ops/sec
|
|
3278
|
+
Average: 39.88 M ops/sec
|
|
3279
|
+
---------------------------------------------------------
|
|
3280
|
+
------------ RAVEN.state.getAll ---------------
|
|
3281
|
+
Peak (Best Batch): 2.79 M ops/sec
|
|
3282
|
+
Average: 2.58 M ops/sec
|
|
3283
|
+
---------------------------------------------------------
|
|
3284
|
+
------------ RAVEN.state.getByPrefix ---------------
|
|
3285
|
+
Peak (Best Batch): 1.99 M ops/sec
|
|
3286
|
+
Average: 1.84 M ops/sec
|
|
3287
|
+
---------------------------------------------------------
|
|
3288
|
+
------------ RAVEN.state.subscribe ---------------
|
|
3289
|
+
Peak (Best Batch): 6.22 M ops/sec
|
|
3290
|
+
Average: 5.50 M ops/sec
|
|
3291
|
+
---------------------------------------------------------
|
|
3292
|
+
------------ RAVEN.state.notify ---------------
|
|
3293
|
+
Peak (Best Batch): 1.90 M ops/sec
|
|
3294
|
+
Average: 1.29 M ops/sec
|
|
3295
|
+
---------------------------------------------------------
|
|
3296
|
+
------------ RAVEN.darkState.get ---------------
|
|
3297
|
+
Peak (Best Batch): 2.61 M ops/sec
|
|
3298
|
+
Average: 2.07 M ops/sec
|
|
3299
|
+
---------------------------------------------------------
|
|
3300
|
+
------------ RAVEN.darkState.set ---------------
|
|
3301
|
+
Peak (Best Batch): 19.63 M ops/sec
|
|
3302
|
+
Average: 16.64 M ops/sec
|
|
3303
|
+
---------------------------------------------------------
|
|
3304
|
+
------------ RAVEN.darkState.get.set ---------------
|
|
3305
|
+
Peak (Best Batch): 2.40 M ops/sec
|
|
3306
|
+
Average: 1.89 M ops/sec
|
|
3307
|
+
---------------------------------------------------------
|
|
3308
|
+
------------ RAVEN.darkState.selector.get ---------------
|
|
3309
|
+
Peak (Best Batch): 2.65 M ops/sec
|
|
3310
|
+
Average: 2.06 M ops/sec
|
|
3311
|
+
---------------------------------------------------------
|
|
3312
|
+
------------ RAVEN.darkState.selector.set ---------------
|
|
3313
|
+
Peak (Best Batch): 8.88 M ops/sec
|
|
3314
|
+
Average: 7.64 M ops/sec
|
|
3315
|
+
---------------------------------------------------------
|
|
3316
|
+
------------ RAVEN.darkState.derived.get ---------------
|
|
3317
|
+
Peak (Best Batch): 2.61 M ops/sec
|
|
3318
|
+
Average: 2.03 M ops/sec
|
|
3319
|
+
---------------------------------------------------------
|
|
3320
|
+
------------ RAVEN.darkState.derived.set ---------------
|
|
3321
|
+
Peak (Best Batch): 12.12 M ops/sec
|
|
3322
|
+
Average: 11.36 M ops/sec
|
|
3323
|
+
---------------------------------------------------------
|
|
3324
|
+
```
|
|
3325
|
+
|
|
3326
|
+
After performance update
|
|
3327
|
+
```txt
|
|
3328
|
+
------------ RAVEN.store.get ---------------
|
|
3329
|
+
Peak (Best Batch): 259.34 M ops/sec
|
|
3330
|
+
Average: 105.75 M ops/sec
|
|
3331
|
+
---------------------------------------------------------
|
|
3332
|
+
------------ RAVEN.store.has ---------------
|
|
3333
|
+
Peak (Best Batch): 251.70 M ops/sec
|
|
3334
|
+
Average: 25.86 M ops/sec
|
|
3335
|
+
---------------------------------------------------------
|
|
3336
|
+
------------ RAVEN.store.set ---------------
|
|
3337
|
+
Peak (Best Batch): 64.93 M ops/sec
|
|
3338
|
+
Average: 33.37 M ops/sec
|
|
3339
|
+
---------------------------------------------------------
|
|
3340
|
+
------------ RAVEN.store.set.functional ---------------
|
|
3341
|
+
Peak (Best Batch): 39.16 M ops/sec
|
|
3342
|
+
Average: 26.11 M ops/sec
|
|
3343
|
+
---------------------------------------------------------
|
|
3344
|
+
------------ RAVEN.store.get.set ---------------
|
|
3345
|
+
Peak (Best Batch): 54.02 M ops/sec
|
|
3346
|
+
Average: 48.20 M ops/sec
|
|
3347
|
+
---------------------------------------------------------
|
|
3348
|
+
------------ RAVEN.store.entries ---------------
|
|
3349
|
+
Peak (Best Batch): 7.51 M ops/sec
|
|
3350
|
+
Average: 6.62 M ops/sec
|
|
3351
|
+
---------------------------------------------------------
|
|
3352
|
+
------------ RAVEN.store.subscribe ---------------
|
|
3353
|
+
Peak (Best Batch): 2.55 M ops/sec
|
|
3354
|
+
Average: 2.32 M ops/sec
|
|
3355
|
+
---------------------------------------------------------
|
|
3356
|
+
------------ RAVEN.store.persist.get ---------------
|
|
3357
|
+
Peak (Best Batch): 59.26 M ops/sec
|
|
3358
|
+
Average: 48.68 M ops/sec
|
|
3359
|
+
---------------------------------------------------------
|
|
3360
|
+
------------ RAVEN.store.persist.has ---------------
|
|
3361
|
+
Peak (Best Batch): 72.35 M ops/sec
|
|
3362
|
+
Average: 64.40 M ops/sec
|
|
3363
|
+
---------------------------------------------------------
|
|
3364
|
+
------------ RAVEN.store.persist.set ---------------
|
|
3365
|
+
Peak (Best Batch): 50.32 M ops/sec
|
|
3366
|
+
Average: 47.28 M ops/sec
|
|
3367
|
+
---------------------------------------------------------
|
|
3368
|
+
------------ RAVEN.state.get ---------------
|
|
3369
|
+
Peak (Best Batch): 53.19 M ops/sec
|
|
3370
|
+
Average: 33.23 M ops/sec
|
|
3371
|
+
---------------------------------------------------------
|
|
3372
|
+
------------ RAVEN.state.getHot ---------------
|
|
3373
|
+
Peak (Best Batch): 145.39 M ops/sec
|
|
3374
|
+
Average: 107.64 M ops/sec
|
|
3375
|
+
---------------------------------------------------------
|
|
3376
|
+
------------ RAVEN.state.set ---------------
|
|
3377
|
+
Peak (Best Batch): 33.32 M ops/sec
|
|
3378
|
+
Average: 18.04 M ops/sec
|
|
3379
|
+
---------------------------------------------------------
|
|
3380
|
+
------------ RAVEN.state.get.set ---------------
|
|
3381
|
+
Peak (Best Batch): 80.10 M ops/sec
|
|
3382
|
+
Average: 61.39 M ops/sec
|
|
3383
|
+
---------------------------------------------------------
|
|
3384
|
+
------------ RAVEN.state.getAll ---------------
|
|
3385
|
+
Peak (Best Batch): 6.68 M ops/sec
|
|
3386
|
+
Average: 5.65 M ops/sec
|
|
3387
|
+
---------------------------------------------------------
|
|
3388
|
+
------------ RAVEN.state.getByPrefix ---------------
|
|
3389
|
+
Peak (Best Batch): 4.68 M ops/sec
|
|
3390
|
+
Average: 4.17 M ops/sec
|
|
3391
|
+
---------------------------------------------------------
|
|
3392
|
+
------------ RAVEN.state.subscribe ---------------
|
|
3393
|
+
Peak (Best Batch): 2.90 M ops/sec
|
|
3394
|
+
Average: 2.64 M ops/sec
|
|
3395
|
+
---------------------------------------------------------
|
|
3396
|
+
------------ RAVEN.state.notify ---------------
|
|
3397
|
+
Peak (Best Batch): 1.18 M ops/sec
|
|
3398
|
+
Average: 0.96 M ops/sec
|
|
3399
|
+
---------------------------------------------------------
|
|
3400
|
+
------------ RAVEN.darkState.get ---------------
|
|
3401
|
+
Peak (Best Batch): 2.57 M ops/sec
|
|
3402
|
+
Average: 2.08 M ops/sec
|
|
3403
|
+
---------------------------------------------------------
|
|
3404
|
+
------------ RAVEN.darkState.set ---------------
|
|
3405
|
+
Peak (Best Batch): 15.56 M ops/sec
|
|
3406
|
+
Average: 14.42 M ops/sec
|
|
3407
|
+
---------------------------------------------------------
|
|
3408
|
+
------------ RAVEN.darkState.get.set ---------------
|
|
3409
|
+
Peak (Best Batch): 2.19 M ops/sec
|
|
3410
|
+
Average: 1.80 M ops/sec
|
|
3411
|
+
---------------------------------------------------------
|
|
3412
|
+
------------ RAVEN.darkState.selector.get ---------------
|
|
3413
|
+
Peak (Best Batch): 2.46 M ops/sec
|
|
3414
|
+
Average: 1.77 M ops/sec
|
|
3415
|
+
---------------------------------------------------------
|
|
3416
|
+
------------ RAVEN.darkState.selector.set ---------------
|
|
3417
|
+
Peak (Best Batch): 8.58 M ops/sec
|
|
3418
|
+
Average: 8.18 M ops/sec
|
|
3419
|
+
---------------------------------------------------------
|
|
3420
|
+
------------ RAVEN.darkState.derived.get ---------------
|
|
3421
|
+
Peak (Best Batch): 2.47 M ops/sec
|
|
3422
|
+
Average: 1.91 M ops/sec
|
|
3423
|
+
---------------------------------------------------------
|
|
3424
|
+
------------ RAVEN.darkState.derived.set ---------------
|
|
3425
|
+
Peak (Best Batch): 12.58 M ops/sec
|
|
3426
|
+
Average: 12.15 M ops/sec
|
|
3427
|
+
---------------------------------------------------------
|
|
3428
|
+
```
|
|
3429
|
+
|
|
3430
|
+
</details>
|
|
3431
|
+
|
|
3432
|
+
> [!NOTE] BUILDERS LOG #16
|
|
3433
|
+
>
|
|
3434
|
+
> 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.
|
|
3435
|
+
>
|
|
3436
|
+
> 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...
|
|
3437
|
+
>
|
|
3438
|
+
> 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.
|
|
3439
|
+
>
|
|
3440
|
+
> The implementation has a ready boolean to signify once everything has been initalised, that is part of the problem.
|
|
3441
|
+
>
|
|
3442
|
+
> 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.
|
|
3443
|
+
>
|
|
3444
|
+
> Basically... the hot paths we were testing fucking... just hit it at all the wrong times as you can see here:
|
|
3445
|
+
> ```txt
|
|
3446
|
+
> ------------ RAVEN.state.getHot2 ---------------
|
|
3447
|
+
> Peak (Best Batch): 1453.49 M ops/sec
|
|
3448
|
+
> Average: 587.23 M ops/sec
|
|
3449
|
+
> ---------------------------------------------------------
|
|
3450
|
+
> ------------ RAVEN.state.getHot ---------------
|
|
3451
|
+
> Peak (Best Batch): 376.36 M ops/sec
|
|
3452
|
+
> Average: 206.64 M ops/sec
|
|
3453
|
+
> ---------------------------------------------------------
|
|
3454
|
+
> ```
|
|
3455
|
+
> 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...
|
|
3456
|
+
>
|
|
3457
|
+
> 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.
|
|
3458
|
+
>
|
|
3459
|
+
> 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.
|
|
3460
|
+
>
|
|
3461
|
+
> 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.
|
|
3462
|
+
>
|
|
3463
|
+
> 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.
|
|
3464
|
+
>
|
|
3465
|
+
> 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.
|
|
3466
|
+
>
|
|
3467
|
+
> 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.
|
|
3468
|
+
>
|
|
3469
|
+
|
|
3470
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[THE DARK SIDE: USE STATE]</span> </strong></summary>
|
|
3471
|
+
|
|
3472
|
+
```txt
|
|
3473
|
+
|
|
3474
|
+
```
|
|
3475
|
+
|
|
3476
|
+
</details>
|
|
3477
|
+
|
|
3478
|
+
|
|
3479
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: SIGNALS]</span> </strong></summary>
|
|
3480
|
+
|
|
3481
|
+
```txt
|
|
3482
|
+
|
|
3483
|
+
```
|
|
3484
|
+
|
|
3485
|
+
</details>
|
|
3486
|
+
|
|
3487
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: SPREADSHEET]</span> </strong></summary>
|
|
3488
|
+
|
|
3489
|
+
```txt
|
|
3490
|
+
|
|
3491
|
+
```
|
|
3492
|
+
|
|
3493
|
+
</details>
|
|
3494
|
+
|
|
3495
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: STREAMING]</span> </strong></summary>
|
|
3496
|
+
|
|
3497
|
+
```txt
|
|
3498
|
+
|
|
3499
|
+
```
|
|
3500
|
+
|
|
3501
|
+
</details>
|
|
3502
|
+
|
|
3503
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: BATCHING]</span> </strong></summary>
|
|
3504
|
+
|
|
3505
|
+
```txt
|
|
3506
|
+
|
|
3507
|
+
```
|
|
3508
|
+
|
|
3509
|
+
</details>
|
|
3510
|
+
|
|
3511
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[SIGNALS]</span> </strong></summary>
|
|
3512
|
+
|
|
3513
|
+
```txt
|
|
3514
|
+
|
|
3515
|
+
```
|
|
3516
|
+
|
|
3517
|
+
</details>
|
|
3518
|
+
|
|
3519
|
+
|
|
3520
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[SIGNALS: ATOMS]</span> </strong></summary>
|
|
3521
|
+
|
|
3522
|
+
```txt
|
|
3523
|
+
|
|
3524
|
+
```
|
|
3525
|
+
|
|
3526
|
+
</details>
|
|
3527
|
+
|
|
3528
|
+
|
|
3529
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[SIGNALS: NEW IMPLEMENTATION]</span> </strong></summary>
|
|
3530
|
+
|
|
3531
|
+
```txt
|
|
3532
|
+
|
|
3533
|
+
```
|
|
3534
|
+
|
|
3535
|
+
</details>
|
|
3536
|
+
|
|
3537
|
+
|
|
3538
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[DISTRIBUTED REACTIVE STATE]</span> </strong></summary>
|
|
3539
|
+
|
|
3540
|
+
```txt
|
|
3541
|
+
|
|
3542
|
+
```
|
|
3543
|
+
|
|
3544
|
+
</details>
|
|
3545
|
+
|
|
3546
|
+
|
|
3547
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[MESSAGE QUEUE / BUS]</span> </strong></summary>
|
|
3548
|
+
|
|
3549
|
+
```txt
|
|
3550
|
+
|
|
3551
|
+
```
|
|
3552
|
+
|
|
3553
|
+
</details>
|
|
3554
|
+
|
|
3555
|
+
|
|
3556
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: RULE OF 2]</span> </strong></summary>
|
|
3557
|
+
|
|
3558
|
+
```txt
|
|
3559
|
+
|
|
3560
|
+
```
|
|
3561
|
+
|
|
3562
|
+
</details>
|
|
3563
|
+
|
|
3564
|
+
|
|
3565
|
+
|
|
3566
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[DB]</span> </strong></summary>
|
|
3567
|
+
|
|
3568
|
+
```txt
|
|
3569
|
+
|
|
3570
|
+
```
|
|
3571
|
+
|
|
3572
|
+
</details>
|
|
3573
|
+
|
|
3574
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[G BUS]</span> </strong></summary>
|
|
3575
|
+
|
|
3576
|
+
```txt
|
|
3577
|
+
|
|
3578
|
+
```
|
|
3579
|
+
|
|
3580
|
+
</details>
|
|
3581
|
+
|
|
3582
|
+
> [!NOTE] BUILDERS LOG #16
|
|
3583
|
+
>
|
|
3584
|
+
> 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....
|
|
3585
|
+
>
|
|
3586
|
+
> 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...
|
|
3587
|
+
>
|
|
3588
|
+
> 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.
|
|
3589
|
+
>
|
|
3590
|
+
```tsx
|
|
3591
|
+
public sub = (() => {
|
|
3592
|
+
const fn = (handler: A, k: S, s: S = '_globalThis', m: S = this.m, r: S = this.r, c: c_type = "globalThis" ): () => V => {
|
|
3593
|
+
let unsub: () => V = () => {};
|
|
3594
|
+
const once_handler: A = (p: U) => {unsub();handler(p);};
|
|
3595
|
+
unsub = this.sub_infinity(once_handler, k, s, m, r, c);
|
|
3596
|
+
return unsub;
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
public sub_infinity = (() => {
|
|
3600
|
+
const fn = (handler: A, k: S, s: S = '_globalThis', m: S = this.m, r: S = this.r, c: c_type = "globalThis"): () => V => {
|
|
3601
|
+
// CHANNEL LEVEL
|
|
3602
|
+
const channelSet = (mesh.getR(r, c)[r] ??= new Set<A>()) as Set<A>;
|
|
3603
|
+
channelSet.add(handler);
|
|
3604
|
+
|
|
3605
|
+
// SUB_CHANNEL LEVEL
|
|
3606
|
+
const subMap = mesh.getM(m, r, c);
|
|
3607
|
+
const subSet = (subMap[r] ??= new Set<A>()) as Set<A>;
|
|
3608
|
+
subSet.add(handler);
|
|
3609
|
+
|
|
3610
|
+
// TRIP_CHANNEL LEVEL
|
|
3611
|
+
const tripMap = mesh.getS(s, m, r, c);
|
|
3612
|
+
const tripSet = (tripMap[m] ??= new Set<A>()) as Set<A>;
|
|
3613
|
+
tripSet.add(handler);
|
|
3614
|
+
|
|
3615
|
+
// QUAD_CHANNEL LEVEL
|
|
3616
|
+
const quadMap = (tripMap[k] ??= Object.create(null)) as Record<S, Set<A>>;
|
|
3617
|
+
const quadSet = (quadMap[s] ??= new Set<A>()) as Set<A>;
|
|
3618
|
+
quadSet.add(handler);
|
|
3619
|
+
|
|
3620
|
+
return () => {
|
|
3621
|
+
// QUAD_CHANNEL
|
|
3622
|
+
quadSet.delete(handler);
|
|
3623
|
+
if (!quadSet.size) delete quadMap[s];
|
|
3624
|
+
if (!Object.keys(quadMap).length) delete tripMap[k];
|
|
3625
|
+
|
|
3626
|
+
// TRIP_CHANNEL
|
|
3627
|
+
tripSet.delete(handler);
|
|
3628
|
+
if (!tripSet.size) delete tripMap[m];
|
|
3629
|
+
|
|
3630
|
+
// SUB_CHANNEL
|
|
3631
|
+
subSet.delete(handler);
|
|
3632
|
+
if (!subSet.size) delete subMap[r];
|
|
3633
|
+
|
|
3634
|
+
// CHANNEL
|
|
3635
|
+
channelSet.delete(handler);
|
|
3636
|
+
if (!channelSet.size) delete mesh.getR(r, c)[r];
|
|
3637
|
+
|
|
3638
|
+
// Remove empty hierarchy nodes
|
|
3639
|
+
if (!Object.keys(subMap).length) { delete mesh.getR(c, r)[m]; }
|
|
3640
|
+
if (!Object.keys(tripMap).length) { delete mesh.getR(c, r)[m]; }
|
|
3641
|
+
};
|
|
3642
|
+
};
|
|
3643
|
+
|
|
3644
|
+
return fn;
|
|
3645
|
+
})();
|
|
3646
|
+
```
|
|
3647
|
+
|
|
3648
|
+
|
|
3649
|
+
|
|
3650
|
+
|
|
3651
|
+
|
|
3652
|
+
> [!NOTE] PERFORMANCE NOTES
|
|
3653
|
+
>
|
|
3654
|
+
> - 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
|
|
3655
|
+
> - 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
|