Beispiel #1
0
def plot_nprocs_cli(args):
    """Translate CLI parser result to API calls."""
    results = load_results_from_file(args.input)
    nprocs_plot(
        results.results,
        filename=args.output,
        title=args.title,
    )
Beispiel #2
0
def main():
    results = []

    # Users can add more or modify existing reference maps
    benchmark(7071, "r.patch_50M", results)
    benchmark(14142, "r.patch_200M", results)
    benchmark(10000, "r.patch_100M", results)
    benchmark(20000, "r.patch_400M", results)

    bm.nprocs_plot(results, filename="rpatch_benchmark.svg")
Beispiel #3
0
def main():
    results = []

    # Users can add more or modify existing reference maps
    benchmark(7071, "r.mfilter_50M", results)
    benchmark(10000, "r.mfilter_100M", results)
    benchmark(14142, "r.mfilter_200M", results)
    benchmark(20000, "r.mfilter_400M", results)

    bm.nprocs_plot(results)
Beispiel #4
0
def main():
    results = []

    # Users can add more or modify existing reference maps
    benchmark(7071, "r.slope.aspect_50M", results)
    benchmark(10000, "r.slope.aspect_100M", results)
    benchmark(14142, "r.slope.aspect_200M", results)
    benchmark(20000, "r.slope.aspect_400M", results)

    bm.nprocs_plot(results, filename="r_slope_aspect_benchmark_size.svg")
def main():
    results = []

    # Users can add more or modify existing reference maps
    benchmark(7071, "r.neighbors_50M", results)
    benchmark(10000, "r.neighbors_100M", results)
    benchmark(14142, "r.neighbors_200M", results)
    benchmark(20000, "r.neighbors_400M", results)

    bm.nprocs_plot(results, filename="r_neighbors_benchmark_nprocs.svg")
Beispiel #6
0
def main():
    results = []

    reference = "r_neighbors_reference_map"
    generate_map(rows=10000, cols=10000, fname=reference)
    # Users can add more or modify existing reference maps
    benchmark(3, "r.neighbors_3x3", results, reference)
    benchmark(9, "r.neighbors_9x9", results, reference)
    benchmark(15, "r.neighbors_15x15", results, reference)
    benchmark(31, "r.neighbors_31x31", results, reference)

    Module("g.remove", quiet=True, flags="f", type="raster", name=reference)
    bm.nprocs_plot(results, filename="r_neighbors_benchmark_size.svg")
def main():
    results = []

    reference = "r_series_reference_map"
    generate_map(rows=10000, cols=10000, fname=reference)
    # Users can add more or modify existing reference maps
    benchmark(0, "r.series_0MB", results, reference)
    benchmark(5, "r.series_5MB", results, reference)
    benchmark(10, "r.series_10MB", results, reference)
    benchmark(100, "r.series_100MB", results, reference)
    benchmark(300, "r.series_300MB", results, reference)

    Module("g.remove", quiet=True, flags="f", type="raster", name=reference)
    bm.nprocs_plot(results, filename="r_series_benchmark_memory.svg")