Skip to content

诡异测试结果 #1

Description

@meilihao

env:
go version go1.12.6 linux/amd64
Deepin 15.10.1 stable

测试结果:

go test -bench=.
goos: linux
goarch: amd64
BenchmarkData1-12    	      20	  76166086 ns/op
BenchmarkData2-12    	      20	  77010039 ns/op
BenchmarkData3-12    	      20	  79587563 ns/op
BenchmarkData4-12    	      50	  28517250 ns/op
BenchmarkData5-12    	      50	  28341882 ns/op
BenchmarkData6-12    	      50	  28700541 ns/op
BenchmarkData7-12    	      50	  28988112 ns/op
PASS
ok  	_/home/chen/Desktop/PerformanceExample-master	10.898s

前三个的测试结果刚好和预想的相反.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions