Skip to content

Instantly share code, notes, and snippets.

View dmontagu's full-sized avatar

David Montague dmontagu

  • Pydantic
  • Bozeman, MT
View GitHub Profile
@dmontagu
dmontagu / py37_cython_not_present.log
Created May 27, 2019 10:21
Benchmark timings with PyPy
pydantic time=1.073s, success=50.60%
pydantic time=1.078s, success=50.60%
pydantic time=1.071s, success=50.60%
pydantic time=1.071s, success=50.60%
pydantic time=1.092s, success=50.60%
pydantic best=1.071s, avg=1.077s, stdev=0.009s
@dmontagu
dmontagu / cython_all.log
Last active May 25, 2019 23:48
Pydantic benchmark line-profiled
Full output on cython branch:
-----------------------------
pydantic time=6.347s, success=50.60%
pydantic time=7.167s, success=50.60%
pydantic time=8.733s, success=50.60%
pydantic time=6.832s, success=50.60%
pydantic time=7.747s, success=50.60%
pydantic best=6.347s, avg=7.365s, stdev=0.919s
pydantic best=211.579μs/iter avg=245.504μs/iter stdev=30.618μs/iter
@dmontagu
dmontagu / docker-compose.deploy.volumes-placement.yml
Last active October 12, 2021 03:33
Elasticsearch config files for use with FastAPI generated project
version: '3.3'
services:
db:
volumes:
- app-db-data:/var/lib/postgresql/data/pgdata
deploy:
placement:
constraints:
- node.labels.${STACK_NAME}.app-db-data == true
es01: