Farfetch / rules-framework

A generic framework that allows defining and evaluating rules for complex business scenarios.
MIT License
41 stars 8 forks source link

Report benchmark statistics and comparison #129

Closed luispfgarces closed 1 year ago

luispfgarces commented 1 year ago

Description

Creates a benchmark statistics and comparison report. Adds a job to run benchmarks and report them to a comment on pull request.

Change checklist

Please also check the I want to contribute guidelines and make sure you have done accordingly.

Disclaimer

By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement

github-actions[bot] commented 1 year ago

Benchmark Results Report

Date & Time: 2023-03-13 00:17:50

Environment

BenchmarkDotNet Version=0.13.5

Processor=Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz,2 physical cores, 2 logical cores

Architecture=X64, Runtime=.NET 6.0.14 (6.0.1423.7309), Configuration=RELEASE

.NET CLI Version=7.0.201

Statistics

Name Parameters Mean Time Taken Std Error GC Gen0 Allocated Memory
Benchmark1.RunAsync [EnableCompilation=False] 2,315 ns 11 ns 0.0610 1624 B
Benchmark2.RunAsync [EnableCompilation=False] 7,035 ns 34 ns 0.1526 4016 B
Benchmark3.RunAsync [EnableCompilation=False] 130,206 ns 565 ns 2.9297 79220 B
Benchmark1.RunAsync [EnableCompilation=True] 2,262 ns 11 ns 0.0648 1760 B
Benchmark2.RunAsync [EnableCompilation=True] 3,467 ns 12 ns 0.0725 1976 B
Benchmark3.RunAsync [EnableCompilation=True] 91,445 ns 259 ns 1.3428 37016 B

Statistics Comparison

Name Baseline Compare Mean Time Taken
[Baseline]
Mean Time Taken
[Compare]
Mean Time Taken
[Comparison %]
Allocated Memory
[Baseline]
Allocated Memory
[Compare]
Allocated Memory
[Comparison %]
Benchmark1.RunAsync [EnableCompilation=False] [EnableCompilation=True] 2,315 ns 2,262 ns 2.33 % 1624 B 1760 B -8.37 %
Benchmark2.RunAsync [EnableCompilation=False] [EnableCompilation=True] 7,035 ns 3,467 ns 50.72 % 4016 B 1976 B 50.8 %
Benchmark3.RunAsync [EnableCompilation=False] [EnableCompilation=True] 130,206 ns 91,445 ns 29.77 % 79220 B 37016 B 53.27 %
luispfgarces commented 1 year ago

Replacing by PR #137.