mirror of
https://github.com/hanzoui/pyisolate.git
synced 2026-10-30 20:37:17 +00:00
3.3 KiB
3.3 KiB
PyIsolate Benchmark Instructions
Thank you for helping collect benchmark data! This document explains how to run the benchmarks on your system.
Overview
The benchmark scripts will:
- Install necessary tools and dependencies
- Run performance benchmarks to measure RPC overhead
- Run memory benchmarks to measure RAM and VRAM usage
- Collect system information
- Save all results to a single file
Prerequisites
- Python 3.9 or higher
- Internet connection (for downloading dependencies)
- At least 16GB of RAM recommended (8GB minimum)
- For GPU benchmarks: NVIDIA GPU with CUDA support (optional)
Instructions
Windows Users
- Download or clone this repository to your local machine
- Open Command Prompt (cmd) or PowerShell
- Navigate to the pyisolate directory:
cd path\to\pyisolate - Run the benchmark script:
run_benchmarks_windows.bat - Follow the on-screen instructions
- When complete, send back the file named
benchmark_results_COMPUTERNAME_TIMESTAMP.txt
Linux/macOS Users
- Download or clone this repository to your local machine
- Open Terminal
- Navigate to the pyisolate directory:
cd /path/to/pyisolate - Run the benchmark script:
./run_benchmarks_linux.sh - Follow the on-screen instructions
- When complete, send back the file named
benchmark_results_hostname_timestamp.txt
What to Expect
- First Run: The script will prompt you to install
uvif it's not already installed - Installation: The script will automatically install PyTorch with appropriate CUDA support
- Duration: The full benchmark suite takes approximately 10-20 minutes
- Memory Usage: Some tests may use significant RAM (up to 6GB) and VRAM
- Errors: If tests fail due to out-of-memory errors, this is expected and will be noted in the results
Troubleshooting
"uv not found" Error
The script requires uv for fast package management. Install it using:
Windows (PowerShell):
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Linux/macOS:
curl -LsSf https://astral.sh/uv/install.sh | sh
PyTorch Installation Issues
If PyTorch installation fails:
- The script will try to install a CPU-only version automatically
- You can manually install PyTorch from https://pytorch.org/get-started/locally/
- The benchmarks will still run (with some GPU tests skipped)
Out of Memory Errors
If you see "CUDA out of memory" or similar errors:
- This is expected for systems with limited VRAM
- The script will continue and note which tests failed
- Results are still valuable!
Permission Denied (Linux/macOS)
If you get "permission denied" when running the script:
chmod +x run_benchmarks_linux.sh
./run_benchmarks_linux.sh
What Data is Collected
The benchmark results file contains:
- System specifications (OS, CPU, RAM, GPU)
- Python and package versions
- Performance benchmark results (RPC call timings)
- Memory usage measurements
- Any errors encountered during testing
No personal data is collected.
Questions?
If you encounter any issues not covered here, please include:
- The complete error message
- Your operating system and version
- Any steps you tried to resolve the issue
Thank you for your help in benchmarking PyIsolate!