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

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

func Noargs

func Noargs()

func Onearg

func Onearg(_ int)

func Oneret

func Oneret() int

func Ref

func Ref(_ I)

func RunBenchmarks

func RunBenchmarks(b Benchmarks)

func Slice

func Slice(_ []byte)

func String

func String(_ string)

func StringRetLong

func StringRetLong() string

func StringRetShort

func StringRetShort() string

type AnI

type AnI struct {
}

func (*AnI) F

func (_ *AnI) F()

type Benchmarks

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

type I interface {
    F()
}

func NewI

func NewI() I

Package benchmark imports 2 packages (graph). Updated 6 days ago. Refresh now. Tools for package owners.