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: 12503.14 ops/sec, p50: 0.071ms
  Python LRUCache GET: 14282.86 ops/sec, p50: 0.064ms
  Python LRUCache MIXED: 285.56 ops/sec, p50: 1.349ms

Python LFUCache:
  Python LFUCache PUT: 14271.68 ops/sec, p50: 0.074ms
  Python LFUCache GET: 15321.66 ops/sec, p50: 0.062ms
  Python LFUCache MIXED: 625.07 ops/sec, p50: 0.871ms

Python TTLCache:
  Python TTLCache PUT: 5265.52 ops/sec, p50: 0.184ms
  Python TTLCache GET: 9997.86 ops/sec, p50: 0.091ms
  Python TTLCache MIXED: 714.03 ops/sec, p50: 1.234ms

Python OptimizedLFUCache:
  Python OptimizedLFUCache PUT: 6663.23 ops/sec, p50: 0.131ms
  Python OptimizedLFUCache GET: 7139.48 ops/sec, p50: 0.126ms
  Python OptimizedLFUCache MIXED: 868.98 ops/sec, p50: 1.181ms

Python MemoryBoundedLRUCache:
  Python MemoryBoundedLRUCache PUT: 2380.99 ops/sec, p50: 0.407ms
  Python MemoryBoundedLRUCache GET: 9096.10 ops/sec, p50: 0.100ms
  Python MemoryBoundedLRUCache MIXED: 384.51 ops/sec, p50: 2.622ms

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

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

CacheboxCache:
  CacheboxCache PUT: 9981.92 ops/sec, p50: 0.095ms
  CacheboxCache GET: 24973.53 ops/sec, p50: 0.039ms
  CacheboxCache MIXED: 950.81 ops/sec, p50: 1.026ms

FunctoolsLRUCache:
  FunctoolsLRUCache PUT: 16638.78 ops/sec, p50: 0.060ms
  FunctoolsLRUCache GET: 20010.99 ops/sec, p50: 0.046ms
  FunctoolsLRUCache MIXED: 2002.72 ops/sec, p50: 0.416ms

CachetoolsLRUCache:
  CachetoolsLRUCache PUT: 8329.30 ops/sec, p50: 0.110ms
  CachetoolsLRUCache GET: 14279.94 ops/sec, p50: 0.071ms
  CachetoolsLRUCache MIXED: 1111.04 ops/sec, p50: 0.800ms

CachetoolsLFUCache:
  CachetoolsLFUCache PUT: 7691.88 ops/sec, p50: 0.128ms
  CachetoolsLFUCache GET: 9993.10 ops/sec, p50: 0.089ms
  CachetoolsLFUCache MIXED: 1111.07 ops/sec, p50: 0.850ms

CachetoolsTTLCache:
  CachetoolsTTLCache PUT: 4075.03 ops/sec, p50: 0.242ms
  CachetoolsTTLCache GET: 6249.80 ops/sec, p50: 0.157ms
  CachetoolsTTLCache MIXED: 416.66 ops/sec, p50: 2.235ms

CachetoolsRRCache:
  CachetoolsRRCache PUT: 9096.30 ops/sec, p50: 0.102ms
  CachetoolsRRCache GET: 19947.23 ops/sec, p50: 0.047ms
  CachetoolsRRCache MIXED: 1252.18 ops/sec, p50: 0.749ms

Python Diskcache:
  Python Diskcache PUT: 36.03 ops/sec, p50: 24.309ms
  Python Diskcache GET: 531.68 ops/sec, p50: 1.037ms
  Python Diskcache MIXED: 6.75 ops/sec, p50: 162.325ms

Python Pylru:
  Python Pylru PUT: 11111.33 ops/sec, p50: 0.081ms
  Python Pylru GET: 20005.27 ops/sec, p50: 0.051ms
  Python Pylru MIXED: 1248.71 ops/sec, p50: 0.794ms

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

Diskcache:
  PUT:   Python=36.03, Rust=N/A
  GET:   Python=531.68, Rust=N/A
  MIXED: Python=6.75, Rust=N/A

LFUCache:
  PUT:   Python=14271.68, Rust=N/A
  GET:   Python=15321.66, Rust=N/A
  MIXED: Python=625.07, Rust=N/A

LRUCache:
  PUT:   Python=12503.14, Rust=N/A
  GET:   Python=14282.86, Rust=N/A
  MIXED: Python=285.56, Rust=N/A

MemoryBoundedLRUCache:
  PUT:   Python=2380.99, Rust=N/A
  GET:   Python=9096.10, Rust=N/A
  MIXED: Python=384.51, Rust=N/A

OptimizedLFUCache:
  PUT:   Python=6663.23, Rust=N/A
  GET:   Python=7139.48, Rust=N/A
  MIXED: Python=868.98, Rust=N/A

Pylru:
  PUT:   Python=11111.33, Rust=N/A
  GET:   Python=20005.27, Rust=N/A
  MIXED: Python=1248.71, Rust=N/A

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

TTLCache:
  PUT:   Python=5265.52, Rust=N/A
  GET:   Python=9997.86, Rust=N/A
  MIXED: Python=714.03, 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
