Beanchmark for 1000 objects with 2 fields.

def bench_serpy():
    """Beanchmark for 1000 objects with 2 fields.
    """

    class FooSerializer(serpy.DictSerializer):
        """The serializer schema definition."""
        # Use a Field subclass like IntField if you need more validation.
        attr_2 = serpy.IntField()
        attr_1 = serpy.StrField()

    return [FooSerializer(obj).data for obj in object_loader()]