nyholku / purejavacomm

Pure Java implementation of JavaComm SerialPort
http://www.sparetimelabs.com/purejavacomm/index.html
BSD 3-Clause "New" or "Revised" License
362 stars 146 forks source link

Question #131

Open gsrunion opened 4 years ago

gsrunion commented 4 years ago

Not an issue but a help request. I am benchmarking RxTx vs JSerialComm vs PureJavaComm and I can't get my PJC implementation to work.

My test does N iterations of sending a 256 byte packet between serial ports and capturing the times between when the requester sends the data and it is echoed back to it. I have the JSerialComm and RxTx (which has an identical API to PJC) to work but not the PJC implmentation.

https://github.com/gsrunion/Java-Serial-Solution-Performance-Tests/blob/master/src/main/java/org/peripheral/serial/PureJavaCommStreamingSerialClient.java

https://github.com/gsrunion/Java-Serial-Solution-Performance-Tests/blob/master/src/test/java/org/peripheral/serial/PureJavaCommStreamingSerialClientPerformanceTest.java