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.
2 parents 0b87077 + e8236ed commit 0a9873dCopy full SHA for 0a9873d
src/workerd/tests/bench-text-encoder.c++
@@ -43,13 +43,13 @@ struct TextEncoder: public benchmark::Fixture {
43
44
let result;
45
if (op === 'encode') {
46
- for (let i = 0; i < 100_000; i++) {
+ for (let i = 0; i < 1000; i++) {
47
result = encoder.encode(input);
48
}
49
return new Response(result.length.toString());
50
} else if (op === 'encodeInto') {
51
const buffer = new Uint8Array(len * 3); // enough space for any UTF-8 encoding
52
53
result = encoder.encodeInto(input, buffer);
54
55
return new Response(result.written.toString());
0 commit comments