File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
benchmarks/src/main/scala/io/udash/rest Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import java.util.concurrent.TimeUnit
1212import scala .concurrent .Await
1313import scala .concurrent .duration .Duration
1414
15- private object RestApi {
15+ private object RestApiBenchmark {
1616 trait RestTestApi {
1717 @ GET def exampleEndpoint (size : RestResponseSize ): Task [List [RestExampleData ]]
1818 @ GET def exampleBinaryEndpoint (size : RestResponseSize ): Task [List [Array [Byte ]]]
@@ -36,7 +36,7 @@ private object RestApi {
3636 }
3737 }
3838
39- private def creteApiProxy (): (RestTestApi .Impl , RestTestApi ) = {
39+ private def createApiProxy (): (RestTestApi .Impl , RestTestApi ) = {
4040 val apiImpl = new RestTestApi .Impl ()
4141 val handler = RawRest .asHandleRequest[RestTestApi ](apiImpl)
4242 (apiImpl, RawRest .fromHandleRequest[RestTestApi ](handler))
@@ -48,10 +48,10 @@ private object RestApi {
4848@ BenchmarkMode (Array (Mode .Throughput ))
4949@ State (Scope .Thread )
5050@ Fork (1 )
51- class RestApi {
51+ class RestApiBenchmark {
5252 implicit def scheduler : Scheduler = Scheduler .global
5353
54- private final val (impl, proxy) = RestApi .creteApiProxy ()
54+ private final val (impl, proxy) = RestApiBenchmark .createApiProxy ()
5555
5656 @ Setup (Level .Trial )
5757 def setup (): Unit = {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit
1313import scala .concurrent .Await
1414import scala .concurrent .duration .Duration
1515
16- private object StreamingRestApi {
16+ private object StreamingRestApiBenchmark {
1717 trait RestTestApi {
1818 @ GET def exampleEndpoint (size : RestResponseSize ): Observable [RestExampleData ]
1919 @ GET def exampleEndpointBinary (size : RestResponseSize ): Observable [Array [Byte ]]
@@ -88,9 +88,9 @@ private object StreamingRestApi {
8888@ BenchmarkMode (Array (Mode .Throughput ))
8989@ State (Scope .Thread )
9090@ Fork (1 )
91- class StreamingRestApi {
91+ class StreamingRestApiBenchmark {
9292 implicit def scheduler : Scheduler = Scheduler .global
93- private final val (impl, proxy) = StreamingRestApi .creteApiProxy()
93+ private final val (impl, proxy) = StreamingRestApiBenchmark .creteApiProxy()
9494
9595 @ Setup (Level .Trial )
9696 def setup (): Unit = {
You can’t perform that action at this time.
0 commit comments