Toolverse
All skills

benchmarking

by garden-co

Use this skill when writing or running performance benchmarks for Jazz packages. Covers cronometro setup, file conventions, gotchas with worker threads, and how to compare implementations.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
garden-co
Category
Testing
Views
5

About this skill

Use this skill when writing or running performance benchmarks for Jazz packages. Covers cronometro setup, file conventions, gotchas with worker threads, and how to compare implementations.

How to use

  1. Umieść pliki benchmarku w katalogu bench/ w korzeniu repozytorium. Każdy plik powinien mieć nazwę wzoru <subject>.<operation>.bench.ts, np. comap.create.jazz-tools.bench.ts lub filestream.getChunks.bench.ts. 2. Zainstaluj zależności benchmarkowe w bench/package.json: cronometro, cojson, jazz-tools i vitest. 3. Utwórz plik benchmarku importując cronometro i definiując obiekty testowe. Każdy obiekt powinien zawierać funkcję before() do przygotowania danych (uruchamia się raz przed iteracjami) i funkcję test() zawierającą kod do pomiaru. 4. Zdefiniuj wiele implementacji w jednym pliku — na przykład "operation - @latest" i "operation - @workspace" — aby porównać wydajność starej i nowej wersji. 5. Uruchom benchmark za pomocą cronometro, które automatycznie uruchomi każdy test w izolowanym wątku roboczym dla dokładnych pomiarów. 6. Przeanalizuj wyniki, aby zidentyfikować regresje wydajności lub potwierdzić, że optymalizacja rzeczywiście poprawiła czas wykonania.

Related skills

code-review-excellence

by wshobson

Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.

Testing
1145

lean4-theorem-proving

by cameronfreer

Use when developing Lean 4 proofs, facing type class synthesis errors, managing sorries/axioms, or searching mathlib - provides build-first workflow, instance management patterns (haveI/letI), and domain-specific tactics

Testing
9108

pair-trade-screener

by tradermonty

Statistical arbitrage tool for identifying and analyzing pair trading opportunities. Detects cointegrated stock pairs within sectors, analyzes spread behavior, calculates z-scores, and provides entry/exit recommendations for market-neutral strategies. Use when user requests pair

Testing
994

vitest

by antfu

Vitest fast unit testing framework powered by Vite with Jest-compatible API. Use when writing tests, mocking, configuring coverage, or working with test filtering and fixtures.

Testing
1236

webapp-testing

by anthropics

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

Testing
130255

crypto-research

by stevengonsalvez

Comprehensive cryptocurrency market research and analysis using specialized AI agents. Analyzes market data, price trends, news sentiment, technical indicators, macro correlations, and investment opportunities. Use when researching cryptocurrencies, analyzing crypto markets,

Testing
14118