Skip to content

Instantly share code, notes, and snippets.

Avatar

Johannes Rudolph jrudolph

View GitHub Profile
@jrudolph
jrudolph / SuperInspectTree.scala
Last active Oct 1, 2019
Better sbt `inspect tree`
View SuperInspectTree.scala
/* sbt -- Simple Build Tool
* Copyright 2011 Mark Harrah, Eugene Yokota
*/
package sbt
package myinspect
import java.io.File
import Def.{ScopedKey, compiled, flattenLocals}
@jrudolph
jrudolph / AffinityVsFJP.log
Created Jul 20, 2017
Benchmark new Affinity Vs FJP dispatcher
View AffinityVsFJP.log
Intel(R) Core(TM) i7-3840QM CPU @ 2.80GHz
Turbo off
Linux 64bit
jmh:run -i 4 -wi 4 -f 1 -p throughPut=1 -p dispatcher=affinity-dispatcher,default-fj-dispatcher .*AffinityPoolReq.*
[info] Benchmark (dispatcher) (mailbox) (throughPut) Mode Cnt Score Error Units
[info] AffinityPoolRequestResponseBenchmark.queryUserServiceActor affinity-dispatcher SingleConsumerOnlyUnboundedMailbox 1 thrpt 4 3634030.863 ± 3728431.081 ops/s
[info] AffinityPoolRequestResponseBenchmark.queryUserServiceActor default-fj-dispatcher SingleConsumerOnlyUnboundedMailbox 1 thrpt 4 4031047.752 ± 1552394.546 ops/s
View TestCase1219.scala
package akka.http
import akka.actor.ActorSystem
import akka.http.impl.util.ExampleHttpContexts
import akka.http.scaladsl.model.{HttpRequest, HttpResponse}
import akka.http.scaladsl.{Http, HttpsConnectionContext}
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.Flow
import com.typesafe.config.ConfigFactory
View TestCase1023.scala
import java.util.concurrent.atomic.AtomicLong
import akka.actor.ActorSystem
import akka.http.scaladsl.Http
import akka.http.scaladsl.model._
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.{ Sink, Source }
import com.typesafe.config.ConfigFactory
import scala.concurrent.Future
@jrudolph
jrudolph / TestRemoteSSLSettings.scala
Last active May 30, 2017
Akka Remote Netty SSL Settings tester
View TestRemoteSSLSettings.scala
package akka.remote // needs to be in this package because to access `private[akka]` code
import java.net.InetSocketAddress
import javax.net.ssl.SSLContext
import akka.event.NoMarkerLogging
import akka.remote.transport.netty.SSLSettings
import com.typesafe.config.ConfigFactory
object TestRemoteSSLSettings extends App {
@jrudolph
jrudolph / analysis.txt
Last active May 21, 2019
Release Train for 2.12.0 final (generated by https://github.com/jrudolph/scala-release-train) Raw
View analysis.txt
TargetVersion: Scala 2.12 LastVersion: Scala 2.11
70 libraries available for Scala 2.12 (see the end for sbt config lines)
akka-actor 36 versions: 2.6.0-M1, 2.5.9, 2.5.8, 2.5.7, 2.5.6, ... [31 more]
akka-stream 36 versions: 2.6.0-M1, 2.5.9, 2.5.8, 2.5.7, 2.5.6, ... [31 more]
akka-http-core 29 versions: 10.1.8, 10.1.7, 10.1.6, 10.1.5, 10.1.4, ... [24 more]
akka-http 28 versions: 10.1.8, 10.1.7, 10.1.6, 10.1.5, 10.1.4, ... [23 more]
akka-osgi 36 versions: 2.6.0-M1, 2.5.9, 2.5.8, 2.5.7, 2.5.6, ... [31 more]
akka-slf4j 36 versions: 2.6.0-M1, 2.5.9, 2.5.8, 2.5.7, 2.5.6, ... [31 more]
akka-testkit 36 versions: 2.6.0-M1, 2.5.9, 2.5.8, 2.5.7, 2.5.6, ... [31 more]
@jrudolph
jrudolph / analysis.txt
Last active Nov 2, 2016
Release Train for 2.12.0-RC2 (generated by https://github.com/jrudolph/scala-release-train)
View analysis.txt
TargetVersion: Scala 2.12.0-RC2 LastVersion: Scala 2.11
39 libraries available for Scala 2.12.0-RC2 (see the end for sbt config lines)
akka-actor 2 versions: 2.4.12, 2.4.11
akka-stream 2 versions: 2.4.12, 2.4.11
akka-http 1 versions: 2.4.11
akka-osgi 2 versions: 2.4.12, 2.4.11
akka-slf4j 2 versions: 2.4.12, 2.4.11
akka-testkit 2 versions: 2.4.12, 2.4.11
scala-xml 1 versions: 1.0.5
@jrudolph
jrudolph / analysis.txt
Last active Nov 2, 2016
Release Train for 2.12.0-RC1 (generated by https://github.com/jrudolph/scala-release-train)
View analysis.txt
TargetVersion: Scala 2.12.0-RC1 LastVersion: Scala 2.11
34 libraries available for Scala 2.12.0-RC1 (see the end for sbt config lines)
akka-actor 2 versions: 2.4.11, 2.4.10
akka-stream 2 versions: 2.4.11, 2.4.10
akka-http 2 versions: 2.4.11, 2.4.10
akka-osgi 2 versions: 2.4.11, 2.4.10
akka-slf4j 2 versions: 2.4.11, 2.4.10
akka-testkit 2 versions: 2.4.11, 2.4.10
scala-xml 2 versions: 1.0.6, 1.0.5
@jrudolph
jrudolph / CleanupUnusedImports.scala
Created Feb 23, 2016
Skeleton for a cleanup unused imports plugin
View CleanupUnusedImports.scala
import sbt._
import Keys._
package sbt {
object Access {
def compilerReporter = sbt.Keys.compilerReporter
}
}
package autoimport {
@jrudolph
jrudolph / analysis.txt
Last active Nov 2, 2016
Release Train for 2.12.0-M5
View analysis.txt
TargetVersion: Scala 2.12.0-M5 LastVersion: Scala 2.11
26 libraries available for Scala 2.12.0-M5 (see the end for sbt config lines)
akka-actor 1 versions: 2.4.8
akka-stream 1 versions: 2.4.8
akka-http 1 versions: 2.4.8
akka-osgi 1 versions: 2.4.8
akka-slf4j 1 versions: 2.4.8
akka-testkit 1 versions: 2.4.8
slick 1 versions: 3.2.0-M1
You can’t perform that action at this time.