3 ms·
how does it compare against ciso8601 perf-wise? https://pypi.org/project/ciso8601/ https://pypi.org/project/ciso8601/ to be fair ciso8601 only parses iso8601 d
by mrcarruthers 6y ago
how does it compare against ciso8601 perf-wise? https://pypi.org/project/ciso8601/ https://pypi.org/project/ciso8601/
to be fair ciso8601 only parses iso8601 datetimes, but that's enough for 90%+ of my use cases.
- gukoff 6y agociso8601 is blazingly fast, and also its wall time is very stable. By all means, use ciso8601 if the format allows :) On my machine, ciso8601 always runs in 240ns, and the Rust lib median time is 1250ns. You can run a benchcmark too! Just call pytest, and it will generate an .svg report: https://github.com/gukoff/dtparse/blob/master/tests/test_performance.py https://github.com/gukoff/dtparse/blob/master/tests/test_per... (you'll need to pip install ciso8601 pytest pytest-benchmark[histogram])