Skip to content

koenvo/python-experiments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Experiments

Exploring modern Python features, performance optimizations, and emerging technologies through hands-on experiments and benchmarks.

Experiments

Benchmarks demonstrating Python 3.14's experimental free-threaded build that removes the Global Interpreter Lock (GIL). Compares threading vs multiprocessing performance and explores shared memory use cases.

Key findings: 5-6x speedup for CPU-bound tasks, competitive with multiprocessing, 10x memory savings for shared state.

Requirements

  • uv - Fast Python package manager

Quick Start

# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Navigate to an experiment
cd free-threading

# Follow the experiment's README for specific setup

About

This repository is a collection of hands-on experiments exploring:

  • Modern Python features and performance characteristics
  • Emerging technologies in the Python ecosystem
  • Real-world performance comparisons and benchmarks
  • Practical integration patterns and best practices

Each experiment includes runnable code, detailed explanations, and key findings.

Contributing

Have an idea for a performance experiment? Open an issue or submit a pull request!

License

MIT - Feel free to use these benchmarks for your own testing and analysis.

About

My Python Experiments collection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages