You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tensor_chain crate provides a tensor-native blockchain with semantic
consensus, Raft replication, 2PC distributed transactions, and sparse delta
encoding.
Block Creation
Configuration
Time
Per Transaction
empty_block
171 ns
---
block_10_txns
13.4 us
1.34 us
block_100_txns
111 us
1.11 us
Transaction Commit
Operation
Time
Throughput
single_put
432 us
2.3K/s
multi_put_10
480 us
20.8K ops/s
Batch Transactions
Count
Time
Throughput
10
822 us
12.2K/s
100
21.5 ms
4.7K/s
1000
1.6 s
607/s
Consensus Validation
Operation
Time
Notes
conflict_detection_pair
279 ns
Hybrid cosine + Jaccard
cosine_similarity
187 ns
Sparse vector
merge_pair
448 ns
Orthogonal merge
merge_all_10
632 ns
Batch merge
find_merge_order_10
9 us
Optimal ordering
Codebook Operations
Operation
Time
Notes
global_quantize_128d
854 ns
State validation
global_compute_residual
925 ns
Delta compression
global_is_valid_state
1.28 us
State machine check
local_quantize_128d
145 ns
EMA-adaptive
local_quantize_and_update
177 ns
With EMA update
manager_quantize_128d
1.2 us
Full pipeline
Delta Vector Operations
Operation
Time
Improvement
cosine_similarity_128d
196 ns
35% faster
add_128d
975 ns
44% faster
scale_128d
163 ns
35% faster
weighted_average_128d
982 ns
26% faster
overlaps_with
8.4 ns
35% faster
cosine_similarity_768d
1.96 us
10% faster
add_768d
2.6 us
27% faster
Chain Query Operations
Operation
Time
Improvement
get_block_by_height
1.19 us
38% faster
get_tip
1.06 us
45% faster
get_genesis
852 ns
53% faster
height
0.87 ns
50% faster
tip_hash
11.4 ns
32% faster
history_key
163 us
15% faster
verify_chain_100_blocks
276 us
---
Chain Iteration
Operation
Time
Improvement
iterate_50_blocks
88 us
10% faster
get_blocks_range_0_25
35 us
27% faster
K-means Codebook Training
Configuration
Time
100 vectors, 8 clusters
123 us
1000 vectors, 16 clusters
8.4 ms
Sparse Vector Performance
Conflict Detection by Sparsity Level (50 deltas, 128d)