code: def bench_serpy():
      
  
      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()]
docs: Beanchmark for 1000 objects with 2 fields.