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

Bump onflow/atree from 0.2.0 to 0.3.0 #1508

Merged
merged 1 commit into from
Mar 16, 2022

Conversation

fxamacker
Copy link
Member

Description

Atree 0.3.0 uses new versions of CBOR and CircleHash:


  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

Atree 0.3.0 uses new versions of CBOR and CircleHash:

- fxamacker/cbor [feature/stream-mode branch] to
  March 13 commit 12f5cb4b5eb0efcd590d323ff6a292a6d4f9e36c

- fxamacker/circlehash from 0.2.0 to 0.3.0
@github-actions
Copy link

Cadence Benchstat comparison

This branch with compared with the base branch onflow:master commit 481cb23
The command for i in {1..N}; do go test ./... -run=XXX -bench=. -shuffle=on; done was used.
Bench tests were run a total of 7 times on each branch.

Results

old.txtnew.txt
time/opdelta
ContractInterfaceFungibleToken-257.1µs ± 3%58.7µs ± 3%+2.74%(p=0.038 n=7+7)
InterpretRecursionFib-23.80ms ± 2%3.87ms ± 2%+1.88%(p=0.026 n=7+7)
RuntimeFungibleTokenTransfer-21.91ms ±24%1.73ms ±20%~(p=0.535 n=7+7)
RuntimeResourceDictionaryValues-219.6ms ± 5%19.6ms ± 3%~(p=1.000 n=7+7)
ParseFungibleToken-2275µs ± 3%278µs ± 5%~(p=0.805 n=7+7)
ParseDeploy/byte_array-228.4ms ± 6%28.7ms ± 4%~(p=0.456 n=7+7)
ParseDeploy/decode_hex-21.66ms ± 2%1.65ms ± 2%~(p=0.318 n=7+7)
ParseInfix-211.8µs ± 4%11.9µs ± 2%~(p=0.534 n=7+6)
ParseArray-218.4ms ± 3%18.6ms ± 3%~(p=0.535 n=7+7)
QualifiedIdentifierCreation/One_level-23.78ns ± 2%3.80ns ± 3%~(p=0.801 n=6+7)
QualifiedIdentifierCreation/Three_levels-2203ns ± 3%207ns ± 3%~(p=0.209 n=7+7)
CheckContractInterfaceFungibleTokenConformance-2206µs ± 4%208µs ± 3%~(p=0.620 n=7+7)
NewInterpreter/new_interpreter-21.61µs ± 4%1.62µs ± 1%~(p=0.456 n=7+7)
NewInterpreter/new_sub-interpreter-23.09µs ± 3%3.14µs ± 5%~(p=0.476 n=7+7)
 
alloc/opdelta
RuntimeResourceDictionaryValues-24.05MB ± 0%4.05MB ± 0%~(p=0.710 n=7+7)
QualifiedIdentifierCreation/One_level-20.00B 0.00B ~(all equal)
QualifiedIdentifierCreation/Three_levels-264.0B ± 0%64.0B ± 0%~(all equal)
ContractInterfaceFungibleToken-226.6kB ± 0%26.6kB ± 0%~(all equal)
CheckContractInterfaceFungibleTokenConformance-266.2kB ± 0%66.2kB ± 0%~(all equal)
InterpretRecursionFib-21.26MB ± 0%1.26MB ± 0%~(p=0.875 n=7+7)
NewInterpreter/new_interpreter-2848B ± 0%848B ± 0%~(all equal)
NewInterpreter/new_sub-interpreter-21.34kB ± 0%1.34kB ± 0%~(all equal)
RuntimeFungibleTokenTransfer-2273kB ± 0%273kB ± 0%−0.02%(p=0.027 n=6+7)
 
allocs/opdelta
RuntimeFungibleTokenTransfer-24.53k ± 0%4.53k ± 0%~(p=0.569 n=7+7)
RuntimeResourceDictionaryValues-2102k ± 0%102k ± 0%~(p=0.506 n=7+6)
QualifiedIdentifierCreation/One_level-20.00 0.00 ~(all equal)
QualifiedIdentifierCreation/Three_levels-22.00 ± 0%2.00 ± 0%~(all equal)
ContractInterfaceFungibleToken-2458 ± 0%458 ± 0%~(all equal)
CheckContractInterfaceFungibleTokenConformance-21.07k ± 0%1.07k ± 0%~(all equal)
InterpretRecursionFib-226.2k ± 0%26.2k ± 0%~(all equal)
NewInterpreter/new_interpreter-213.0 ± 0%13.0 ± 0%~(all equal)
NewInterpreter/new_sub-interpreter-240.0 ± 0%40.0 ± 0%~(all equal)
 

@fxamacker fxamacker merged commit 5238cce into master Mar 16, 2022
@fxamacker fxamacker deleted the fxamacker/upgrade-atree-to-v0.3.0 branch March 16, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants