Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
thorian1828i03
19 days ago
|
parent
|
context
|
favorite
| on:
There's no reason for software to be slow anymore
Writing a benchmark test is about 100x to 1000x easier than writing optimizations. A benchmark test can be as simple as:
func Benchmark(b *testing.B) { for range b.N { runCodeUnderBenchmark() } }
Actually optimizing the runCodeUnderBenchmark() function is far more difficult.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: