Macaulay2 » Documentation
Packages » Benchmark :: runBenchmarks
next | previous | forward | backward | up | index | toc

# runBenchmarks

- Usage:
    `runBenchmarks`
    `runBenchmarks x`
    `runBenchmarks all`
- Inputs:
  - x, a string or list of strings
- Consequences:
  - the benchmarks whose names occur in x are run. The output is in a standard format that can be inserted into a Macaulay2 source file as a comment. If x is omitted, then the "res39", "resG25", and "gbB148" are run. If x is all, then all the benchmarks are run.

## Description

The tests available are:
"deg2generic" -- gb of a generic ideal of codimension 2 and degree 2
"gb4by4comm" -- gb of the ideal of generic commuting 4 by 4 matrices over ZZ/101
"gb3445" -- gb of an ideal with elements of degree 3,4,4,5 in 8 variables
"gbB148" -- gb of Bayesian graph ideal #148
"res39" -- res of a generic 3 by 9 matrix over ZZ/101
"resG25" -- res of the coordinate ring of Grassmannian(2,5)
"yang-gb1" -- an example of Yang-Hui He arising in string theory
"yang-subring" -- an example of Yang-Hui He

    i1 : runBenchmarks "res39"
    -- beginning computation Sun Feb  8 12:07:48 UTC 2026
    -- Linux lcy02-amd64-105 6.8.0-90-generic #91-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 18 14:14:30 UTC 2025 x86_64 GNU/Linux
    -- AMD EPYC-Rome Processor  AuthenticAMD  cpu MHz 2499.998
    -- Macaulay2 1.25.11, compiled with gcc 15.2.0
    -- res39: res of a generic 3 by 9 matrix over ZZ/101: .146184 seconds

## For the programmer

The object runBenchmarks is a command.

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Benchmark.m2:297:0.