Moved fuse benchmark into separate dir
This commit is contained in:
+2
-1
@@ -81,7 +81,7 @@ class BenchmarkPublisher {
|
|||||||
|
|
||||||
// Once we connect..
|
// Once we connect..
|
||||||
public void onSuccess(Void v) {
|
public void onSuccess(Void v) {
|
||||||
println "PUB: Succesfully connected to server"
|
println "PUB: Successfully connected to server"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.m_latch = new CountDownLatch(1)
|
this.m_latch = new CountDownLatch(1)
|
||||||
@@ -105,6 +105,7 @@ class BenchmarkPublisher {
|
|||||||
long nanos = System.nanoTime()
|
long nanos = System.nanoTime()
|
||||||
byte[] message = "Hello world!!-${nanos}".bytes
|
byte[] message = "Hello world!!-${nanos}".bytes
|
||||||
connection.publish("/topic" + dialog_id, message, qos, retain, pubCallback)
|
connection.publish("/topic" + dialog_id, message, qos, retain, pubCallback)
|
||||||
|
print ".\n"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
timer.sleep(pauseMicroseconds)
|
timer.sleep(pauseMicroseconds)
|
||||||
+1
@@ -69,6 +69,7 @@ class BenchmarkSubscriber {
|
|||||||
long sentTime = message.split('-')[1] as long
|
long sentTime = message.split('-')[1] as long
|
||||||
long delay = System.nanoTime() - sentTime
|
long delay = System.nanoTime() - sentTime
|
||||||
histogram.recordValue(delay)
|
histogram.recordValue(delay)
|
||||||
|
print '+'
|
||||||
numReceived++
|
numReceived++
|
||||||
// if ((numReceived % 10000) == 0) {
|
// if ((numReceived % 10000) == 0) {
|
||||||
// print '.'
|
// print '.'
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
@Grab(group='org.fusesource.mqtt-client', module='mqtt-client', version='1.10')
|
@Grab(group='org.fusesource.mqtt-client', module='mqtt-client', version='1.14')
|
||||||
@Grab(group='org.eclipse.jetty.toolchain', module='jetty-perf-helper', version='1.0.5')
|
@Grab(group='org.eclipse.jetty.toolchain', module='jetty-perf-helper', version='1.0.5')
|
||||||
|
|
||||||
import java.net.URISyntaxException
|
import java.net.URISyntaxException
|
||||||
Reference in New Issue
Block a user