Skip to main content
Glama
no-stack.js547 B
'use strict' const benchmark = require('benchmark') const createError = require('..') const FastifyError = createError('CODE', 'Not available') Error.stackTraceLimit = 0 new benchmark.Suite() .add('no-stack instantiate Error', function () { new Error() }, { minSamples: 100 }) // eslint-disable-line no-new .add('no-stack instantiate FastifyError', function () { new FastifyError() }, { minSamples: 100 }) // eslint-disable-line no-new .on('cycle', function onCycle (event) { console.log(String(event.target)) }) .run({ async: false })

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/krtw00/search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server