Skip to content

Commit 81704e2

Browse files
committed
update test.mdx for english
1 parent 3d0fc6f commit 81704e2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

docs/python/test.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@ displayed_sidebar: api
88
:::caution Verification Stage
99

1010
The performance testing API is currently unstable. We need to collect more feedback.
11-
1211
This particular API underwent breaking changes in version 0.3.1b1.
1312

1413
:::
1514

16-
torchpipe.utils.test integrated the multi-client/multi-threaded performance testing and concurrent inference tool.
17-
In general, we recommend using the more powerful [Locust](https://locust.io/) for performance testing. However, if you only require a simple script to conveniently test local and remote function calls, generate test reports, or perform concurrent function invocations and result processing, this tool can be used.
15+
torchpipe.utils.test is a performance testing and concurrent inference tool which integrated multi-client/multi-threaded.
16+
In general, we recommend using the more powerful tool called [Locust](https://locust.io/) for performance testing. However, if you only require a simple script to conveniently test local and remote function calls, generate test reports, or perform concurrent function invocations and result processing, this tool can be used.
1817

1918

2019
| *locust* | *torchpipe.utils.test* |
@@ -45,7 +44,7 @@ def test_from_raw_file(forward_function:
4544
```
4645
> Read the files with a specific file extension from the given file path and pass them to the user's specified `forward_function`.
4746
48-
:::tip 参数
47+
:::tip Parameters
4948
- **forward_function** - Forward function, with a function parameter `List[Tuple[str, bytes]]`, representing *batchsize [(id, file data)]*. The testing program will repeatedly execute this function and record latency-related data. It can also be multiple functions of this type (`List[Callable]`), in which case the length should be equal to num_clients.
5049
- **file_dir** - File path
5150
- **num_clients** - Number of clients/Concurrent channels

0 commit comments

Comments
 (0)