private void perfTest(int count, DataMap map) throws IOException
{
List<DataCodec> codecs = new ArrayList<DataCodec>();
codecs.add(new JacksonDataCodec());
//codecs.add(new Bson4JacksonDataCodec());
codecs.add(new BsonDataCodec());
for (DataCodec codec : codecs)
{
byte[] bytes = codec.mapToBytes(map);
out.println(codec.getClass().getName() + " serialized size " + bytes.length);