int-32-benchmark.js 369 Bytes
Newer Older
Muddsair Sharif's avatar
Muddsair Sharif committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var Writer = require(__dirname + '/../');

module.exports = function() {
  var writer = new Writer();
  writer.addInt32(-10000000000000);
  writer.addInt32(-1000);
  writer.addInt32(-1);
  writer.addInt32(0);
  writer.addInt32(1);
  writer.addInt32(1000);
  writer.addInt32(10000000000000);
};

if(!module.parent) {
  module.exports();
  console.log('benchmark ok');
}