You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2020/09/16 09:03:41 UTC

[GitHub] [lucenenet] jeme edited a comment on issue #297: Investigate Performance of Math Functions in .NET Standard 2.1+

jeme edited a comment on issue #297:
URL: https://github.com/apache/lucenenet/issues/297#issuecomment-693274279


   I threw a very quick-n-dirty benchmark together just to get an early idea.
   
   ```
   // * Summary *
   
   BenchmarkDotNet=v0.12.1, OS=Windows 10.0.18363.1016 (1909/November2018Update/19H2)
   Intel Core i7-6700 CPU 3.40GHz (Skylake), 1 CPU, 8 logical and 4 physical cores
   .NET Core SDK=5.0.100-preview.7.20366.15
     [Host]     : .NET Core 3.1.6 (CoreCLR 4.700.20.26901, CoreFX 4.700.20.31603), X64 RyuJIT
     DefaultJob : .NET Core 3.1.6 (CoreCLR 4.700.20.26901, CoreFX 4.700.20.31603), X64 RyuJIT
   
   
   |         Method |     Mean |    Error |   StdDev |
   |--------------- |---------:|---------:|---------:|
   | MathUtil_Acosh | 115.0 us |  2.26 us |  3.58 us |
   |     Math_Acosh | 243.6 us |  4.74 us |  6.94 us |
   | MathUtil_Asinh | 111.5 us |  1.55 us |  1.45 us |
   |     Math_Asinh | 306.2 us |  3.28 us |  2.91 us |
   |   MathUtil_Log | 139.7 us |  2.79 us |  4.42 us |
   |       Math_Log | 180.5 us |  2.39 us |  1.99 us |
   | MathUtil_Atanh | 649.9 us | 10.32 us |  8.06 us |
   |     Math_Atanh | 519.9 us | 10.33 us | 11.48 us |
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org