Page MenuHomePhorge

bench_loop_string.js
No OneTemporary

Size
231 B
Referenced Files
None
Subscribers
None

bench_loop_string.js

const obj = { a: 42 };
const iterations = 200000;
let start = Date.now();
let result = 0;
for (let i = 0; i < iterations; i++) {
result += obj.a;
}
console.log(`loop string access: ${Date.now() - start}ms (result: ${result})`);

File Metadata

Mime Type
text/plain
Expires
Sun, May 3, 9:41 AM (8 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
518187
Default Alt Text
bench_loop_string.js (231 B)

Event Timeline