We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e1474a commit a7ea8d0Copy full SHA for a7ea8d0
test/bench/custom/benchmarks.mjs
@@ -5,10 +5,12 @@ const ObjectId_isValid = [
5
function objectid_isvalid_strlen() {
6
BSON.ObjectId.isValid('a');
7
},
8
- function objectid_isvalid_bestcase_false() {
+ /** wrong character at the start */
9
+ function objectid_isvalid_most_short_circuit_false() {
10
BSON.ObjectId.isValid('g6e84ebdc96f4c0772f0cbbf');
11
- function objectid_isvalid_worstcase_false() {
12
+ /** wrong character at the end */
13
+ function objectid_isvalid_least_short_circuit_false() {
14
BSON.ObjectId.isValid('66e84ebdc96f4c0772f0cbbg');
15
16
function objectid_isvalid_true() {
0 commit comments