Benchmarks for implementations of Conway's Game of Life
Project description
Fast Life
Fast Life is an experiment in Python simulation performance. Python has many excellent simulation frameworks including SimPy and MESA, which make it easy to conduct simulations for research and experimental purposes. Fast Life is not intended to be a simulation framework in the same way, instead Fast Life is designed to answer the question: "Can Python be used to create extremely large scale simulations"? To this end, Fast Life implements a seemingly simple simulation: Conway's Game of Life -- but scales it up to massive proportions. We then explore several different implementations including:
- Pure Python Sequential
- Pure Python Multiprocessing
- C-bindings Sequential
- C-bindings Parallel
Each of these implementations will be benchmarked with significantly sized worlds and the same random seeds to determine how their performance scales. Please see fastlife.readthedocs.io for more details and the complete write up on the documentation.
Quick Start
Install the package and the command line tool using the Python package manager as follows:
$ pip install fastlife
Alternatively, if you're interested in development, you can download the repository, cd into it and install locally with:
$ git clone https://github.com/bbengfort/fastlife.git
$ cd fastlife
$ pip install -e .
Note that if you're developing, you should probably set up a virtualenv and all of that good stuff before doing this step. Once done, you should have a CLI script fastlife
installed on your path, check it out as follows:
$ fastlife --help
To run a simulation and see the animated action, you would use fastlife run -a
- you can play with the various settings and commands to see different implementations of the simulation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fastlife-0.2.tar.gz
.
File metadata
- Download URL: fastlife-0.2.tar.gz
- Upload date:
- Size: 35.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0187768a3b6eb756a2c288050c0001cb13eddde260799e88de3f43c9e017c13c |
|
MD5 | 6c9607f81a6f5885936477a001ae4501 |
|
BLAKE2b-256 | bfb492d673cbf6e8da485ff457249f4836fcc0d07e9b62b1d59221145287dd34 |
File details
Details for the file fastlife-0.2-py3-none-any.whl
.
File metadata
- Download URL: fastlife-0.2-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d8255354233ef58520f87324fdf2312b79e45843300ef073a0569db4254f81f |
|
MD5 | ccb279f63099a6c088cc57562d69b382 |
|
BLAKE2b-256 | a19c48cc7ce4e81524e45469350b754a138c462cbf24bd6a073f238a67116599 |