Skip to content

add more MemoryCache benchmarks#1606

Merged
adamsitnik merged 4 commits intodotnet:masterfrom
adamsitnik:moreMemoryCacheBenchmarks
Dec 2, 2020
Merged

add more MemoryCache benchmarks#1606
adamsitnik merged 4 commits intodotnet:masterfrom
adamsitnik:moreMemoryCacheBenchmarks

Conversation

@adamsitnik
Copy link
Member

No description provided.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

cache.Remove(item.key);
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a SlidingExpiration test as well? The above test is for absoluteExpirationRelativeToNow AFAICT.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eerhardt we should, thanks for pointing this out! I could not find an extension method that would allow for setting SlidingExpiration so I've changed all the benchmarks to use the using pattern for adding the entries (used by the extension methods)

@adamsitnik
Copy link
Member Author

the CI failures are not related to this change, I am merging

@adamsitnik adamsitnik merged commit a6e309b into dotnet:master Dec 2, 2020
@adamsitnik adamsitnik deleted the moreMemoryCacheBenchmarks branch December 2, 2020 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants