NetTopologySuite / NetTopologySuite.IO.PostGis

PostGis IO module for NTS.
BSD 3-Clause "New" or "Revised" License
12 stars 8 forks source link

Add roundtrip benchmark #18

Closed bjornharrtell closed 3 years ago

bjornharrtell commented 3 years ago

Follow up to verify what kind of impact https://github.com/NetTopologySuite/NetTopologySuite.IO.PostGis/pull/17 had on performance. Uses BenchmarkDotNet.

On my machine I get this result from a sudo dotnet run -c Release run:

Method Mean Error StdDev
RoundtripDefault 2.492 us 0.0478 us 0.0570 us
RoundtripPackedCoordinateSequenceFactory 1.605 us 0.0237 us 0.0210 us

So, performance improvement looks pretty good. :)

FObermaier commented 3 years ago

I was about to ask for it 👍