This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.lettuce.core.RedisURI | |
import io.lettuce.core.cluster.{ ClusterClientOptions, ClusterTopologyRefreshOptions, RedisClusterClient } | |
import scala.util.Random | |
object MGet { | |
def main(args: Array[String]): Unit = { | |
val host = args(0) | |
val port = args(1).toInt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Map.Entry | |
import com.typesafe.config.{ Config, ConfigRenderOptions, ConfigValue, ConfigValueFactory } | |
import org.mindrot.jbcrypt.BCrypt | |
import scala.io.{ Codec, Source } | |
import scala.collection.JavaConverters._ | |
import scala.util.Try | |
import scala.util.matching.Regex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java: | |
http://java-performance.com/ | |
Linux: | |
perf (https://perf.wiki.kernel.org/index.php/Main_Page) | |
perf can be a bit finicky to set up though, One of the most interesting payoffs for the effort is getting cool flame graphs of cpu usage, like this example: | |
http://www.brendangregg.com/FlameGraphs/cpu-mixedmode-flamegraph-java.svg (from the blog post http://techblog.netflix.com/2015/07/java-in-flames.html) | |
Install perf: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.gatling.commons.stats.{KO, OK} | |
import io.gatling.commons.util.TimeHelper._ | |
import io.gatling.core.Predef._ | |
import io.gatling.core.action.{Action, ExitableAction} | |
import io.gatling.core.action.builder.ActionBuilder | |
import io.gatling.core.stats.StatsEngine | |
import io.gatling.core.stats.message.ResponseTimings | |
import io.gatling.core.structure.ScenarioContext | |
import io.gatling.core.util.NameGen |
OlderNewer