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

BCF-2117 More thorough block JSON testing #8637

Conversation

krehermann
Copy link
Contributor

This is a warmup for BCF-991 faster JSON unmarshal'ing

  • Adds tests for Transaction and TxType JSON un/marshal'ing
  • Adds the baseline benchmark

The benchmark needs to marshal and unmarshal JSON in order to easily create various size input for the number of transactions. The roundtrip did not work because we had custom UnmarshalJSON logic, but nothing for Marshaling.

Therefore, in order to write the benchmark efficiently, I had to implement some minimal JSON marshal'ing logic.
This is tested as part of the new unit tests.

Once this is merged, we can fix BCF-991 and be confidient about the change

This is a warmup for BCF-991 faster JSON unmarshal'ing

- Adds tests for Transaction and TxType JSON un/marshal'ing
- Adds the baseline benchmark

The benchmark needs to marshal and unmarshal JSON in order to easily
create various size input for the number of transactions. The roundtrip
did not work because we had custom UnmarshalJSON logic, but nothing for
Marshaling.

Therefore, in order to write the benchmark efficiently, I had to implement
some minimal JSON marshal'ing logic.
This is tested as part of the new unit tests.

Once this is merged, we can fix BCF-991 and be confidient about the change
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2023

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

@krehermann krehermann requested a review from essamhassan March 7, 2023 15:04
Co-authored-by: Jordan Krage <jmank88@gmail.com>
jmank88
jmank88 previously approved these changes Mar 7, 2023
@cl-sonarqube-production
Copy link

@krehermann krehermann merged commit 3b367c0 into develop Mar 7, 2023
@krehermann krehermann deleted the BCF-2117-Create-more-thorough-tests-before-changing-json-un-marshal branch March 7, 2023 16:45
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