enhance-computation
v1.0.25
Published
A high performance computation for nodejs to do CPU intensive computation.
Downloads
9
Readme
Description
Simple Computation addon written by node-api for nodeJS,we provide these functions
- alculate average by two given arrays and basic calculation.
- add two numbers.
- sub two numbers.
- multiply two numbers.
- div two numbers.
All parameters should be string. All functions return a string as result.
Usage:
const computation = require('enhance-computation');
let valueArray1 = ['10.5','22.35'];
let valueArray2 = ['5.553', '2.557'];
for (let i = 0; i < 30000; i++) {
console.log(computation.calculateAverage(valueArray1, valueArray2));
}
More usages in the usage.js