git clone https://github.com/CalthorpeAnalytics/mapbox-vector-tile.git
git checkout enable-shapely-speedups
Copy the Dockerfile
in this gist into the directory where you cloned repo then run:
docker build -t mapbox-vector-tiles-dev .
time docker run --rm -it mapbox-vector-tiles-dev bash -c 'zcat fgeoms.wkt.zip | head -10000 | python bench/bench_encode.py'
NOTE: The Docker image uses Python 3 so it needs the changes for the benchmark script from this PR tilezen/mapbox-vector-tile#90 in order to work.