genbench

command
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command genbench times code generation on one OpenAPI document: loading it with libopenapi, then generating server, client and models from it.

The default document is written to a temp file: many paths and schemas that reference each other, large enough that loading and generating dominate the timer. -spec times a file, or a document fetched from a URL, instead.

The garbage collector runs before each sample so one sample does not pay for the previous one's garbage. Warmup rounds are discarded. The run stops once the 95% confidence interval is within -ci of the mean, and always reports that interval.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL