lab003

package
v0.0.0-...-f10d331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 0 Imported by: 0

README

test和Benchmark放一起

运行结果

暂时还不知道为什么,我要是写两个TestXxx在xxx_test.go文件里面,那么go test -bench=.的时候也不用运行压力测试 所以函数的命名要注意下。

Imgur

参考资料

http://studygolang.com/articles/5494

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(x, y int) (z int)

Types

type ForTest

type ForTest struct {
	// contains filtered or unexported fields
}

func (*ForTest) Loops

func (this *ForTest) Loops()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL