benchmark writes pickle in binary mode