Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/rentals.picotech.app/public_html/node_modules/dicer/bench/ drwxr-xr-x |
Viewing file: Select action/file-type: var assert = require('assert'); var multipartser = require('multipartser'), boundary = '-----------------------------168072824752491622650073', parser = multipartser(), mb = 100, buffer = createMultipartBuffer(boundary, mb * 1024 * 1024), callbacks = { partBegin: -1, partEnd: -1, headerField: -1, headerValue: -1, partData: -1, end: -1, }; parser.boundary( boundary ); parser.on( 'part', function ( part ) { }); parser.on( 'end', function () { //console.log( 'completed parsing' ); }); parser.on( 'error', function ( error ) { console.error( error ); }); var start = +new Date(), nparsed = parser.data(buffer), nend = parser.end(), duration = +new Date - start, mbPerSec = (mb / (duration / 1000)).toFixed(2); console.log(mbPerSec+' mb/sec'); //assert.equal(nparsed, buffer.length); function createMultipartBuffer(boundary, size) { var head = '--'+boundary+'\r\n' + 'content-disposition: form-data; name="field1"\r\n' + '\r\n' , tail = '\r\n--'+boundary+'--\r\n' , buffer = new Buffer(size); buffer.write(head, 'ascii', 0); buffer.write(tail, 'ascii', buffer.length - tail.length); return buffer; } process.on('exit', function() { /*for (var k in callbacks) { assert.equal(0, callbacks[k], k+' count off by '+callbacks[k]); }*/ }); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0041 ]-- |