minor code cleanup in serializer benchmark process