SM3 性能优化

This commit is contained in:
cheney 2026-06-10 10:21:15 +08:00
parent 55c00b6579
commit ecd2d6cfe1
3 changed files with 6 additions and 4 deletions

View File

@ -20,5 +20,5 @@ java.rmi.server.hostname=Slave_IP # 绑定本机网卡IP避免多网卡问
Windows: 双击 jmeter-server.bat
Linux/Mac: 运行 ./jmeter-server
./jmeter-server -Djava.rmi.server.hostname=172.1.41.24 -Dserver.rmi.localport=1099

View File

@ -7680,7 +7680,7 @@ public class SydApi4j implements SydApi {
// 填充数据
PacketSN sn = PacketSN.gen();
final int packLen = 4064; // 2048
final int packLen = 8192; //4064 // 2048
int loop = msg.length / packLen;
if (msg.length % packLen > 0) {
loop++;
@ -7736,7 +7736,7 @@ public class SydApi4j implements SydApi {
}
ByteBuffer bb = ByteBuffer.allocate(5 * 1024);
ByteBuffer bb = ByteBuffer.allocate(10 * 1024 );
byte[] ret = new byte[2];
bb.put(ret);

View File

@ -20,7 +20,9 @@ public class PerformanceTest {
@Before
public void start() {
System.setProperty("com.sunyard.sydapi4j.debug", "false");
this.api = (SydApi4j) new SydApi4j().connect("192.168.100.145", 8889, null, 30000);
String ip = System.getProperty("ip", "192.168.100.145");
System.out.println("ip=" + ip);
this.api = (SydApi4j) new SydApi4j().connect(ip, 8889, null, 30000);
this.publicKey4Ende = Util.hexString2Bytes("03420004AF3D4E55D26564C6C937E6EA9232691C01AC5E7916AD2136F788CE7C1E4D0AE8C4754DEC2F7F6A78962D51A171A6F5B4F11823390AEC8B5B0246CD2CCF8052B7");
this.privateKey4Ende = Util.hexString2Bytes("00010000963F7C3A98B7810F52D2861A060E18A9D4D59796CF33967DD61EEDA091E1AD9B0000000000000000000000000000000000000000000000000000000000000000");
}