QuantEcon.jl

repository·master·Indexed 20 days ago

https://github.com/quantecon/quantecon.jl

A Julia package for quantitative economic modeling, providing tools and implementations for economic research and computation. The library includes modules for DiscreteDP, lcp_lemke, and MarkovChain.

Tokens
945
Snippets
7
Records
9
Agent score
19%

What's inside QuantEcon.jl

  1. Run benchmarks using PkgBenchmark.jl

    master

    For automated benchmarking and reporting, use PkgBenchmark.jl. This requires PkgBenchmark to be installed in your default environment.

    To benchmark the QuantEcon package and export the results to a Markdown file:

    using PkgBenchmark
    
    results = benchmarkpkg("QuantEcon")
    export_markdown("results.md", results)
  2. Access QuantEcon documentation and examples

    master

    You can access the official documentation and learning materials for the library through the following resources:

  3. Compare performance between two commits

    master

    You can evaluate performance changes between a target commit (or branch) and a baseline using the judge function in PkgBenchmark.jl.

    Note: judge checks out and runs each commit separately; uncommitted changes in your working tree will not be included in the comparison.

    To compare the current master branch against its previous commit (master~1):

    jud = judge("QuantEcon", "master", "master~1")
    export_markdown("judgement.md", jud)

    To inspect the results in the REPL:

    • View the judgment summary: show(PkgBenchmark.benchmarkgroup(jud))
    • View baseline timing estimates: show(jud.baseline_results.benchmarkgroup)
    • View target timing estimates: show(jud.target_results.benchmarkgroup)
  4. Run specific benchmarks interactively

    master

    If you want to run only a specific subset of benchmarks (for example, a single kernel within a module), you can include the benchmark file in an interactive Julia session and access the SUITE object.

    Example: Running the bellman_operator for the dense_n500_m100 case in the ddp module:

    include("benchmark/benchmarks.jl")
    run(SUITE["ddp"]["dense_n500_m100"]["bellman_operator"])
    include("benchmark/benchmarks.jl");
    
    run(SUITE["ddp"]["dense_n500_m100"]["bellman_operator"])
  5. Reference: QuantEcon.jl Benchmark Modules

    master

    The benchmark suite is organized into a BenchmarkGroup named SUITE. The following modules are currently covered:

    • SUITE["ddp"]: Benchmarks DiscreteDP (found in src/markov/ddp.jl).
    • SUITE["lcp_lemke"]: Benchmarks lcp_lemke (found in src/lcp_lemke.jl).
    • SUITE["mc_tools"]: Benchmarks MarkovChain (found in src/markov/mc_tools.jl).