- Как возникают дубли и почему необходима дедупликация: https://www.npmjs.com/package/yarn-deduplicate#why-is-this-necessary
- NPM
npm dedupe
: https://docs.npmjs.com/cli/v11/commands/npm-dedupe - Yarn 1
yarn-deduplicate
: https://www.npmjs.com/package/yarn-deduplicate - Yarn 4
yarn dedupe
: https://yarnpkg.com/cli/dedupe - Yarn dedupes inconsistently: yarnpkg/yarn#6070
- Bun overrides and resolutions: https://bun.sh/docs/install/overrides
- The wiki page for the Linux perf command:
- Brendan Gregg's documentation:
- perf Examples: http://www.brendangregg.com/perf.html
- Linux Profiling at Netflix, 2015: http://www.brendangregg.com/blog/2015-02-27/linux-profiling-at-netflix.html
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
function createPackedSmiArray(n) { | |
const arr = []; | |
for (let i = 0; i < n; i++) { | |
arr.push(i); | |
} | |
return arr; | |
} | |
function createHoleySmiArray(n) { | |
return Array.from({ length: n }, (_, i) => i); |
- Сайт: https://bun.sh/
- Код бенчмарка React SSR: https://github.com/oven-sh/bun/tree/main/bench/react-hello-world
- Документация по
renderToPipeableStream
: https://react.dev/reference/react-dom/server/renderToPipeableStream - Документация по
renderToReadableStream
: https://react.dev/reference/react-dom/server/renderToReadableStream
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 parse0 = line => { | |
return {}; |
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']; | |
/** |
- 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/
NewerOlder