Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/dceprojects.corals.io/node_modules/hpack.js/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/dceprojects.corals.io/node_modules/hpack.js/bin/benchmark
#!/usr/bin/env node
var hpack = require('../');

var options = {
  table: { size: 1024 }
};

var compressor = hpack.compressor.create(options);

var vector = [];
for (var i = 0; i < 1024; i++) {
  vector.push({
    name: 'kind-of-big-header-name__',
    value: 'not-so-small value yes!',
    huffman: true,
    neverIndex: true
  });
}
compressor.write(vector);
var input = compressor.read();

console.time('decompressor');
for (var i = 0; i < 2000; i++) {
  var decompressor = hpack.decompressor.create(options);

  decompressor.write(input);
  decompressor.execute();
  while (true) {
    var chunk = decompressor.read();
    if (!chunk)
      break;
  }
}
console.timeEnd('decompressor');

Spamworldpro Mini