Skip to content

Instantly share code, notes, and snippets.

View freach's full-sized avatar

Simon Pirschel freach

View GitHub Profile
@freach
freach / bench_datetime_libs.py
Created August 11, 2016 10:28
Compare performance of ciso8601, mxDateTime and udatetime
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 August 4, 2016 19:59
Compare instantiation, parsing and formatting of several different Python date-time libraries
from __future__ import print_function
import sys
from datetime import datetime
from time import time
try:
import arrow
except ImportError:
print('pip install arrow')