blob: 88cc032dd362b9b69d03e15c6fd22c4479edf196 [file] [log] [blame]
Ò»¡¢Ð½¨Ò»¸öbenchmark¹¤³Ì£¬Èçdemo.benchmark
¶þ¡¢µ¼Èë×Ô¼º·þÎñµÄ½Ó¿Úapi°üºÍdubbo.benchmark.jar(½âѹdubbo.benchmark.tar.gz£¬ÔÚlibĿ¼ÏÂ)
Èý¡¢Ð½¨Ò»¸öÀ࣬ʵÏÖAbstractClientRunnable
a¡¢ÊµÏÖ¸¸ÀàµÄ¹¹Ô캯Êý
b¡¢ÊµÏÖinvoke·½·¨£¬Í¨¹ýserviceFactory´´½¨±¾µØ½Ó¿Ú´úÀí£¬²¢ÊµÏÖ×Ô¼ºµÄÒµÎñÂß¼­£¬ÈçÏÂ
public Object invoke(ServiceFactory serviceFactory) {
DemoService demoService = (DemoService) serviceFactory.get(DemoService.class);
return demoService.sendRequest("hello");
}
ËÄ¡¢½«×Ô¼ºµÄbenchmark¹¤³Ì´ò³Éjar°ü,Èçdemo.benchmark.jar
Îå¡¢½«demo.benchmark.jar·Åµ½dubbo.benchmark/libĿ¼ÏÂ
Áù¡¢ÅäÖÃduubo.properties
Æß¡¢ÔËÐÐrun.bat(windows)»òrun.sh(linux)