optimize the php docs
This commit is contained in:
parent
3403b74e31
commit
3c8569152f
|
|
@ -111,11 +111,11 @@ ip2region>> 1.2.3.4
|
||||||
ip2region>>
|
ip2region>>
|
||||||
```
|
```
|
||||||
|
|
||||||
输入 ip 即可进行查询测试。也可以设置 cache-policy 来测试 vectorIndex 和完全基于内存的查询。
|
输入 ip 即可进行查询测试。也可以设置 `cache-policy` 来分别测试 file/vectorIndex/content 三种不同缓存类型的查询。
|
||||||
|
|
||||||
# bench 测试
|
# bench 测试
|
||||||
|
|
||||||
通过 `bench_test.php` 脚本来进行自动 bench 测试,一方面确保 xdb 文件没有错误,一方面通过大量的查询测试平均查询性能:
|
通过 `bench_test.php` 脚本来进行自动 bench 测试,一方面确保 `xdb` 文件没有错误,一方面通过大量的查询测试平均查询性能:
|
||||||
```bash
|
```bash
|
||||||
➜ php git:(v2.0_xdb) ✗ php ./bench_test.php
|
➜ php git:(v2.0_xdb) ✗ php ./bench_test.php
|
||||||
php ./bench_test.php [command options]
|
php ./bench_test.php [command options]
|
||||||
|
|
@ -131,5 +131,5 @@ options:
|
||||||
Bench finished, {cachePolicy: vectorIndex, total: 3417955, took: 15s, cost: 0.005 ms/op}
|
Bench finished, {cachePolicy: vectorIndex, total: 3417955, took: 15s, cost: 0.005 ms/op}
|
||||||
```
|
```
|
||||||
|
|
||||||
可以通过设置 `cache-policy` 参数来分别测试 file/vectorIndex/content 三种不同的缓存设置性能。
|
可以通过设置 `cache-policy` 参数来分别测试 file/vectorIndex/content 三种不同的缓存类型的性能。
|
||||||
@Note:请注意 bench 使用的 src 文件需要是生成对应的 xdb 文件的相同的源文件。
|
@Note:请注意 bench 使用的 src 文件需要是生成对应的 xdb 文件的相同的源文件。
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue