Skip to content

Benchmarks#10

Merged
gfoidl merged 8 commits into
mainfrom
benchmarks
May 17, 2021
Merged

Benchmarks#10
gfoidl merged 8 commits into
mainfrom
benchmarks

Conversation

@gfoidl

@gfoidl gfoidl commented May 17, 2021

Copy link
Copy Markdown
Contributor

Fixes #2
Based on top of benchs added in #1

@gfoidl gfoidl requested a review from BenjaminAbt May 17, 2021 15:43
@BenjaminAbt

Copy link
Copy Markdown
Member

The Benchmark project is being created as nuget and published.
We should exclude it.

using DeviceDetectorNET;
using MyCSharp.HttpUserAgentParser.Providers;

namespace MyCSharp.HttpUserAgentParser.Benchmarks.LibraryComparison

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we should move the copied source of UserAgent in the current benchmark project too to compare without caching

@BenjaminAbt

Copy link
Copy Markdown
Member

CI is not triggered, but why?

fix trigger
@gfoidl

gfoidl commented May 17, 2021

Copy link
Copy Markdown
Contributor Author

The Benchmark project is being created as nuget and published.
We should exclude it.

What's the easiest way? I can't see the forest of the trees at the moment.

@BenjaminAbt

Copy link
Copy Markdown
Member

done

@BenjaminAbt

Copy link
Copy Markdown
Member

i have a better idea

@gfoidl

gfoidl commented May 17, 2021

Copy link
Copy Markdown
Contributor Author

What do you think about 5b8213f?

I verifyed it works as it should.

@BenjaminAbt

Copy link
Copy Markdown
Member

I think the explicit behavior is easier to understand / manage if we use this in other projects etc

@gfoidl

gfoidl commented May 17, 2021

Copy link
Copy Markdown
Contributor Author

Makes, sense, I'll revert this one.

@gfoidl gfoidl merged commit d2c4a82 into main May 17, 2021
@gfoidl gfoidl deleted the benchmarks branch May 17, 2021 17:58
@gfoidl

gfoidl commented May 17, 2021

Copy link
Copy Markdown
Contributor Author

Damned, I didn't look enough, now it's a merge-commit instead a squash-merge (for linear history).
The defaults did change...re-enabled squash-merging now.

@BenjaminAbt

Copy link
Copy Markdown
Member

Nooo, squad marge does not work with NerdBank GitVersioning!

@gfoidl

gfoidl commented May 17, 2021

Copy link
Copy Markdown
Contributor Author

We have this in the other repos too?
Then NerdBank GitVersioning is faulty, as squash merging should be the way to merge PRs for linear history which is much cleaner to follow (and bisect in case of). Merge commits for PRs bring every intermediate commit of a PR into main, but these should be a detail.

@BenjaminAbt

Copy link
Copy Markdown
Member

Yes, we had a large discussion in other repos and decided to not use squash merge

@gfoidl

gfoidl commented May 17, 2021

Copy link
Copy Markdown
Contributor Author

decided to not use squash merge

I missed that (can remember the discussion, but not a conclusion), and I'm not fine with not using squash merge. Merge commit ruin the history.
If NerdBank does work only with merge commit it sucks 😢

@BenjaminAbt

Copy link
Copy Markdown
Member

@gfoidl

gfoidl commented May 17, 2021

Copy link
Copy Markdown
Contributor Author

Just read the same issue.
There the NerdBank also sucks. IMO this isn't a solution for versioning, as it only works half-ways.
Do we need to publish a package for each CI build? Who will be using these packages anyway? I'd prefer a package built from main and pushed, and for PRs (to validate it's usage in another project) create some kind of preview (manually).

@BenjaminAbt

Copy link
Copy Markdown
Member

for all I care, we can only ship stable packages

@gfoidl

gfoidl commented May 17, 2021

Copy link
Copy Markdown
Contributor Author

👍🏻 agree.

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.

Add benchmarks and compare to other libraries

2 participants