diff --git a/frameworks/Scala/colossus/README.md b/frameworks/Scala/colossus/README.md deleted file mode 100644 index 3938b6bedd6..00000000000 --- a/frameworks/Scala/colossus/README.md +++ /dev/null @@ -1,30 +0,0 @@ -#colossus Benchmarking Test - -### JSON Encoding Test - -* [JSON test source](src/main/scala/example/Main.scala) - -### Plaintext Test - -* [JSON test source](src/main/scala/example/Main.scala) - -## Infrastructure Software Versions -The tests were run with: - -* [Java Oracle 1.8.0_25](http://www.oracle.com/technetwork/java/javase) -* [colossus 0.6.1](http://tumblr.github.io/colossus/) - -## Test URLs -### JSON Encoding Test - -http://localhost:9007/json - -### Plaintext Test - -http://localhost:9007/plaintext - -## How to run -sbt 'oneJar' - -java -jar target/scala-2.11/colossus*one-jar.jar - diff --git a/frameworks/Scala/colossus/benchmark_config.json b/frameworks/Scala/colossus/benchmark_config.json deleted file mode 100644 index 3d31adfe363..00000000000 --- a/frameworks/Scala/colossus/benchmark_config.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "framework": "colossus", - "tests": [{ - "default": { - "orm": "Raw", - "database_os": "Linux", - "json_url": "/json", - "plaintext_url": "/plaintext", - "port": 9007, - "approach": "Realistic", - "classification": "Micro", - "database": "None", - "framework": "colossus", - "language": "Scala", - "platform": "Akka", - "webserver": "None", - "os": "Linux", - "display_name": "colossus", - "notes": "" - } - }] -} diff --git a/frameworks/Scala/colossus/build.sbt b/frameworks/Scala/colossus/build.sbt deleted file mode 100644 index 7c435c9b623..00000000000 --- a/frameworks/Scala/colossus/build.sbt +++ /dev/null @@ -1,10 +0,0 @@ -name := """colossus-example""" - -version := "1.0" - -scalaVersion := "2.12.5" - -libraryDependencies ++= Seq( - "com.tumblr" %% "colossus" % "0.11.0", - "com.github.plokhotnyuk.jsoniter-scala" %% "macros" % "0.21.6" -) diff --git a/frameworks/Scala/colossus/colossus.dockerfile b/frameworks/Scala/colossus/colossus.dockerfile deleted file mode 100644 index a8b2a0402b8..00000000000 --- a/frameworks/Scala/colossus/colossus.dockerfile +++ /dev/null @@ -1,10 +0,0 @@ -FROM hseeberger/scala-sbt:8u151-2.12.5-1.1.2 -WORKDIR /colossus -COPY project project -COPY src src -COPY build.sbt build.sbt -RUN sbt assembly -batch - -EXPOSE 9007 - -CMD ["java", "-server", "-Xms1g", "-Xmx1g", "-XX:NewSize=512m", "-XX:MaxNewSize=512m", "-XX:+UseParallelGC", "-XX:+AggressiveOpts", "-XX:+UseNUMA", "-XX:-UseBiasedLocking", "-XX:+AlwaysPreTouch", "-XX:+UseCondCardMark", "-jar", "target/scala-2.12/colossus-example-assembly-1.0.jar"] diff --git a/frameworks/Scala/colossus/config.toml b/frameworks/Scala/colossus/config.toml deleted file mode 100644 index b992b310825..00000000000 --- a/frameworks/Scala/colossus/config.toml +++ /dev/null @@ -1,15 +0,0 @@ -[framework] -name = "colossus" - -[main] -urls.plaintext = "/plaintext" -urls.json = "/json" -approach = "Realistic" -classification = "Micro" -database = "None" -database_os = "Linux" -os = "Linux" -orm = "Raw" -platform = "Akka" -webserver = "None" -versus = "None" diff --git a/frameworks/Scala/colossus/project/build.properties b/frameworks/Scala/colossus/project/build.properties deleted file mode 100644 index 05313438a19..00000000000 --- a/frameworks/Scala/colossus/project/build.properties +++ /dev/null @@ -1 +0,0 @@ -sbt.version=1.1.2 diff --git a/frameworks/Scala/colossus/project/plugins.sbt b/frameworks/Scala/colossus/project/plugins.sbt deleted file mode 100644 index 652a3b93be3..00000000000 --- a/frameworks/Scala/colossus/project/plugins.sbt +++ /dev/null @@ -1 +0,0 @@ -addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6") diff --git a/frameworks/Scala/colossus/src/main/scala/example/Main.scala b/frameworks/Scala/colossus/src/main/scala/example/Main.scala deleted file mode 100644 index b0ef60b026b..00000000000 --- a/frameworks/Scala/colossus/src/main/scala/example/Main.scala +++ /dev/null @@ -1,49 +0,0 @@ -package example - -import akka.actor.ActorSystem -import colossus.core._ -import colossus.protocols.http._ -import colossus.service._ -import colossus.service.Callback.Implicits._ -import colossus.service.GenRequestHandler.PartialHandler -import colossus.util.DataSize -import com.github.plokhotnyuk.jsoniter_scala.core._ -import com.github.plokhotnyuk.jsoniter_scala.macros._ - -import scala.concurrent.duration.Duration - -case class Message(message: String) - -object Main extends App { - - val serverConfig = ServerSettings( - port = 9007, - maxConnections = 16384, - tcpBacklogSize = Some(1024)) - - val serviceConfig = ServiceConfig( - logErrors = false, - requestMetrics = false, - requestTimeout = Duration("1s"), - requestBufferSize = 65536, - maxRequestSize = DataSize(1024 * 1024)) - - implicit val actorSystem: ActorSystem = ActorSystem() - implicit val ioSystem: IOSystem = IOSystem() - - implicit val codec: JsonValueCodec[Message] = JsonCodecMaker.make[Message](CodecMakerConfig()) - - implicit val messageEncoder: HttpBodyEncoder[Message] = new HttpBodyEncoder[Message] { - override def encode(data: Message): HttpBody = new HttpBody(writeToArray(data)) - override def contentType: String = "application/json" - } - - HttpServer.start("Colossus", serverConfig)(initContext => new Initializer(initContext) { - override def onConnect: RequestHandlerFactory = serverContext => new RequestHandler(serverContext, serviceConfig) { - override def handle: PartialHandler[Http] = { - case req if req.head.url == "/plaintext" => req.ok("Hello, World!") - case req if req.head.url == "/json" => req.ok(Message("Hello, World!")) - } - } - }) -}