OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [go.test/] [test/] [bench/] [go1/] [_testmain.go] - Rev 700

Compare with Previous | Blame | View Log

package main

import target "go1"
import "testing"
import "regexp"

var tests = []testing.InternalTest{
}

var benchmarks = []testing.InternalBenchmark{
        {"go1.BenchmarkBinaryTree17", target.BenchmarkBinaryTree17},
        {"go1.BenchmarkFannkuch11", target.BenchmarkFannkuch11},
        {"go1.BenchmarkGobDecode", target.BenchmarkGobDecode},
        {"go1.BenchmarkGobEncode", target.BenchmarkGobEncode},
        {"go1.BenchmarkGzip", target.BenchmarkGzip},
        {"go1.BenchmarkGunzip", target.BenchmarkGunzip},
        {"go1.BenchmarkJSONEncode", target.BenchmarkJSONEncode},
        {"go1.BenchmarkJSONDecode", target.BenchmarkJSONDecode},
        {"go1.BenchmarkRevcomp25M", target.BenchmarkRevcomp25M},
        {"go1.BenchmarkTemplate", target.BenchmarkTemplate},
}
var examples = []testing.InternalExample{}

var matchPat string
var matchRe *regexp.Regexp

func matchString(pat, str string) (result bool, err error) {
        if matchRe == nil || matchPat != pat {
                matchPat = pat
                matchRe, err = regexp.Compile(matchPat)
                if err != nil {
                        return
                }
        }
        return matchRe.MatchString(str), nil
}

func main() {
        testing.Main(matchString, tests, benchmarks, examples)
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.