Skip to content

Instantly share code, notes, and snippets.

View DanishSiddiq's full-sized avatar
🎯
Focusing

DanishSiddiq

🎯
Focusing
View GitHub Profile
@DanishSiddiq
DanishSiddiq / app.js
Created September 23, 2018 10:44
app.js
import http from 'http';
import morgan from 'morgan';
import express from 'express';
import bodyParser from 'body-parser';
import cluster from 'cluster';
import { setRouter } from './route';
const app = express();
let workers = [];
@DanishSiddiq
DanishSiddiq / TwoDimensionalArray.csv
Last active May 30, 2018 08:10
Two Dimensional Loops Stats
Machine Mac Book Pro Hp Virtual Machine
Processor 2.2GHz Intel i7 Intel(R)Core(TM)[email protected] Intel(R)Xeon(R)CPU [email protected]
CPU Count 8 8 2
Operating System macOS Sierra Windows 10 Pro Ubuntu 16.04 LTS(xenial)
Node 10.0.1 9.6.1 8.11.2
t t t t
Classical For 113.897 293.612 184.597
For Length defined 109.186 227.223 161.769
Reverse For 106.299 497.724 179.925
Reverse While 110.679 208.435 171.540
@DanishSiddiq
DanishSiddiq / SingleDimensionStats.csv
Last active May 30, 2018 08:11
Single Dimension Stats
Machine Mac Book Pro Hp Virtual Machine
Processor 2.2GHz Intel i7 Intel(R)Core(TM)[email protected] Intel(R)Xeon(R)CPU [email protected]
CPU Count 8 8 2
Operating System macOS Sierra Windows 10 Pro Ubuntu 16.04 LTS(xenial)
Node 10.0.1 9.6.1 8.11.2
t t t t
Classical For 16.278 134.288 34.912
For Length defined 15.44 151.212 27.813
Reverse For 15.278 132.534 28.005
Reverse While 14.757 116.211 20.628