Skip to content

Commit 8cce313

Browse files
committed
Fix naming in REST benchmarks
1 parent 541ef2d commit 8cce313

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

benchmarks/src/main/scala/io/udash/rest/RestApi.scala renamed to benchmarks/src/main/scala/io/udash/rest/RestApiBenchmark.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import java.util.concurrent.TimeUnit
1212
import scala.concurrent.Await
1313
import 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 = {

benchmarks/src/main/scala/io/udash/rest/StreamingRestApi.scala renamed to benchmarks/src/main/scala/io/udash/rest/StreamingRestApiBenchmark.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import java.util.concurrent.TimeUnit
1313
import scala.concurrent.Await
1414
import 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 = {

0 commit comments

Comments
 (0)