@the-w1zard/singularity 1.0.11 → 1.0.12
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 +664 -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 +11 -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
|
-
|
|
2627
|
-
```txt
|
|
2628
2625
|
|
|
2629
|
-
```
|
|
2630
|
-
|
|
2631
|
-
</details>
|
|
2632
2626
|
|
|
2633
2627
|
|
|
2634
2628
|
> [!NOTE] BUILDERS LOG #10
|
|
@@ -2780,3 +2774,667 @@ 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
|
+
</details>
|
|
3327
|
+
|
|
3328
|
+
|
|
3329
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[THE DARK SIDE: USE STATE]</span> </strong></summary>
|
|
3330
|
+
|
|
3331
|
+
```txt
|
|
3332
|
+
|
|
3333
|
+
```
|
|
3334
|
+
|
|
3335
|
+
</details>
|
|
3336
|
+
|
|
3337
|
+
|
|
3338
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: SIGNALS]</span> </strong></summary>
|
|
3339
|
+
|
|
3340
|
+
```txt
|
|
3341
|
+
|
|
3342
|
+
```
|
|
3343
|
+
|
|
3344
|
+
</details>
|
|
3345
|
+
|
|
3346
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: SPREADSHEET]</span> </strong></summary>
|
|
3347
|
+
|
|
3348
|
+
```txt
|
|
3349
|
+
|
|
3350
|
+
```
|
|
3351
|
+
|
|
3352
|
+
</details>
|
|
3353
|
+
|
|
3354
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: STREAMING]</span> </strong></summary>
|
|
3355
|
+
|
|
3356
|
+
```txt
|
|
3357
|
+
|
|
3358
|
+
```
|
|
3359
|
+
|
|
3360
|
+
</details>
|
|
3361
|
+
|
|
3362
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: BATCHING]</span> </strong></summary>
|
|
3363
|
+
|
|
3364
|
+
```txt
|
|
3365
|
+
|
|
3366
|
+
```
|
|
3367
|
+
|
|
3368
|
+
</details>
|
|
3369
|
+
|
|
3370
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[SIGNALS]</span> </strong></summary>
|
|
3371
|
+
|
|
3372
|
+
```txt
|
|
3373
|
+
|
|
3374
|
+
```
|
|
3375
|
+
|
|
3376
|
+
</details>
|
|
3377
|
+
|
|
3378
|
+
|
|
3379
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[SIGNALS: ATOMS]</span> </strong></summary>
|
|
3380
|
+
|
|
3381
|
+
```txt
|
|
3382
|
+
|
|
3383
|
+
```
|
|
3384
|
+
|
|
3385
|
+
</details>
|
|
3386
|
+
|
|
3387
|
+
|
|
3388
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[SIGNALS: NEW IMPLEMENTATION]</span> </strong></summary>
|
|
3389
|
+
|
|
3390
|
+
```txt
|
|
3391
|
+
|
|
3392
|
+
```
|
|
3393
|
+
|
|
3394
|
+
</details>
|
|
3395
|
+
|
|
3396
|
+
|
|
3397
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[DISTRIBUTED REACTIVE STATE]</span> </strong></summary>
|
|
3398
|
+
|
|
3399
|
+
```txt
|
|
3400
|
+
|
|
3401
|
+
```
|
|
3402
|
+
|
|
3403
|
+
</details>
|
|
3404
|
+
|
|
3405
|
+
|
|
3406
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[MESSAGE QUEUE / BUS]</span> </strong></summary>
|
|
3407
|
+
|
|
3408
|
+
```txt
|
|
3409
|
+
|
|
3410
|
+
```
|
|
3411
|
+
|
|
3412
|
+
</details>
|
|
3413
|
+
|
|
3414
|
+
|
|
3415
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[RAPTOR: RULE OF 2]</span> </strong></summary>
|
|
3416
|
+
|
|
3417
|
+
```txt
|
|
3418
|
+
|
|
3419
|
+
```
|
|
3420
|
+
|
|
3421
|
+
</details>
|
|
3422
|
+
|
|
3423
|
+
|
|
3424
|
+
|
|
3425
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[DB]</span> </strong></summary>
|
|
3426
|
+
|
|
3427
|
+
```txt
|
|
3428
|
+
|
|
3429
|
+
```
|
|
3430
|
+
|
|
3431
|
+
</details>
|
|
3432
|
+
|
|
3433
|
+
<details style="font-size: 14.5px;"><summary><strong><span style="font-size: 16px; font-family: monospace">[G BUS]</span> </strong></summary>
|
|
3434
|
+
|
|
3435
|
+
```txt
|
|
3436
|
+
|
|
3437
|
+
```
|
|
3438
|
+
|
|
3439
|
+
</details>
|
|
3440
|
+
|