-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
337 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
"average", | ||
"base64", | ||
"before", | ||
"Benchmark", | ||
"binarySearch", | ||
"bind", | ||
"Blob", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## CN | ||
|
||
JavaScript 基准测试。 | ||
|
||
### constructor | ||
|
||
|参数名|说明| | ||
|-----|---| | ||
|fn|要测试的代码| | ||
|options|测试选项| | ||
|
||
可用选项: | ||
|
||
|参数名|说明| | ||
|-----|---| | ||
|minTime=50|用于减少误差的时间| | ||
|maxTime=5000|测试运行最大时间| | ||
|minSamples=5|最小样本数量| | ||
|delay=5|测试周期间隔| | ||
|name|测试名称| | ||
|
||
### run | ||
|
||
运行基准测试,返回 promise。 | ||
|
||
### all | ||
|
||
[static] 运行多个基准测试。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.