Warning: Rust implementations not available: No module named 'exonware.rust'
Warning: External Rust caches not available: No module named 'exonware.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: 14312.59 ops/sec, p50: 0.067ms
  Python LRUCache GET: 16635.48 ops/sec, p50: 0.061ms
  Python LRUCache MIXED: 1669.37 ops/sec, p50: 0.564ms

Python LFUCache:
  Python LFUCache PUT: 19998.59 ops/sec, p50: 0.043ms
  Python LFUCache GET: 25000.32 ops/sec, p50: 0.036ms
  Python LFUCache MIXED: 2499.73 ops/sec, p50: 0.381ms

Python TTLCache:
  Python TTLCache PUT: 7140.82 ops/sec, p50: 0.108ms
  Python TTLCache GET: 10507.56 ops/sec, p50: 0.088ms
  Python TTLCache MIXED: 666.34 ops/sec, p50: 1.207ms

Python OptimizedLFUCache:
  Python OptimizedLFUCache PUT: 7697.95 ops/sec, p50: 0.128ms
  Python OptimizedLFUCache GET: 7687.37 ops/sec, p50: 0.119ms
  Python OptimizedLFUCache MIXED: 909.71 ops/sec, p50: 1.021ms

Python MemoryBoundedLRUCache:
  Python MemoryBoundedLRUCache PUT: 2380.37 ops/sec, p50: 0.401ms
  Python MemoryBoundedLRUCache GET: 9669.42 ops/sec, p50: 0.101ms
  Python MemoryBoundedLRUCache MIXED: 400.12 ops/sec, p50: 2.434ms

Python SecureLRUCache:
  Python SecureLRUCache PUT: 1070.72 ops/sec, p50: 0.836ms
  Python SecureLRUCache GET: 0.00 ops/sec, p50: 0.000ms (ERROR: Rate limit exceeded: 10000 ops/sec. Current rate: 110618 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: 109408 ops/sec. Please slow down and try again later.)

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

CacheboxCache:
  CacheboxCache PUT: 9091.57 ops/sec, p50: 0.093ms
  CacheboxCache GET: 25004.79 ops/sec, p50: 0.036ms
  CacheboxCache MIXED: 1000.76 ops/sec, p50: 0.986ms

FunctoolsLRUCache:
  FunctoolsLRUCache PUT: 16643.40 ops/sec, p50: 0.058ms
  FunctoolsLRUCache GET: 25049.59 ops/sec, p50: 0.044ms
  FunctoolsLRUCache MIXED: 1997.10 ops/sec, p50: 0.410ms

CachetoolsLRUCache:
  CachetoolsLRUCache PUT: 7690.19 ops/sec, p50: 0.116ms
  CachetoolsLRUCache GET: 12509.11 ops/sec, p50: 0.070ms
  CachetoolsLRUCache MIXED: 1330.55 ops/sec, p50: 0.780ms

CachetoolsLFUCache:
  CachetoolsLFUCache PUT: 7696.54 ops/sec, p50: 0.130ms
  CachetoolsLFUCache GET: 11111.62 ops/sec, p50: 0.087ms
  CachetoolsLFUCache MIXED: 1109.99 ops/sec, p50: 0.891ms

CachetoolsTTLCache:
  CachetoolsTTLCache PUT: 3571.08 ops/sec, p50: 0.252ms
  CachetoolsTTLCache GET: 5881.79 ops/sec, p50: 0.160ms
  CachetoolsTTLCache MIXED: 453.11 ops/sec, p50: 2.208ms

CachetoolsRRCache:
  CachetoolsRRCache PUT: 9091.17 ops/sec, p50: 0.107ms
  CachetoolsRRCache GET: 16683.79 ops/sec, p50: 0.049ms
  CachetoolsRRCache MIXED: 1111.78 ops/sec, p50: 0.819ms

Python Diskcache:
  Python Diskcache PUT: 48.54 ops/sec, p50: 14.741ms
  Python Diskcache GET: 850.82 ops/sec, p50: 0.540ms
  Python Diskcache MIXED: 7.56 ops/sec, p50: 130.970ms

Python Pylru:
  Python Pylru PUT: 21927.56 ops/sec, p50: 0.035ms
  Python Pylru GET: 24966.10 ops/sec, p50: 0.022ms
  Python Pylru MIXED: 999.41 ops/sec, p50: 0.560ms

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

Diskcache:
  PUT:   Python=48.54, Rust=N/A
  GET:   Python=850.82, Rust=N/A
  MIXED: Python=7.56, Rust=N/A

LFUCache:
  PUT:   Python=19998.59, Rust=N/A
  GET:   Python=25000.32, Rust=N/A
  MIXED: Python=2499.73, Rust=N/A

LRUCache:
  PUT:   Python=14312.59, Rust=N/A
  GET:   Python=16635.48, Rust=N/A
  MIXED: Python=1669.37, Rust=N/A

MemoryBoundedLRUCache:
  PUT:   Python=2380.37, Rust=N/A
  GET:   Python=9669.42, Rust=N/A
  MIXED: Python=400.12, Rust=N/A

OptimizedLFUCache:
  PUT:   Python=7697.95, Rust=N/A
  GET:   Python=7687.37, Rust=N/A
  MIXED: Python=909.71, Rust=N/A

Pylru:
  PUT:   Python=21927.56, Rust=N/A
  GET:   Python=24966.10, Rust=N/A
  MIXED: Python=999.41, Rust=N/A

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

TTLCache:
  PUT:   Python=7140.82, Rust=N/A
  GET:   Python=10507.56, Rust=N/A
  MIXED: Python=666.34, 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
