yamlstar

command
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: EPL-1.0 Imports: 10 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.

README

YAMLStar AOT benchmarks

This suite compiles and benchmarks YAMLStar's real YAML 1.2 parser and load pipeline with the Glojure checkout under test. It reports time and allocations for the four inputs from YAMLStar's own benchmark:

  • scalar: a plain scalar
  • mapping: foo: 42
  • nested: nested mappings and a block sequence
  • types: strings, integers, floats, booleans, and nulls

Each input has two benchmarks:

  • Parse measures YAML text to parser events.
  • Load measures the complete YAMLStar path from text to Clojure data, including parsing, composition, resolution, and construction.

The runner uses the last YAMLStar revision before its parser moved to a Maven artifact (64d1d0dd786877d2f0d8a96ccf7cd7905a8dc895). This keeps the workload source-based and reproducible for Glojure AOT compilation. It applies two documented compatibility rewrites to the temporary source copy: JVM Exception becomes Glojure's go/any, and an ASCII-irrelevant unicode/utf8 interop call uses Glojure's character representation instead.

Run

From the Glojure repository:

go run ./benchmark/yamlstar -count 5 -benchtime 2s

The default run clones the pinned public YAMLStar revision into its temporary build directory. To avoid network access, prepare that revision locally and pass it to the runner:

git clone https://github.com/yaml/yamlstar.git /tmp/yamlstar
git -C /tmp/yamlstar checkout 64d1d0dd786877d2f0d8a96ccf7cd7905a8dc895

go run ./benchmark/yamlstar \
  -yamlstar-root /tmp/yamlstar \
  -count 5 \
  -benchtime 2s

Use -bench to select a subset, for example:

go run ./benchmark/yamlstar -yamlstar-root /tmp/yamlstar -bench 'Load/(nested|types)$'

The runner first checks the four loaded values for correctness. Namespace loading and the first invocation happen before benchmark timing begins, so the numbers focus on the generated application path rather than compiler or process startup.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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