mobile: golang.org/x/mobile/bind/benchmark Index | Files

package benchmark

import "golang.org/x/mobile/bind/benchmark"

Package benchmark contains benchmarking bound functions for internal use.

Index

Package Files

benchmark.go

Constants

const (
    ShortString        = "Hello, World!"
    LongString         = "" /* 1612 byte string literal not displayed */
    ShortStringUnicode = "Hello, 世界!"
    LongStringUnicode  = "" /* 1732 byte string literal not displayed */
)

Variables

var (
    ShortSlice = make([]byte, 10)
    LongSlice  = make([]byte, 100000)
)

func Manyargs Uses

func Manyargs(_, _, _, _, _, _, _, _, _, _ int)

func Noargs Uses

func Noargs()

func Onearg Uses

func Onearg(_ int)

func Oneret Uses

func Oneret() int

func Ref Uses

func Ref(_ I)

func RunBenchmarks Uses

func RunBenchmarks(b Benchmarks)

func Slice Uses

func Slice(_ []byte)

func String Uses

func String(_ string)

func StringRetLong Uses

func StringRetLong() string

func StringRetShort Uses

func StringRetShort() string

type AnI Uses

type AnI struct {
}

func (*AnI) F Uses

func (_ *AnI) F()

type Benchmarks Uses

type Benchmarks interface {

    // Run runs a named benchmark from a different thread, with
    // no native call prior in the stack.
    Run(name string, n int)
    // RunDirect runs a named benchmark directly, with the native
    // context from the call itself.
    RunDirect(name string, n int)

    // Callbacks for Go benchmarks
    NewI() I
    Noargs()
    Onearg(_ int)
    Oneret() int
    Ref(_ I)
    Manyargs(_, _, _, _, _, _, _, _, _, _ int)
    String(_ string)
    StringRetShort() string
    StringRetLong() string
    Slice(_ []byte)
}

type I Uses

type I interface {
    F()
}

func NewI Uses

func NewI() I

Package benchmark imports 2 packages (graph). Updated 2017-10-20. Refresh now. Tools for package owners.