created.

On 6 May 2014 at 20:42:57, Roland Kuhn (notifications@github.com) wrote:

In akka-actor-tests/src/test/scala/akka/actor/ActorCreationPerfSpec.scala:

> +  def metricsConfig = system.settings.config
> +  val ActorCreationKey = MetricKey.fromString("actor-creation")
> +  val BlockingTimeKey = ActorCreationKey / "synchronous-part"
> +  val TotalTimeKey = ActorCreationKey / "total"
> +
> +  val warmUp: Int = Integer.getInteger("akka.test.actor.ActorPerfSpec.warmUp", 50000)
> +  val nrOfActors: Int = Integer.getInteger("akka.test.actor.ActorPerfSpec.numberOfActors", 100000)
> +  val nrOfRepeats: Int = Integer.getInteger("akka.test.actor.ActorPerfSpec.numberOfRepeats", 3)
> +
> +  def runWithCounterInside(metricName: String, scenarioName: String, number: Int, propsCreator: () ⇒ Props) {
> +    val driver = system.actorOf(Props(classOf[TimingDriver], this, BlockingTimeKey / metricName), scenarioName)
> +    driver ! IsAlive
> +    expectMsg(Alive)
> +
> +    driver ! Create(number, propsCreator)
> +    expectMsgPF(15 seconds, s"$scenarioName waiting for Created") { case Created ⇒ }
yes, I think so

—
Reply to this email directly or view it on GitHub.

Cheers,
Konrad 'ktoso' Malawski
hAkker - Typesafe, Inc