Skip to content

Instantly share code, notes, and snippets.

View chill-patel's full-sized avatar
🎯
Focusing

Sunil Patel chill-patel

🎯
Focusing
View GitHub Profile
@chill-patel
chill-patel / memorytest.js
Created July 26, 2018 20:04
Node memory test
const q = require('q')
const b = require('bluebird')
const qalllib = require('qalllib')
const used = process.memoryUsage().heapUsed / 1024 / 1024;
console.log(`The Beginning ${Math.round(used * 100) / 100} MB `,);
const add = (num1, num2) => {
return new Promise((resolve, reject ) => {
setTimeout(() => {
resolve(num1+num2)
})
let dump = ` CREATE TABLE CUSTOMERS(
ID INT NOT NULL,
NAME VARCHAR (20) NOT NULL,
AGE INT NOT NULL,
ADDRESS CHAR (25) ,
SALARY DECIMAL (18, 2),
PRIMARY KEY (ID)
);
CREATE OR REPLACE FUNCTION totalRecords ()