From: Marek L. <ma...@le...> - 2005-02-18 07:24:08
|
Marek Lewczuk napisał(a): > Jost Boekemeier napisał(a): > >> A binary snapshot of version 2.0 is available: >> >> http://php-java-bridge.sf.net/JavaBridge.jar >> http://php-java-bridge.sf.net/php >> >> The server can be started with: >> >> java -jar JavaBridge.jar >> >> The PHP binary is version 5.0.3 with the bridge >> compiled in. >> >> The official 2.0 version will be available next month. >> >> Please report bugs to the mailing list or open a >> ticket. >> Regards, >> Jost Boekemeier > > Hello Jost, > After start of PHP I saw something like this in JavaBridge console: > lut 18 07:07:35 JavaBridge DEBUG: Request from unknown client > > But this is only a warning. But, I've made simple test: > > > require_once "Benchmark/Timer.php"; > $timer = new Benchmark_Timer(); > $timer->start(); > for ($i = 0; $i < 100; $i++) { > $string = new Java("java.lang.String", "sdsdsd"); > } > $timer->stop(); > $timer->display(); > > The results: > ------------------------------------------------------------- > marker time index ex time perct > ------------------------------------------------------------- > Start 1108710914.89464700 - 0.00% > ------------------------------------------------------------- > Stop 1108710917.28214400 2.38749718666 100.00% > ------------------------------------------------------------- > total - 2.38749718666 100.00% > ------------------------------------------------------------- > > PHP bug, an object destructor was called after module shutdown > > > > As you see there is some problem with object destructor and also > JavaBridge is quite slow - over 2 seconds in making 100 strings objects > - is this normal behavior ? One correction: the performance is low because of that I've run JavaBridge in second console which prints all debug informations. When I've run with " > /dev/null &" then the results looks much better: ------------------------------------------------------------- marker time index ex time perct ------------------------------------------------------------- Start 1108711271.00199500 - 0.00% ------------------------------------------------------------- Stop 1108711271.10505000 0.103055000305 100.00% ------------------------------------------------------------- total - 0.103055000305 100.00% ------------------------------------------------------------- PHP bug, an object destructor was called after module shutdown |