format source with scalafmt
This commit is contained in:
parent
0f40491d42
commit
ce404e4f53
1669 changed files with 43208 additions and 35404 deletions
|
|
@ -27,10 +27,8 @@ import org.agrona.concurrent.ManyToOneConcurrentArrayQueue
|
|||
@Measurement(iterations = 10)
|
||||
class SendQueueBenchmark {
|
||||
|
||||
val config = ConfigFactory.parseString(
|
||||
"""
|
||||
"""
|
||||
)
|
||||
val config = ConfigFactory.parseString("""
|
||||
""")
|
||||
|
||||
implicit val system = ActorSystem("SendQueueBenchmark", config)
|
||||
|
||||
|
|
@ -57,8 +55,10 @@ class SendQueueBenchmark {
|
|||
|
||||
val source = Source.queue[Int](1024, OverflowStrategy.dropBuffer)
|
||||
|
||||
val (queue, killSwitch) = source.viaMat(KillSwitches.single)(Keep.both)
|
||||
.toMat(new BarrierSink(N, latch, burstSize, barrier))(Keep.left).run()(materializer)
|
||||
val (queue, killSwitch) = source
|
||||
.viaMat(KillSwitches.single)(Keep.both)
|
||||
.toMat(new BarrierSink(N, latch, burstSize, barrier))(Keep.left)
|
||||
.run()(materializer)
|
||||
|
||||
var n = 1
|
||||
while (n <= N) {
|
||||
|
|
@ -84,8 +84,10 @@ class SendQueueBenchmark {
|
|||
|
||||
val source = Source.actorRef(1024, OverflowStrategy.dropBuffer)
|
||||
|
||||
val (ref, killSwitch) = source.viaMat(KillSwitches.single)(Keep.both)
|
||||
.toMat(new BarrierSink(N, latch, burstSize, barrier))(Keep.left).run()(materializer)
|
||||
val (ref, killSwitch) = source
|
||||
.viaMat(KillSwitches.single)(Keep.both)
|
||||
.toMat(new BarrierSink(N, latch, burstSize, barrier))(Keep.left)
|
||||
.run()(materializer)
|
||||
|
||||
var n = 1
|
||||
while (n <= N) {
|
||||
|
|
@ -112,8 +114,10 @@ class SendQueueBenchmark {
|
|||
val queue = new ManyToOneConcurrentArrayQueue[Int](1024)
|
||||
val source = Source.fromGraph(new SendQueue[Int](_ => ()))
|
||||
|
||||
val (sendQueue, killSwitch) = source.viaMat(KillSwitches.single)(Keep.both)
|
||||
.toMat(new BarrierSink(N, latch, burstSize, barrier))(Keep.left).run()(materializer)
|
||||
val (sendQueue, killSwitch) = source
|
||||
.viaMat(KillSwitches.single)(Keep.both)
|
||||
.toMat(new BarrierSink(N, latch, burstSize, barrier))(Keep.left)
|
||||
.run()(materializer)
|
||||
sendQueue.inject(queue)
|
||||
|
||||
var n = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue