Skip to content

Instantly share code, notes, and snippets.

View AVAVT's full-sized avatar
🏠
Working from home

AVAVT AVAVT

🏠
Working from home
View GitHub Profile
@AVAVT
AVAVT / performance-utils.js
Last active September 28, 2017 15:12
Strange nodejs performance test result
'use strict';
const performanceTest = function(tests){
var tindexOf = process.hrtime();
tests.forEach(testcase => {
var result = testcase.input.indexOf(testcase.target);
if(result !== testcase.output) console.log("Errr", result, testcase.output);
});
tindexOf = process.hrtime(tindexOf);
@AVAVT
AVAVT / cloudSettings
Last active May 5, 2020 09:59
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-05-05T09:59:21.036Z","extensionVersion":"v3.4.3"}