You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2018/03/15 11:58:21 UTC

[incubator-plc4x] branch master updated: fixed Benchmark

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-plc4x.git


The following commit(s) were added to refs/heads/master by this push:
     new f79137e  fixed Benchmark
f79137e is described below

commit f79137ec0b528a5b969c3844ab2d41ee78ece4dd
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Thu Mar 15 12:58:18 2018 +0100

    fixed Benchmark
---
 .../org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/plc4j/protocols/benchmarks/src/main/java/org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java b/plc4j/protocols/benchmarks/src/main/java/org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java
index b89d776..31197ee 100644
--- a/plc4j/protocols/benchmarks/src/main/java/org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java
+++ b/plc4j/protocols/benchmarks/src/main/java/org/apache/plc4x/java/ads/protocol/ADSProtocolBenchmark.java
@@ -38,7 +38,7 @@ public class ADSProtocolBenchmark {
 
     @State(Scope.Benchmark)
     public static class MyState {
-        Ads2TcpProtocol SUT = new Ads2TcpProtocol();
+        Ads2PayloadProtocol SUT = new Ads2PayloadProtocol();
         AdsWriteRequest adsWriteRequest = buildAdsWriteRequest();
         byte[] adsWriteResponse = buildADSWriteResponse();
         AdsReadRequest adsReadRequest = buildAdsReadRequest();
@@ -130,7 +130,7 @@ public class ADSProtocolBenchmark {
         return AdsWriteResponse.of(
             targetAmsNetId, targetAmsPort, sourceAmsNetId, sourceAmsPort, invokeId,
             result
-        ).toAmstcpPacket().getBytes();
+        ).getBytes();
     }
 
     private static AdsReadRequest buildAdsReadRequest() {
@@ -159,6 +159,6 @@ public class ADSProtocolBenchmark {
             targetAmsNetId, targetAmsPort, sourceAmsNetId, sourceAmsPort, invokeId,
             result,
             data
-        ).toAmstcpPacket().getBytes();
+        ).getBytes();
     }
 }

-- 
To stop receiving notification emails like this one, please contact
sruehl@apache.org.