0

Added docstrings to all contrib scripts

This commit is contained in:
Andrew Chin
2011-08-25 21:57:08 -04:00
parent 48bc9da527
commit 22f40a9075
8 changed files with 32 additions and 6 deletions

View File

@@ -1,3 +1,13 @@
"""Simple Benchmarking script.
Usage and example:
$ python contrib/benchmark.py World4/
Rendering 50 chunks...
Took 20.290062 seconds or 0.405801 seconds per chunk, or 2.464261 chunks per second
"""
import chunk
import world
import tempfile
@@ -8,12 +18,6 @@ import os
import sys
import shutil
# Simple Benchmarking script. Usage and example:
# $ python contrib/benchmark.py World4/
# Rendering 50 chunks...
# Took 20.290062 seconds or 0.405801 seconds per chunk, or 2.464261 chunks per second
# create a new, empty, cache dir
cachedir = tempfile.mkdtemp(prefix="benchmark_cache", dir=".")