Home golang Golang Benchmark. Explanation of the results

Golang Benchmark. Explanation of the results




Start the test:
Go Test -Bench =. -Benchmem Bench2_Test.Go


Goos: Windows
Goarch: AMD64.
BenchmarkWithoutPool-4 15850 76093 NS / OP 3200 B / OP 100 Allocs / Op
BenchmarkWithPool-4 49177 26457 NS / OP 0 B / OP 0 ALLOCS / OP

is incomprehensible, first of all, the first column. If this is a memory, then why in the second case it is more?
Does this mean that using sync.pool for simple slices such as row slices unprofitable?

Answer 1, Authority 100%

Speakers & NBSP; go & nbsp; such & nbsp; order:

  1. Name & nbsp; Plus test & nbsp; number of processors or & nbsp; nuclei;
  2. number & nbsp; iterations, for & nbsp; which produced & nbsp; measurements;
  3. secondary & nbsp; time & nbsp; iterations;
  4. mean & nbsp; total memory allocated on & nbsp; iteration;
  5. Middle & NBSP; number of separate memory allocations on & nbsp; iteration.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions