Exemplo n.º 1
0
    def isPerfTestCase(self, foraMemberMetadata):
        Symbol_perf = FORAValue.makeSymbol("perf")
        if foraMemberMetadata.outer == Symbol_perf:
            return True
        if isinstance(foraMemberMetadata.outer, tuple) or \
           isinstance(foraMemberMetadata.outer, FORATuple):
            if Symbol_perf in foraMemberMetadata.outer:
                return True

        return False
Exemplo n.º 2
0
    def isPerfTestCase(self, foraMemberMetadata):
        Symbol_perf = FORAValue.makeSymbol("perf")
        if foraMemberMetadata.outer == Symbol_perf:
            return True
        if isinstance(foraMemberMetadata.outer, tuple) or \
           isinstance(foraMemberMetadata.outer, FORATuple):
            if Symbol_perf in foraMemberMetadata.outer:
                return True

        return False            
Exemplo n.º 3
0
#   See the License for the specific language governing permissions and
#   limitations under the License.

import ufora.FORA.test.ValidatePerf as ValidatePerf
import ufora.core.SubprocessRunner as SubprocessRunner
import ufora.test.PerformanceTestReporter as PerformanceTestReporter
from ufora.FORA.python.ForaValue import FORATuple
from ufora.FORA.python.ForaValue import FORAValue

import time
import sys
import logging

_baseTiming = None

Symbol_callResult = FORAValue.makeSymbol("callResult")

def computeBaseTiming():
    times = []

    for ix in range(101):
        t0 = time.time()
        x = 0
        while x < 1000000:
            x=x+1
        times.append(time.time() - t0)

    import logging
    logging.info("base timing: " + str(min(times)))
    return min(times)
Exemplo n.º 4
0
#   See the License for the specific language governing permissions and
#   limitations under the License.

import ufora.FORA.test.ValidatePerf as ValidatePerf
import ufora.core.SubprocessRunner as SubprocessRunner
import ufora.test.PerformanceTestReporter as PerformanceTestReporter
from ufora.FORA.python.ForaValue import FORATuple
from ufora.FORA.python.ForaValue import FORAValue

import time
import sys
import logging

_baseTiming = None

Symbol_callResult = FORAValue.makeSymbol("callResult")


def computeBaseTiming():
    times = []

    for ix in range(101):
        t0 = time.time()
        x = 0
        while x < 1000000:
            x = x + 1
        times.append(time.time() - t0)

    import logging
    logging.info("base timing: " + str(min(times)))
    return min(times)