Warning: Rust implementations not available: No module named '_xwsystem_rust'
Warning: External Rust caches not available: No module named '_xwsystem_rust'
Caching Benchmark: Rust vs Python
============================================================
Testing all available cache implementations
============================================================
Warning: No Rust cache implementations available!
  To enable Rust benchmarks: cd xwsystem/rust && maturin develop --release

============================================================
Benchmarking Python Cache Implementations
============================================================

Python LRUCache:
  Python LRUCache PUT: 4996.91 ops/sec, p50: 0.108ms
  Python LRUCache GET: 5876.35 ops/sec, p50: 0.099ms
  Python LRUCache MIXED: 425.53 ops/sec, p50: 0.977ms

Python LFUCache:
  Python LFUCache PUT: 12501.28 ops/sec, p50: 0.070ms
  Python LFUCache GET: 8328.81 ops/sec, p50: 0.058ms
  Python LFUCache MIXED: 1427.99 ops/sec, p50: 0.627ms

Python TTLCache:
  Python TTLCache PUT: 5000.00 ops/sec, p50: 0.175ms
  Python TTLCache GET: 9096.89 ops/sec, p50: 0.090ms
  Python TTLCache MIXED: 714.52 ops/sec, p50: 1.265ms

Python OptimizedLFUCache:
  Python OptimizedLFUCache PUT: 7437.37 ops/sec, p50: 0.130ms
  Python OptimizedLFUCache GET: 7692.44 ops/sec, p50: 0.119ms
  Python OptimizedLFUCache MIXED: 909.16 ops/sec, p50: 1.053ms

Python MemoryBoundedLRUCache:
  Python MemoryBoundedLRUCache PUT: 2325.88 ops/sec, p50: 0.400ms
  Python MemoryBoundedLRUCache GET: 8328.31 ops/sec, p50: 0.105ms
  Python MemoryBoundedLRUCache MIXED: 391.79 ops/sec, p50: 2.523ms

Python SecureLRUCache:
  Python SecureLRUCache PUT: 1004.50 ops/sec, p50: 0.926ms
  Python SecureLRUCache GET: 0.00 ops/sec, p50: 0.000ms (ERROR: Rate limit exceeded: 10000 ops/sec. Current rate: 104639 ops/sec. Please slow down and try again later.)
  Python SecureLRUCache MIXED: 0.00 ops/sec, p50: 0.000ms (ERROR: Rate limit exceeded: 10000 ops/sec. Current rate: 103562 ops/sec. Please slow down and try again later.)

============================================================
Benchmarking External Python Cache Libraries
============================================================

CacheboxCache:
  CacheboxCache PUT: 9084.48 ops/sec, p50: 0.103ms
  CacheboxCache GET: 25007.77 ops/sec, p50: 0.039ms
  CacheboxCache MIXED: 833.33 ops/sec, p50: 1.177ms

FunctoolsLRUCache:
  FunctoolsLRUCache PUT: 12512.09 ops/sec, p50: 0.061ms
  FunctoolsLRUCache GET: 19998.59 ops/sec, p50: 0.047ms
  FunctoolsLRUCache MIXED: 2495.42 ops/sec, p50: 0.445ms

CachetoolsLRUCache:
  CachetoolsLRUCache PUT: 8338.58 ops/sec, p50: 0.114ms
  CachetoolsLRUCache GET: 12488.99 ops/sec, p50: 0.072ms
  CachetoolsLRUCache MIXED: 999.62 ops/sec, p50: 0.863ms

CachetoolsLFUCache:
  CachetoolsLFUCache PUT: 6443.46 ops/sec, p50: 0.142ms
  CachetoolsLFUCache GET: 9084.68 ops/sec, p50: 0.091ms
  CachetoolsLFUCache MIXED: 1111.25 ops/sec, p50: 0.906ms

CachetoolsTTLCache:
  CachetoolsTTLCache PUT: 3704.50 ops/sec, p50: 0.261ms
  CachetoolsTTLCache GET: 5263.01 ops/sec, p50: 0.164ms
  CachetoolsTTLCache MIXED: 434.81 ops/sec, p50: 2.363ms

CachetoolsRRCache:
  CachetoolsRRCache PUT: 8104.94 ops/sec, p50: 0.111ms
  CachetoolsRRCache GET: 24997.34 ops/sec, p50: 0.048ms
  CachetoolsRRCache MIXED: 1110.72 ops/sec, p50: 0.806ms

Python Diskcache:
  Python Diskcache PUT: 32.05 ops/sec, p50: 29.956ms
  Python Diskcache GET: 430.01 ops/sec, p50: 1.137ms
  Python Diskcache MIXED: 5.38 ops/sec, p50: 196.800ms

Python Pylru:
  Python Pylru PUT: 24595.70 ops/sec, p50: 0.038ms
  Python Pylru GET: 33330.45 ops/sec, p50: 0.024ms
  Python Pylru MIXED: 2507.81 ops/sec, p50: 0.377ms

============================================================
Comparison Summary
============================================================

Diskcache:
  PUT:   Python=32.05, Rust=N/A
  GET:   Python=430.01, Rust=N/A
  MIXED: Python=5.38, Rust=N/A

LFUCache:
  PUT:   Python=12501.28, Rust=N/A
  GET:   Python=8328.81, Rust=N/A
  MIXED: Python=1427.99, Rust=N/A

LRUCache:
  PUT:   Python=4996.91, Rust=N/A
  GET:   Python=5876.35, Rust=N/A
  MIXED: Python=425.53, Rust=N/A

MemoryBoundedLRUCache:
  PUT:   Python=2325.88, Rust=N/A
  GET:   Python=8328.31, Rust=N/A
  MIXED: Python=391.79, Rust=N/A

OptimizedLFUCache:
  PUT:   Python=7437.37, Rust=N/A
  GET:   Python=7692.44, Rust=N/A
  MIXED: Python=909.16, Rust=N/A

Pylru:
  PUT:   Python=24595.70, Rust=N/A
  GET:   Python=33330.45, Rust=N/A
  MIXED: Python=2507.81, Rust=N/A

SecureLRUCache:
  PUT:   Python=1004.50, Rust=N/A
  GET:   Python=0.00, Rust=N/A
  MIXED: Python=0.00, Rust=N/A

TTLCache:
  PUT:   Python=5000.00, Rust=N/A
  GET:   Python=9096.89, Rust=N/A
  MIXED: Python=714.52, Rust=N/A

Note: Rust implementations not available. To enable Rust benchmarks:
  cd xwsystem/rust && maturin develop --release

Note: External Rust caches not available. To enable:
  cd xwsystem/rust && maturin develop --release --features external-caches

Note: Cacheout not available. Install with: pip install cacheout
