labs19

package
v0.0.0-...-6c2044b Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

测试缓存反射信息对效率的影响。

dada-imac:src dada$ go test labs19 --bench=".*" -v
=== RUN Test_Verify
--- PASS: Test_Verify (0.00 seconds)
=== RUN Test_FastVerify
--- PASS: Test_FastVerify (0.00 seconds)
=== RUN Test_VeryFastVerify
--- PASS: Test_VeryFastVerify (0.00 seconds)
PASS
Benchmark_________Verify	 1000000	      1399 ns/op
Benchmark_____FastVerify	10000000	       178 ns/op
Benchmark_VeryFastVerify	20000000	        93.9 ns/op
ok  	labs19	5.364s

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FastVerify

func FastVerify(data interface{}) error

func Verify

func Verify(data interface{}) error

func VeryFastVerify

func VeryFastVerify(data interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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