本文使用 Creative Commons Attribution-ShareAlike 4.0 International 协议进行授权许可。
sxs2473 / go-performane-tuning Goto Github PK
View Code? Open in Web Editor NEWChinese Translation of https://github.com/davecheney/gophercon2018-performance-tuning-workshop
Chinese Translation of https://github.com/davecheney/gophercon2018-performance-tuning-workshop
I can make things very fast if they don't have to be correct. -- Russ Cox
最后,不要为了可靠性而牺牲性能
Readable means reliable -- Rob Pike
性能和可靠性同样重要。
并没有出现偏离值。
172-1-1-188:1.基准测试 xuqianlong$ go test -bench=Fib20 -count=10 ./examples/fib/ | tee old.txt
goos: darwin
goarch: amd64
pkg: test/WorkSpace/Allen/00002基础/15test/go-performane-tuning/1.基准测试/examples/fib
BenchmarkFib20-8 30000 47164 ns/op
BenchmarkFib20-8 30000 47414 ns/op
BenchmarkFib20-8 30000 49779 ns/op
BenchmarkFib20-8 30000 47105 ns/op
BenchmarkFib20-8 30000 47386 ns/op
BenchmarkFib20-8 30000 47752 ns/op
BenchmarkFib20-8 30000 46331 ns/op
BenchmarkFib20-8 30000 46323 ns/op
BenchmarkFib20-8 30000 46483 ns/op
BenchmarkFib20-8 30000 47675 ns/op
PASS
ok test/WorkSpace/Allen/00002基础/15test/go-performane-tuning/1.基准测试/examples/fib 19.013s
func BenchmarkFibWrong(b *testing.B) {
Fib(b.N)
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.