GO : Does calling C leads to a faster code?


Just a quick reminder: BenchmarkResult, has the following fields:

N The number of times the function was run
T The time it took to run the function
Bytes The number of bytes processed by the function

You can use these fields to compare the performance of the two functions. For example, you can compare the T field to see which function took longer to run, or you can compare the Bytes field to see which function processed more data.