Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add benchmarks for simple serialization cases #81

Merged
merged 2 commits into from
Jun 2, 2020
Merged

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Jun 2, 2020

Every library needs a BenchmarkDotNet project so this was long overdue.

Looking to get this in so we can set a base line for the changes in #75 cc @snakefoot

Method Mean Error StdDev Completed Work Items Lock Contentions Gen 0 Gen 1 Gen 2 Allocated
Empty 849.1 ns 3.22 ns 2.51 ns 0.0000 - 0.1135 - - 712 B
Minimal 1,441.0 ns 13.18 ns 11.69 ns 0.0000 - 0.1469 - - 928 B
Complex 3,913.2 ns 50.75 ns 44.99 ns 0.0000 - 0.3357 - - 2152 B
Full 167,661.3 ns 1,491.39 ns 1,322.08 ns 0.0005 - 6.5918 0.7324 - 42194 B

@Mpdreamz Mpdreamz added enhancement New feature or request v1.5.1 labels Jun 2, 2020
@apmmachine
Copy link
Contributor

apmmachine commented Jun 2, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #81 updated]

  • Start Time: 2020-06-02T14:23:58.178+0000

  • Duration: 12 min 56 sec

Test stats 🧪

Test Results
Failed 0
Passed 25
Skipped 4
Total 29

@Mpdreamz Mpdreamz force-pushed the feature/benchmarks branch from c88c30f to 0bcec18 Compare June 2, 2020 13:59
@Mpdreamz Mpdreamz merged commit be52014 into master Jun 2, 2020
@Mpdreamz Mpdreamz deleted the feature/benchmarks branch June 2, 2020 14:39
@Mpdreamz
Copy link
Member Author

Mpdreamz commented Jun 2, 2020

Numbers without Zoom running:

Method Mean Error StdDev Median Completed Work Items Lock Contentions Gen 0 Gen 1 Gen 2 Allocated
Empty 1.118 μs 0.0054 μs 0.0048 μs 1.117 μs 0.0000 - 0.1125 - - 712 B
Minimal 1.815 μs 0.0122 μs 0.0114 μs 1.808 μs 0.0000 - 0.1450 - - 928 B
Complex 4.807 μs 0.0345 μs 0.0306 μs 4.800 μs 0.0000 - 0.3357 - - 2152 B
Full 482.182 μs 40.7989 μs 116.4016 μs 448.217 μs - - - - - 41472 B

v1v added a commit to v1v/ecs-dotnet that referenced this pull request Jun 8, 2020
…utomation

* upstream/master: (28 commits)
  bump version to 1.5.1
  move to released assembly differ
  Expose Serialize(StringBuilder) overload (elastic#82)
  fix elastic#79 only inject layout renderer keys for APM if Elastic.Apm.NLog … (elastic#83)
  upgrade Bullseye from 3.0.0 to 3.3.0 (elastic#70)
  NLog EcsLayout - Added support for Log Origin (elastic#78)
  add benchmarks for simple serialization cases (elastic#81)
  update integration tests
  move to Elastic.Elasticsearch.Xunit
  NLog Ecs Layout event Enrichment (elastic#74)
  Microsoft.AspNetCore.Http.Abstractions ver. 2.1.0 has LTS (elastic#76)
  EcsLayout - Use LogEventInfo.Logger instead of hardcoded DefaultLogger (elastic#67)
  Added Beta Notice (elastic#65)
  Bump to 1.5.0
  Implement ECS schema 1.5 (elastic#60)
  Update branch name
  Bump to 1.4.4
  Increase Elastic.Apm dependency to 1.4.0 (elastic#66)
  Bump to 1.4.3
  Modify accessors to mark internal/private and to not expose outside of assembly.
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v1.5.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants