CoreyKaylor / Lightning.NET

.NET library for LMDB key-value store
Other
398 stars 82 forks source link

Benchmark tests with BenchmarkDotNet #114

Closed CoreyKaylor closed 4 years ago

CoreyKaylor commented 4 years ago

It would be great to setup some benchmarks and merge them also into the pre-Span as a branch that can be used for comparison.

AlgorithmsAreCool commented 4 years ago

I'm also working on this, it only makes sense since the span stuff is all performance oriented.

It is a bit fiddly however because of the native dependency, I'm working through it

CoreyKaylor commented 4 years ago

Yeah, it should "just work" from the dotnet cli, but I've found I have to sometimes control the process architecture by using --runtime win-x64. That said, I noticed there's likely a bug in the targets file that copies over the native dependency for x86. I'll try and figure that one out, but in the meantime I would only really worry about x86.

AlgorithmsAreCool commented 4 years ago

So the build works fine and the tests all execute a-ok, but BDN does the funky isolation where it builds the projects indirectly during test execution. I think that is messing with something. I'm still troubleshooting it.

AlgorithmsAreCool commented 4 years ago

Got it working 👍.