Added docstrings to all contrib scripts
This commit is contained in:
@@ -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=".")
|
||||
|
||||
Reference in New Issue
Block a user