ai-agent

marky: Precise JS Timing for Performance‑Critical Apps

Get microsecond‑level timing using performance.mark/measure in just 491 bytes. Ideal for founders building fast, data‑driven front‑ends. 1.1k+ GitHub stars.

From the repo · “High-resolution JavaScript timer based on performance.mark/measure (491 bytes min+gz)”

intermediate⏱ 30 minutes💵 Free
1,092 stars24 forksJavaScriptGuide quality 8/10 · reviewed Oct 10Updated 2/28/2026100% free · open source
What it is

Use marky to measure how long tasks take in your JavaScript program.

Real use case example

"A founder of a startup uses marky to identify performance issues in their e-commerce website, which has a large number of users. They run marky on their login process, discover a slow database query, fix it, and then run marky again to confirm the improvement. Login times decrease by 30% and user satisfaction increases."

Best insideCursor
When to use it
  • •When building real-time web applications that require precise timing
  • •When optimizing performance-critical code paths in JavaScript applications
  • •When measuring the execution time of specific code blocks or functions
Ready-to-paste prompt
const marky = require('marky'); const timer = marky(); timer.start('my-mark'); for (let i = 0; i < 10000000; i++); timer.end('my-mark'); console.log(timer.getEntries()['my-mark']);
Heads up: Make sure the browser or Node.js environment supports the performance.mark and performance.measure APIs, as marky relies on these APIs to function correctly.
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/marky && curl -fsSL https://workflowstacks.com/api/skills/marky/claude-skill -o ~/.claude/skills/marky/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How marky: Precise JS Timing for Performance‑Critical Apps works
Codeflow
Free to inspect

Marky: Precise JS Timing for Performance‑Critical Apps is a tiny JavaScript project (~150 lines across 11 code files, plus 2 test files). Setup is light: installs like a normal app. Reading the code is optional. Last commit 8 months ago, Apache-2.0 license, has a test suite.

Size
Tiny codebase
~150 lines · 11 code files · 2 min skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Node.js
No API keys detected
JavaScript 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    src/index.js
    Where the program starts running
  3. 3
    package.json
    Dependencies and the commands it exposes
What's in each folder
src/Core code — the actual logic3 files
doc/Documentation2 files
config/Configuration6 files
.github/CI / automation (GitHub Actions)2 files
test/Tests — proof it works2 files
READMEHas testsDocumentedCI checksApache-2.0 licenseLast update 8 mo ago
Quick Actions
Details
Creator
nolanlawson
Language
JavaScript
Category
ai-agent
Published
11/17/2016

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/marky.svg)](https://workflowstacks.com/skills/marky?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.