GeezerVison is showing github.com — perf_hooks: add performanceNodeTiming.uvMetricsInfoBigInt · nodejs/node@620fc12
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: benchmark/perf_hooks/nodetiming-uvmetricsinfo.js +14-5Lines changed: 14 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -11,6 +11,7 @@ const { | 11 | 11 | const bench = common.createBenchmark(main, { | 12 | 12 | n: [1e6], | 13 | 13 | events: [1, 1000, 10000], | | 14 | + api: ['number', 'bigint'], | 14 | 15 | }); | 15 | 16 |
| 16 | 17 | async function runEvents(events) { | @@ -19,11 +20,19 @@ async function runEvents(events) { | 19 | 20 | } | 20 | 21 | } | 21 | 22 |
| 22 | | -async function main({ n, events }) { | | 23 | +async function main({ n, events, api }) { | 23 | 24 | await runEvents(events); | 24 | | - bench.start(); | 25 | | - for (let i = 0; i < n; i++) { | 26 | | - assert.ok(performance.nodeTiming.uvMetricsInfo); | | 25 | + if (api === 'bigint') { | | 26 | + bench.start(); | | 27 | + for (let i = 0; i < n; i++) { | | 28 | + assert.ok(performance.nodeTiming.uvMetricsInfoBigInt); | | 29 | + } | | 30 | + bench.end(n); | | 31 | + } else { | | 32 | + bench.start(); | | 33 | + for (let i = 0; i < n; i++) { | | 34 | + assert.ok(performance.nodeTiming.uvMetricsInfo); | | 35 | + } | | 36 | + bench.end(n); | 27 | 37 | } | 28 | | - bench.end(n); | 29 | 38 | } |
Collapse file Copy file name to clipboardExpand all lines: doc/api/perf_hooks.md +41Lines changed: 41 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -858,6 +858,10 @@ added: | 858 | 858 | This is a wrapper to the `uv_metrics_info` function. | 859 | 859 | It returns the current set of event loop metrics. | 860 | 860 |
| | 861 | +The values are exact up to `Number.MAX_SAFE_INTEGER`. Use | | 862 | +[`performanceNodeTiming.uvMetricsInfoBigInt`][] to obtain the full 64-bit | | 863 | +values reported by libuv. | | 864 | + | 861 | 865 | It is recommended to use this property inside a function whose execution was | 862 | 866 | scheduled using `setImmediate` to avoid collecting metrics before finishing all | 863 | 867 | operations scheduled during the current loop iteration. | @@ -878,6 +882,41 @@ setImmediate(() => { | 878 | 882 | }); | 879 | 883 | ``` | 880 | 884 |
| | 885 | +### `performanceNodeTiming.uvMetricsInfoBigInt` | | 886 | + | | 887 | +<!-- YAML | | 888 | +added: REPLACEME | | 889 | +--> | | 890 | + | | 891 | +* Type: {Object} | | 892 | + * `loopCount` {bigint} Number of event loop iterations. | | 893 | + * `events` {bigint} Number of events that have been processed by the event handler. | | 894 | + * `eventsWaiting` {bigint} Number of events that were waiting to be processed when the event provider was called. | | 895 | + | | 896 | +The same as [`performanceNodeTiming.uvMetricsInfo`][], except that the values | | 897 | +are {bigint}s carrying the full 64-bit range reported by libuv. | | 898 | + | | 899 | +Because `JSON.stringify()` cannot serialize {bigint} values, this property is | | 900 | +not enumerable and is not included in the output of | | 901 | +`performanceNodeTiming.toJSON()`. Copies of `performance.nodeTiming` made by | | 902 | +spreading its enumerable properties, for example, remain serializable. | | 903 | + | | 904 | +```cjs | | 905 | +const { performance } = require('node:perf_hooks'); | | 906 | + | | 907 | +setImmediate(() => { | | 908 | + console.log(performance.nodeTiming.uvMetricsInfoBigInt); | | 909 | +}); | | 910 | +``` | | 911 | + | | 912 | +```mjs | | 913 | +import { performance } from 'node:perf_hooks'; | | 914 | + | | 915 | +setImmediate(() => { | | 916 | + console.log(performance.nodeTiming.uvMetricsInfoBigInt); | | 917 | +}); | | 918 | +``` | | 919 | + | 881 | 920 | ### `performanceNodeTiming.v8Start` | 882 | 921 |
| 883 | 922 | <!-- YAML | @@ -3215,6 +3254,8 @@ dns.promises.resolve('localhost'); | 3215 | 3254 | [`perf_hooks.importHistogram()`]: #perf_hooksimporthistogramdata | 3216 | 3255 | [`perf_hooks.monitorEventLoopDelay()`]: #perf_hooksmonitoreventloopdelayoptions | 3217 | 3256 | [`perf_hooks.timerify()`]: #perf_hookstimerifyfn-options | | 3257 | +[`performanceNodeTiming.uvMetricsInfoBigInt`]: #performancenodetiminguvmetricsinfobigint | | 3258 | +[`performanceNodeTiming.uvMetricsInfo`]: #performancenodetiminguvmetricsinfo | 3218 | 3259 | [`process.hrtime()`]: process.md#processhrtimetime | 3219 | 3260 | [`timeOrigin`]: https://w3c.github.io/hr-time/#dom-performance-timeorigin | 3220 | 3261 | [`window.performance.toJSON`]: https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON | |
Collapse file Copy file name to clipboardExpand all lines: lib/internal/perf/nodetiming.js +20Lines changed: 20 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,6 +30,7 @@ const { | 30 | 30 | loopIdleTime, | 31 | 31 | uvMetricsInfo, | 32 | 32 | uvMetricsBuffer, | | 33 | + uvMetricsBigIntBuffer, | 33 | 34 | } = internalBinding('performance'); | 34 | 35 |
| 35 | 36 | class PerformanceNodeTiming { | @@ -138,6 +139,23 @@ class PerformanceNodeTiming { | 138 | 139 | }; | 139 | 140 | }, | 140 | 141 | }, | | 142 | + | | 143 | + // Not enumerable, so that copying the enumerable properties, e.g. with | | 144 | + // `{ ...performance.nodeTiming }`, does not produce an object that | | 145 | + // JSON.stringify() cannot serialize. | | 146 | + uvMetricsInfoBigInt: { | | 147 | + __proto__: null, | | 148 | + enumerable: false, | | 149 | + configurable: true, | | 150 | + get: () => { | | 151 | + uvMetricsInfo(); | | 152 | + return { | | 153 | + loopCount: uvMetricsBigIntBuffer[0], | | 154 | + events: uvMetricsBigIntBuffer[1], | | 155 | + eventsWaiting: uvMetricsBigIntBuffer[2], | | 156 | + }; | | 157 | + }, | | 158 | + }, | 141 | 159 | }); | 142 | 160 | } | 143 | 161 |
| @@ -153,6 +171,8 @@ class PerformanceNodeTiming { | 153 | 171 | } | 154 | 172 |
| 155 | 173 | toJSON() { | | 174 | + // uvMetricsInfoBigInt is intentionally omitted: JSON.stringify() cannot | | 175 | + // serialize bigint values. | 156 | 176 | return { | 157 | 177 | name: 'node', | 158 | 178 | entryType: 'node', | |
Collapse file Copy file name to clipboardExpand all lines: src/aliased_buffer.h +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -192,7 +192,8 @@ class AliasedBufferBase final : public MemoryRetainer { | 192 | 192 | V(uint32_t, Uint32Array) \ | 193 | 193 | V(float, Float32Array) \ | 194 | 194 | V(double, Float64Array) \ | 195 | | - V(int64_t, BigInt64Array) | | 195 | + V(int64_t, BigInt64Array) \ | | 196 | + V(uint64_t, BigUint64Array) | 196 | 197 |
| 197 | 198 | #define V(NativeT, V8T) \ | 198 | 199 | typedef AliasedBufferBase<NativeT, v8::V8T> Aliased##V8T; | |
Collapse file Copy file name to clipboardExpand all lines: src/node_perf.cc +28-8Lines changed: 28 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -61,7 +61,12 @@ PerformanceState::PerformanceState(Isolate* isolate, | 61 | 61 | offsetof(performance_state_internal, uv_metrics), | 62 | 62 | 3, | 63 | 63 | root, | 64 | | - MAYBE_FIELD_PTR(info, uv_metrics)) { | | 64 | + MAYBE_FIELD_PTR(info, uv_metrics)), | | 65 | + uv_metrics_bigint(isolate, | | 66 | + offsetof(performance_state_internal, uv_metrics_bigint), | | 67 | + 3, | | 68 | + root, | | 69 | + MAYBE_FIELD_PTR(info, uv_metrics_bigint)) { | 65 | 70 | if (info == nullptr) { | 66 | 71 | // For performance states initialized from scratch, reset | 67 | 72 | // all the milestones and initialize the time origin. | @@ -89,11 +94,15 @@ PerformanceState::SerializeInfo PerformanceState::Serialize( | 89 | 94 | for (size_t i = 0; i < uv_metrics.Length(); ++i) { | 90 | 95 | uv_metrics[i] = 0; | 91 | 96 | } | | 97 | + for (size_t i = 0; i < uv_metrics_bigint.Length(); ++i) { | | 98 | + uv_metrics_bigint[i] = 0; | | 99 | + } | 92 | 100 |
| 93 | 101 | SerializeInfo info{root.Serialize(context, creator), | 94 | 102 | milestones.Serialize(context, creator), | 95 | 103 | observers.Serialize(context, creator), | 96 | | - uv_metrics.Serialize(context, creator)}; | | 104 | + uv_metrics.Serialize(context, creator), | | 105 | + uv_metrics_bigint.Serialize(context, creator)}; | 97 | 106 | return info; | 98 | 107 | } | 99 | 108 |
| @@ -116,6 +125,7 @@ void PerformanceState::Deserialize(v8::Local<v8::Context> context, | 116 | 125 | milestones.Deserialize(context); | 117 | 126 | observers.Deserialize(context); | 118 | 127 | uv_metrics.Deserialize(context); | | 128 | + uv_metrics_bigint.Deserialize(context); | 119 | 129 |
| 120 | 130 | // Re-initialize the time origin and timestamp i.e. the process start time. | 121 | 131 | Initialize(time_origin, time_origin_timestamp); | @@ -128,6 +138,7 @@ std::ostream& operator<<(std::ostream& o, | 128 | 138 | << " " << i.milestones << ", // milestones\n" | 129 | 139 | << " " << i.observers << ", // observers\n" | 130 | 140 | << " " << i.uv_metrics << ", // uv_metrics\n" | | 141 | + << " " << i.uv_metrics_bigint << ", // uv_metrics_bigint\n" | 131 | 142 | << "}"; | 132 | 143 | return o; | 133 | 144 | } | @@ -280,12 +291,16 @@ void UvMetricsInfo(const FunctionCallbackInfo<Value>& args) { | 280 | 291 | uv_metrics_t metrics; | 281 | 292 | // uv_metrics_info always return 0 | 282 | 293 | CHECK_EQ(uv_metrics_info(env->event_loop(), &metrics), 0); | 283 | | - // libuv reports 64-bit counters. Store them as doubles so that they are | 284 | | - // exact up to Number.MAX_SAFE_INTEGER instead of wrapping at 2^31. | 285 | | - AliasedFloat64Array& buffer = env->performance_state()->uv_metrics; | 286 | | - buffer[0] = static_cast<double>(metrics.loop_count); | 287 | | - buffer[1] = static_cast<double>(metrics.events); | 288 | | - buffer[2] = static_cast<double>(metrics.events_waiting); | | 294 | + // libuv reports 64-bit counters. The doubles backing uvMetricsInfo are | | 295 | + // exact up to Number.MAX_SAFE_INTEGER, while the uint64_t values backing | | 296 | + // uvMetricsInfoBigInt carry the full range. | | 297 | + PerformanceState* state = env->performance_state(); | | 298 | + const uint64_t values[] = { | | 299 | + metrics.loop_count, metrics.events, metrics.events_waiting}; | | 300 | + for (size_t i = 0; i < arraysize(values); ++i) { | | 301 | + state->uv_metrics[i] = static_cast<double>(values[i]); | | 302 | + state->uv_metrics_bigint[i] = values[i]; | | 303 | + } | 289 | 304 | } | 290 | 305 |
| 291 | 306 | void CreateELDHistogram(const FunctionCallbackInfo<Value>& args) { | @@ -382,6 +397,11 @@ void CreatePerContextProperties(Local<Object> target, | 382 | 397 | FIXED_ONE_BYTE_STRING(isolate, "uvMetricsBuffer"), | 383 | 398 | state->uv_metrics.GetJSArray()) | 384 | 399 | .Check(); | | 400 | + target | | 401 | + ->Set(context, | | 402 | + FIXED_ONE_BYTE_STRING(isolate, "uvMetricsBigIntBuffer"), | | 403 | + state->uv_metrics_bigint.GetJSArray()) | | 404 | + .Check(); | 385 | 405 |
| 386 | 406 | Local<Object> constants = Object::New(isolate); | 387 | 407 |
| |
Collapse file Copy file name to clipboardExpand all lines: src/node_perf_common.h +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -63,6 +63,7 @@ class PerformanceState { | 63 | 63 | AliasedBufferIndex milestones; | 64 | 64 | AliasedBufferIndex observers; | 65 | 65 | AliasedBufferIndex uv_metrics; | | 66 | + AliasedBufferIndex uv_metrics_bigint; | 66 | 67 | }; | 67 | 68 |
| 68 | 69 | explicit PerformanceState(v8::Isolate* isolate, | @@ -80,6 +81,7 @@ class PerformanceState { | 80 | 81 | AliasedFloat64Array milestones; | 81 | 82 | AliasedUint32Array observers; | 82 | 83 | AliasedFloat64Array uv_metrics; | | 84 | + AliasedBigUint64Array uv_metrics_bigint; | 83 | 85 |
| 84 | 86 | uint64_t performance_last_gc_start_mark = 0; | 85 | 87 | uint16_t current_gc_type = 0; | @@ -91,9 +93,10 @@ class PerformanceState { | 91 | 93 | void Initialize(uint64_t time_origin, double time_origin_timestamp); | 92 | 94 | void ResetMilestones(); | 93 | 95 | struct performance_state_internal { | 94 | | - // doubles first so that they are always sizeof(double)-aligned | | 96 | + // 64-bit fields first so that they are always 8-byte aligned | 95 | 97 | double milestones[NODE_PERFORMANCE_MILESTONE_INVALID]; | 96 | 98 | double uv_metrics[3]; | | 99 | + uint64_t uv_metrics_bigint[3]; | 97 | 100 | uint32_t observers[NODE_PERFORMANCE_ENTRY_TYPE_INVALID]; | 98 | 101 | }; | 99 | 102 | }; | |
Collapse file Copy file name to clipboardExpand all lines: src/node_snapshotable.cc +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -395,6 +395,7 @@ size_t SnapshotSerializer::Write(const ImmediateInfo::SerializeInfo& data) { | 395 | 395 | // [ 4/8 bytes ] snapshot index of milestones | 396 | 396 | // [ 4/8 bytes ] snapshot index of observers | 397 | 397 | // [ 4/8 bytes ] snapshot index of uv_metrics | | 398 | +// [ 4/8 bytes ] snapshot index of uv_metrics_bigint | 398 | 399 | template <> | 399 | 400 | performance::PerformanceState::SerializeInfo SnapshotDeserializer::Read() { | 400 | 401 | Debug("Read<PerformanceState::SerializeInfo>()\n"); | @@ -404,6 +405,7 @@ performance::PerformanceState::SerializeInfo SnapshotDeserializer::Read() { | 404 | 405 | result.milestones = ReadArithmetic<AliasedBufferIndex>(); | 405 | 406 | result.observers = ReadArithmetic<AliasedBufferIndex>(); | 406 | 407 | result.uv_metrics = ReadArithmetic<AliasedBufferIndex>(); | | 408 | + result.uv_metrics_bigint = ReadArithmetic<AliasedBufferIndex>(); | 407 | 409 | if (is_debug) { | 408 | 410 | std::string str = ToStr(result); | 409 | 411 | Debug("Read<PerformanceState::SerializeInfo>() %s\n", str); | @@ -423,6 +425,7 @@ size_t SnapshotSerializer::Write( | 423 | 425 | written_total += WriteArithmetic<AliasedBufferIndex>(data.milestones); | 424 | 426 | written_total += WriteArithmetic<AliasedBufferIndex>(data.observers); | 425 | 427 | written_total += WriteArithmetic<AliasedBufferIndex>(data.uv_metrics); | | 428 | + written_total += WriteArithmetic<AliasedBufferIndex>(data.uv_metrics_bigint); | 426 | 429 |
| 427 | 430 | Debug("Write<PerformanceState::SerializeInfo>() wrote %d bytes\n", | 428 | 431 | written_total); | |
Collapse file Copy file name to clipboardExpand all lines: test/fixtures/test-nodetiming-uvmetricsinfo.js +27-1Lines changed: 27 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,6 +13,8 @@ function safeMetricsInfo(cb) { | 13 | 13 | }); | 14 | 14 | } | 15 | 15 |
| | 16 | +const kZeroBigInt = { loopCount: 0n, events: 0n, eventsWaiting: 0n }; | | 17 | + | 16 | 18 | { | 17 | 19 | const info = nodeTiming.uvMetricsInfo; | 18 | 20 | assert.strictEqual(info.loopCount, 0); | @@ -21,6 +23,7 @@ function safeMetricsInfo(cb) { | 21 | 23 | // Adding checks for this property will make the test flaky | 22 | 24 | // as it can be highly influenced by race conditions. | 23 | 25 | assert.strictEqual(info.eventsWaiting, 0); | | 26 | + assert.deepStrictEqual(nodeTiming.uvMetricsInfoBigInt, kZeroBigInt); | 24 | 27 | } | 25 | 28 |
| 26 | 29 | { | @@ -31,24 +34,47 @@ function safeMetricsInfo(cb) { | 31 | 34 | assert.strictEqual(info.loopCount, 0); | 32 | 35 | assert.strictEqual(info.events, 0); | 33 | 36 | assert.strictEqual(info.eventsWaiting, 0); | | 37 | + assert.deepStrictEqual(nodeTiming.uvMetricsInfoBigInt, kZeroBigInt); | 34 | 38 | } | 35 | 39 |
| 36 | 40 | { | 37 | 41 | function openFile(info) { | 38 | 42 | assert.strictEqual(info.loopCount, 1); | | 43 | + const infoBigInt = nodeTiming.uvMetricsInfoBigInt; | | 44 | + assert.strictEqual(infoBigInt.loopCount, 1n); | 39 | 45 |
| 40 | 46 | fs.open(__filename, 'r', (err) => { | 41 | 47 | assert.ifError(err); | 42 | 48 | }); | 43 | 49 |
| 44 | 50 | const saved = { ...info }; | | 51 | + const savedBigInt = { ...infoBigInt }; | 45 | 52 | safeMetricsInfo((nextInfo) => { | 46 | 53 | assert.notStrictEqual(nextInfo, info); | 47 | 54 | assert.ok(nextInfo.loopCount > saved.loopCount); | 48 | | - // Updating the shared buffer must not change earlier results. | | 55 | + const nextInfoBigInt = nodeTiming.uvMetricsInfoBigInt; | | 56 | + assert.notStrictEqual(nextInfoBigInt, infoBigInt); | | 57 | + assert.ok(nextInfoBigInt.loopCount > savedBigInt.loopCount); | | 58 | + // Updating the shared buffers must not change earlier results. | 49 | 59 | assert.deepStrictEqual(info, saved); | | 60 | + assert.deepStrictEqual(infoBigInt, savedBigInt); | 50 | 61 | }); | 51 | 62 | } | 52 | 63 |
| 53 | 64 | safeMetricsInfo(openFile); | 54 | 65 | } | | 66 | + | | 67 | +{ | | 68 | + // Both representations are filled by the same native call, and libuv only | | 69 | + // updates the metrics while the event loop is running, so back-to-back | | 70 | + // synchronous reads must agree. | | 71 | + safeMetricsInfo(() => { | | 72 | + const info = nodeTiming.uvMetricsInfo; | | 73 | + const infoBigInt = nodeTiming.uvMetricsInfoBigInt; | | 74 | + for (const key of ['loopCount', 'events', 'eventsWaiting']) { | | 75 | + assert.strictEqual(typeof info[key], 'number'); | | 76 | + assert.strictEqual(typeof infoBigInt[key], 'bigint'); | | 77 | + assert.strictEqual(BigInt(info[key]), infoBigInt[key]); | | 78 | + } | | 79 | + }); | | 80 | +} |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-performance-nodetiming-uvmetricsinfo-buffer.js +11-3Lines changed: 11 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,14 +5,22 @@ require('../common'); | 5 | 5 | const assert = require('node:assert'); | 6 | 6 | const { internalBinding } = require('internal/test/binding'); | 7 | 7 |
| 8 | | -// The event loop metrics reported by libuv are 64-bit counters. The buffer | | 8 | +// The event loop metrics reported by libuv are 64-bit counters. The buffers | 9 | 9 | // used to transfer them to JavaScript must not truncate them to 32 bits. | 10 | | -const { uvMetricsBuffer, uvMetricsInfo } = internalBinding('performance'); | | 10 | +const { | | 11 | + uvMetricsBuffer, | | 12 | + uvMetricsBigIntBuffer, | | 13 | + uvMetricsInfo, | | 14 | +} = internalBinding('performance'); | 11 | 15 | assert.ok(uvMetricsBuffer instanceof Float64Array); | 12 | 16 | assert.strictEqual(uvMetricsBuffer.length, 3); | | 17 | +assert.ok(uvMetricsBigIntBuffer instanceof BigUint64Array); | | 18 | +assert.strictEqual(uvMetricsBigIntBuffer.length, 3); | 13 | 19 |
| 14 | 20 | uvMetricsInfo(); | 15 | | -for (const value of uvMetricsBuffer) { | | 21 | +for (let i = 0; i < uvMetricsBuffer.length; i++) { | | 22 | + const value = uvMetricsBuffer[i]; | 16 | 23 | assert.ok(Number.isSafeInteger(value), `${value} is not a safe integer`); | 17 | 24 | assert.ok(value >= 0, `${value} is negative`); | | 25 | + assert.strictEqual(BigInt(value), uvMetricsBigIntBuffer[i]); | 18 | 26 | } |
Collapse file Copy file name to clipboard +26Lines changed: 26 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +'use strict'; | | 2 | + | | 3 | +const common = require('../common'); | | 4 | +const assert = require('node:assert'); | | 5 | +const { Worker } = require('node:worker_threads'); | | 6 | + | | 7 | +// The event loop metrics are tracked per event loop, so they are also | | 8 | +// available in worker threads. | | 9 | +const worker = new Worker(` | | 10 | + const { parentPort } = require('node:worker_threads'); | | 11 | + const { performance } = require('node:perf_hooks'); | | 12 | + setImmediate(() => { | | 13 | + const info = performance.nodeTiming.uvMetricsInfo; | | 14 | + const infoBigInt = performance.nodeTiming.uvMetricsInfoBigInt; | | 15 | + parentPort.postMessage({ info, infoBigInt }); | | 16 | + }); | | 17 | +`, { eval: true }); | | 18 | + | | 19 | +worker.on('message', common.mustCall(({ info, infoBigInt }) => { | | 20 | + for (const key of ['loopCount', 'events', 'eventsWaiting']) { | | 21 | + assert.strictEqual(typeof info[key], 'number'); | | 22 | + assert.strictEqual(typeof infoBigInt[key], 'bigint'); | | 23 | + assert.strictEqual(BigInt(info[key]), infoBigInt[key]); | | 24 | + } | | 25 | + assert.ok(infoBigInt.loopCount > 0n); | | 26 | +})); |
|