Skip to content

BenchmarkDotNet complains about non-optimized FSharp.Test.Utilities #14913

@majocha

Description

@majocha

After building the repo clean:

git clean -xdf -e .vs
build -c Release

I'm trying to run some benchmarks from the tests\benchmarks\FCSBenchmarks folder.

Trying to run for example
dotnet run -c Release --filter *ParseProjectWithChangingMiddleFile*

gives:

// Validating benchmarks:
Assembly FSharp.Compiler.Benchmarks which defines benchmarks references non-optimized FSharp.Test.Utilities
        If you own this dependency, please, build it in RELEASE.
        If you don't, you can disable this policy by using 'config.WithOptions(ConfigOptions.DisableOptimizationsValidator)'.

I have no idea what's going on here.
As a workaround I can disable that validator.

Metadata

Metadata

Assignees

Labels

BugImpact-Low(Internal MS Team use only) Describes an issue with limited impact on existing code.

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions