Aprenda Go 🇧🇷 Cap. 27 – Testes & Benchmarks – 5. Benchmarks
Cap. 27 – Testes & Benchmarks – 5. Benchmarks Transcript and Lesson Notes
- Benchmarks nos permitem testar a velocidade ou performance do nosso código. - Na prática: - Arquivo: _test.go - BET: Testes, Exemplos e... - func BenchmarkFunc (b *testing.B) { ... b.N ... } - go test -bench . ← todos
Quick Summary
- Benchmarks nos permitem testar a velocidade ou performance do nosso código. - Na prática: - Arquivo: _test.go - BET: Testes, Exemplos e... - func BenchmarkFunc (b *testing.B) { ... b.N ... } - go test -bench . ← todos
Key Takeaways
- Review the core idea: - Benchmarks nos permitem testar a velocidade ou performance do nosso código. - Na prática: - Arquivo: _test.go - BET: Testes, Exemplos e... - func BenchmarkFunc (b *testing.B) { ... b.N ... } - go test -bench . ← todos
- Understand how programar fits into Cap. 27 – Testes & Benchmarks – 5. Benchmarks.
- Understand how programação fits into Cap. 27 – Testes & Benchmarks – 5. Benchmarks.
- Understand how golang fits into Cap. 27 – Testes & Benchmarks – 5. Benchmarks.
- Understand how go fits into Cap. 27 – Testes & Benchmarks – 5. Benchmarks.
Key Concepts
Full Transcript
- Benchmarks nos permitem testar a velocidade ou performance do nosso código. - Na prática: - Arquivo: _test.go - BET: Testes, Exemplos e... - func BenchmarkFunc (b *testing.B) { ... b.N ... } - go test -bench . ← todos - go test -bench Func ← somente Func - go help testflag - Código: https://github.com/ellenkorbes/aprendago/tree/master/c%C3%B3digo/27_testes-e-benchmarking/benchtest
Lesson FAQs
What is Cap. 27 – Testes & Benchmarks – 5. Benchmarks about?
- Benchmarks nos permitem testar a velocidade ou performance do nosso código. - Na prática: - Arquivo: _test.go - BET: Testes, Exemplos e... - func BenchmarkFunc (b *testing.B) { ... b.N ... } - go test -bench . ← todos
What key concepts are covered in this lesson?
The lesson covers programar, programação, golang, go, programacao.
What should I learn before Cap. 27 – Testes & Benchmarks – 5. Benchmarks?
Review the previous lessons in Aprenda Go 🇧🇷, then use the transcript and key concepts on this page to fill any gaps.
How can I practice after this lesson?
Practice by applying the main concepts: programar, programação, golang, go.
Does this lesson include a transcript?
Yes. The full transcript is visible on this page in indexable HTML sections.
Is this lesson free?
Yes. CourseHive lessons and courses are available to learn online for free.
