Skip to content

Commit

Permalink
Merge pull request gatling#1068 from nremond/faster_square
Browse files Browse the repository at this point in the history
Faster square operation
  • Loading branch information
nremond committed Apr 4, 2013
2 parents 34916aa + 9d5a977 commit e8a2f31
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -16,7 +16,7 @@
package io.gatling.core.scenario.injection

import scala.concurrent.duration.{ DurationLong, FiniteDuration }
import scala.math.{ abs, pow, sqrt }
import scala.math.{ abs, sqrt }

trait InjectionStep {
/**
Expand Down Expand Up @@ -84,7 +84,7 @@ case class RampRateInjection(r1: Double, r2: Double, duration: FiniteDuration) e
override def chain(iterator: Iterator[FiniteDuration]): Iterator[FiniteDuration] = {
val a = (r2 - r1) / (2 * duration.toSeconds)
val b = r1
val b2 = pow(r1, 2)
val b2 = r1 * r1

def userScheduling(u: Int) = {
val c = -u
Expand Down

0 comments on commit e8a2f31

Please sign in to comment.