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: 12358.36 ops/sec, p50: 0.071ms
  Python LRUCache GET: 14288.70 ops/sec, p50: 0.063ms
  Python LRUCache MIXED: 1447.36 ops/sec, p50: 0.648ms

Python LFUCache:
  Python LFUCache PUT: 24985.43 ops/sec, p50: 0.045ms
  Python LFUCache GET: 23982.53 ops/sec, p50: 0.038ms
  Python LFUCache MIXED: 1997.86 ops/sec, p50: 0.498ms

Python TTLCache:
  Python TTLCache PUT: 5551.55 ops/sec, p50: 0.175ms
  Python TTLCache GET: 11118.10 ops/sec, p50: 0.090ms
  Python TTLCache MIXED: 625.03 ops/sec, p50: 1.554ms

Python OptimizedLFUCache:
  Python OptimizedLFUCache PUT: 7677.24 ops/sec, p50: 0.130ms
  Python OptimizedLFUCache GET: 7400.36 ops/sec, p50: 0.118ms
  Python OptimizedLFUCache MIXED: 832.86 ops/sec, p50: 1.066ms

Python MemoryBoundedLRUCache:
  Python MemoryBoundedLRUCache PUT: 2272.71 ops/sec, p50: 0.412ms
  Python MemoryBoundedLRUCache GET: 9095.91 ops/sec, p50: 0.100ms
  Python MemoryBoundedLRUCache MIXED: 376.66 ops/sec, p50: 2.596ms

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

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

CacheboxCache:
  CacheboxCache PUT: 9994.77 ops/sec, p50: 0.100ms
  CacheboxCache GET: 24966.10 ops/sec, p50: 0.038ms
  CacheboxCache MIXED: 909.97 ops/sec, p50: 1.078ms

FunctoolsLRUCache:
  FunctoolsLRUCache PUT: 16649.35 ops/sec, p50: 0.057ms
  FunctoolsLRUCache GET: 20005.27 ops/sec, p50: 0.046ms
  FunctoolsLRUCache MIXED: 2500.33 ops/sec, p50: 0.411ms

CachetoolsLRUCache:
  CachetoolsLRUCache PUT: 9095.51 ops/sec, p50: 0.109ms
  CachetoolsLRUCache GET: 14263.43 ops/sec, p50: 0.069ms
  CachetoolsLRUCache MIXED: 1249.98 ops/sec, p50: 0.800ms

CachetoolsLFUCache:
  CachetoolsLFUCache PUT: 7140.46 ops/sec, p50: 0.133ms
  CachetoolsLFUCache GET: 11735.93 ops/sec, p50: 0.086ms
  CachetoolsLFUCache MIXED: 999.36 ops/sec, p50: 0.890ms

CachetoolsTTLCache:
  CachetoolsTTLCache PUT: 3448.10 ops/sec, p50: 0.249ms
  CachetoolsTTLCache GET: 5884.93 ops/sec, p50: 0.157ms
  CachetoolsTTLCache MIXED: 434.81 ops/sec, p50: 2.207ms

CachetoolsRRCache:
  CachetoolsRRCache PUT: 7136.08 ops/sec, p50: 0.107ms
  CachetoolsRRCache GET: 20006.22 ops/sec, p50: 0.044ms
  CachetoolsRRCache MIXED: 1329.16 ops/sec, p50: 0.742ms

Python Diskcache:
  Python Diskcache PUT: 43.87 ops/sec, p50: 17.507ms
  Python Diskcache GET: 507.50 ops/sec, p50: 1.051ms
  Python Diskcache MIXED: 7.14 ops/sec, p50: 141.067ms

Python Pylru:
  Python Pylru PUT: 19953.87 ops/sec, p50: 0.038ms
  Python Pylru GET: 50339.70 ops/sec, p50: 0.023ms
  Python Pylru MIXED: 1997.86 ops/sec, p50: 0.395ms

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

Diskcache:
  PUT:   Python=43.87, Rust=N/A
  GET:   Python=507.50, Rust=N/A
  MIXED: Python=7.14, Rust=N/A

LFUCache:
  PUT:   Python=24985.43, Rust=N/A
  GET:   Python=23982.53, Rust=N/A
  MIXED: Python=1997.86, Rust=N/A

LRUCache:
  PUT:   Python=12358.36, Rust=N/A
  GET:   Python=14288.70, Rust=N/A
  MIXED: Python=1447.36, Rust=N/A

MemoryBoundedLRUCache:
  PUT:   Python=2272.71, Rust=N/A
  GET:   Python=9095.91, Rust=N/A
  MIXED: Python=376.66, Rust=N/A

OptimizedLFUCache:
  PUT:   Python=7677.24, Rust=N/A
  GET:   Python=7400.36, Rust=N/A
  MIXED: Python=832.86, Rust=N/A

Pylru:
  PUT:   Python=19953.87, Rust=N/A
  GET:   Python=50339.70, Rust=N/A
  MIXED: Python=1997.86, Rust=N/A

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

TTLCache:
  PUT:   Python=5551.55, Rust=N/A
  GET:   Python=11118.10, Rust=N/A
  MIXED: Python=625.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
