- Web performance optimization stats https://wpostats.com
- PerfPerfPerf (Ivan Akulov) Client Cases https://3perf.com/#clients
- web.dev Case Study https://web.dev/tags/case-study/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('node:fs'); | |
const readline = require('node:readline'); | |
const fileName = process.argv[2]; | |
if (!fileName) { | |
console.error('Please specify map file name as the first argument'); | |
process.exit(1); | |
} | |
function extractAddress(/*string*/line) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use dependencies from https://gist.github.com/victor-homyakov/b41cd9dbea99eec870464cf49bb019a7 | |
require("@nestjs/axios"); | |
require("@nestjs/common"); | |
require("@nestjs/config"); | |
require("@nestjs/core"); | |
require("@nestjs/platform-express"); | |
require("@nestjs/swagger"); | |
require("@nestjs/terminus"); | |
require("@nestjs/throttler"); | |
require("@sentry/node"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "install-benchmark", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "Victor Homyakov", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To avoid slowdown from GC, run node with the following keys: | |
// --expose-gc --initial-old-space-size=1024 | |
const fs = require('fs'); | |
//const heapdump = require('heapdump'); | |
const buffers = fs.readFileSync('buffers.txt').toString().split('\n'); | |
const parse1 = line => { | |
let rv = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Wrapper for https://www.npmjs.com/package/benchmark | |
* Calculates minimum, median, maximum values of the sample | |
*/ | |
const Benchmark = require('benchmark'); | |
const units = ['s/op', 'ms/op', 'μs/op', 'ns/op']; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const estraverse = require('estraverse'); | |
const espree = require('espree'); | |
const escodegen = require('escodegen'); | |
const fs = require('fs'); | |
const path = require('path'); | |
function getNameProp(prop) { | |
if (prop.type === 'SpreadElement') { | |
return prop; | |
} |
- Михаил Башуров. Иван Тулуп. Асинхронщина в JS под капотом https://www.youtube.com/watch?v=JrmDTZPsla4
- Филипп Робертс. Что за чертовщина такая event loop? https://www.youtube.com/watch?v=8aGhZQkoFbQ
- Джейк Арчибальд. В цикле https://www.youtube.com/watch?v=cCOL7MC4Pl0&t=424s
- Демо: Влияние JS на UI страницы (воспроизведение видео, выделение текста): https://event-loop-tests.glitch.me/while-true-test.html
- Addy Osmani. Are long JavaScript tasks delaying your Time to Interactive? https://web.dev/long-tasks-devtools/
- Википедия, Сборка мусора: https://ru.wikipedia.org/wiki/Сборка_мусора
- Википедия, Куча (Heap): https://ru.wikipedia.org/wiki/Куча_(память)
- Memory management in V8: https://deepu.tech/memory-management-in-v8/
performance.memory
на MDN: https://developer.mozilla.org/en-US/docs/Web/API/Performance/memoryperformance.memory
на CanIUse: https://caniuse.com/mdn-api_performance_memory- Как
performance.memory
появился в Chromium: https://www.html5rocks.com/en/tutorials/memory/effectivemanagement/
postMessage
в планировщике React: facebook/react#14234- Планировщик React: https://github.com/facebook/react/blob/76bbad3e34bc3403ddbe59e12845e8643dbb8d9f/packages/scheduler/src/forks/Scheduler.js#L550-L580
- Планировщик LRT: https://github.com/dfilatov/lrt
- $mol_fiber: https://github.com/hyoo-ru/mam_mol/tree/master/fiber
- Михаил Башуров. Иван Тулуп. Асинхронщина в JS под капотом https://www.youtube.com/watch?v=JrmDTZPsla4
NewerOlder