Skip to content

Instantly share code, notes, and snippets.

Avatar

Simon Pirschel freach

View GitHub Profile
@freach
freach / bench_datetime_libs.py
Created Aug 11, 2016
Compare performance of ciso8601, mxDateTime and udatetime
View bench_datetime_libs.py
from __future__ import print_function
import sys
from datetime import datetime
from time import time
try:
import ciso8601
except ImportError:
print('pip install ciso8601')
@freach
freach / bench_datetime_libs.py
Created Aug 4, 2016
Compare instantiation, parsing and formatting of several different Python date-time libraries
View bench_datetime_libs.py
from __future__ import print_function
import sys
from datetime import datetime
from time import time
try:
import arrow
except ImportError:
print('pip install arrow')