Skip to main content
Glama
bench-thread.js454 B
'use strict' const { workerData: benchmark, parentPort } = require('worker_threads') const Benchmark = require('benchmark') Benchmark.options.minSamples = 100 const suite = Benchmark.Suite() const FJS = require('..') const stringify = FJS(benchmark.schema) suite .add(benchmark.name, () => { stringify(benchmark.input) }) .on('cycle', (event) => { parentPort.postMessage(String(event.target)) }) .on('complete', () => {}) .run()

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