Skip to content

Commit

Permalink
increase chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Nov 13, 2023
1 parent 5debaf6 commit a12c3ec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions benchmarks/_results/Busboy_comparison-busboy-Node_20.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"benchmarkCycles": 500,
"benchmarkCycleSamples": 50,
"warmupCycles": 50,
"meanTimeNs": 566429.1632040885,
"meanTimeMs": 0.5664291632040884
"meanTimeNs": 277264.27034383157,
"meanTimeMs": 0.27726427034383155
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"benchmarkCycles": 500,
"benchmarkCycleSamples": 50,
"warmupCycles": 50,
"meanTimeNs": 750653.2907616243,
"meanTimeMs": 0.7506532907616243
"meanTimeNs": 189956.0127756485,
"meanTimeMs": 0.1899560127756485
}
4 changes: 2 additions & 2 deletions benchmarks/_results/Busboy_comparison-multipasta-Node_20.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"benchmarkCycles": 500,
"benchmarkCycleSamples": 50,
"warmupCycles": 50,
"meanTimeNs": 287651.0216099106,
"meanTimeMs": 0.2876510216099106
"meanTimeNs": 246957.7862022996,
"meanTimeMs": 0.2469577862022996
}
6 changes: 3 additions & 3 deletions benchmarks/busboy/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ function createMultipartBuffer (boundary) {
'--' + boundary + '--'
].join('\r\n')
const buf = Buffer.from(payload, 'ascii')
// split into 1400 byte chunks to simulate network packets
// split into 16000 byte chunks to simulate network packets
const buffers = []
for (let i = 0; i < buf.length; i += 1400) {
buffers.push(buf.subarray(i, i + 1400))
for (let i = 0; i < buf.length; i += 16000) {
buffers.push(buf.subarray(i, i + 16000))
}
return buffers
}
Expand Down

0 comments on commit a12c3ec

Please sign in to comment.