public static void main(String[] args) throws JsonGenerationException, JsonMappingException, IOException{
		int times=100000;
		long start=System.nanoTime();
		for(int i=0;i<times;i++){
			Map<String,Object> map=new HashMap<String,Object>();
			map.put("code", 502);
			map.put("message", "服务器内部错误");
			mapper.writeValueAsString(map);
		}
		System.out.println((System.nanoTime()-start));
		start=System.nanoTime();
		for(int i=0;i<times;i++){
			JacksonPerformance jp=new JacksonPerformance();
			jp.setCode(502);
			jp.setMessage("服务器内部错误");
			mapper.writeValueAsString(jp);
		}
		System.out.println((System.nanoTime()-start));
	}