doc: 增加基准测试结果
This commit is contained in:
parent
85144e1c40
commit
2c9ba9c56c
|
|
@ -45,18 +45,14 @@ provider.GetRequiredKeyedService<ISearcher>("IP2Region.Net");
|
||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
|
|
||||||
``` ini
|
| Method | Mean | Error | StdDev | Median |
|
||||||
BenchmarkDotNet=v0.13.2, OS=macOS 13.4.1 (c) (22F770820d) [Darwin 22.5.0]
|
|------------ |------------:|----------:|------------:|------------:|
|
||||||
Apple M1, 1 CPU, 8 logical and 8 physical cores
|
| ContentIPv4 | 101.5 ns | 2.04 ns | 4.57 ns | 103.1 ns |
|
||||||
.NET SDK=7.0.306
|
| VectorIPv4 | 7,488.1 ns | 222.91 ns | 657.26 ns | 7,819.2 ns |
|
||||||
[Host] : .NET 6.0.20 (6.0.2023.32017), Arm64 RyuJIT AdvSIMD
|
| FileIPv4 | 11,686.9 ns | 59.81 ns | 55.95 ns | 11,707.6 ns |
|
||||||
DefaultJob : .NET 6.0.20 (6.0.2023.32017), Arm64 RyuJIT AdvSIMD
|
| ContentIPv6 | 296.1 ns | 1.84 ns | 1.72 ns | 296.2 ns |
|
||||||
```
|
| VectorIPv6 | 15,025.1 ns | 938.17 ns | 2,766.21 ns | 16,642.9 ns |
|
||||||
| Method | Mean | Error | StdDev |
|
| FileIPv6 | 19,721.0 ns | 807.55 ns | 2,381.08 ns | 20,905.7 ns |
|
||||||
|------------------------ |-------------:|----------:|----------:|
|
|
||||||
| CachePolicy_Content | 58.32 ns | 0.182 ns | 0.170 ns |
|
|
||||||
| CachePolicy_File | 16,417.56 ns | 50.569 ns | 47.302 ns |
|
|
||||||
| CachePolicy_VectorIndex | 9,348.11 ns | 38.492 ns | 65.363 ns |
|
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
|
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
|
||||||
|
|
@ -64,4 +60,4 @@ Pull requests are welcome. For major changes, please open an issue first to disc
|
||||||
Please make sure to update tests as appropriate.
|
Please make sure to update tests as appropriate.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
[Apache License 2.0](https://github.com/lionsoul2014/ip2region/blob/master/LICENSE.md)
|
[Apache License 2.0](https://github.com/lionsoul2014/ip2region/blob/master/LICENSE.md)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue