Start the test:
Go Test -Bench =. -Benchmem Bench2_Test.Go
Conclusion:
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
Pass
OK COMMAND-LINE-ARGUMENTS 387.358S
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:
- Name & nbsp; Plus test & nbsp; number of processors or & nbsp; nuclei;
- number & nbsp; iterations, for & nbsp; which produced & nbsp; measurements;
- secondary & nbsp; time & nbsp; iterations;
- mean & nbsp; total memory allocated on & nbsp; iteration;
- Middle & NBSP; number of separate memory allocations on & nbsp; iteration.