1 package perf; 2 3 import com.fasterxml.jackson.databind.json.JsonMapper; 4 5 public class ManualWritePerfWithRecord 6 extends ObjectWriterTestBase<Record, RecordAsArray> 7 { 8 @Override targetSizeMegs()9 protected int targetSizeMegs() { return 10; } 10 main(String[] args)11 public static void main(String[] args) throws Exception 12 { 13 if (args.length != 0) { 14 System.err.println("Usage: java ..."); 15 System.exit(1); 16 } 17 Record input1 = new Record(44, "BillyBob", "Bumbler", 'm', true); 18 RecordAsArray input2 = new RecordAsArray(44, "BillyBob", "Bumbler", 'm', true); 19 JsonMapper m = new JsonMapper(); 20 new ManualWritePerfWithRecord().test(m, 21 "JSON-as-Object", input1, Record.class, 22 "JSON-as-Array", input2, RecordAsArray.class); 23 } 24 } 25