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

[v0.20] Fix IsContainerType for CompositeType and InterfaceType #1339

Merged
merged 2 commits into from
Jan 6, 2022

Conversation

SupunS
Copy link
Member

@SupunS SupunS commented Jan 5, 2022

Description

Port of dapperlabs/cadence-internal#43 to v0.20 branch


  • 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

@SupunS SupunS added the Bugfix label Jan 5, 2022
@SupunS SupunS marked this pull request as ready for review January 5, 2022 23:50
@SupunS SupunS requested a review from turbolent as a code owner January 5, 2022 23:50
@github-actions
Copy link

github-actions bot commented Jan 6, 2022

Cadence Benchstat comparison

This branch with compared with the base branch onflow:master commit 546b42e
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
RuntimeResourceDictionaryValues-216.5ms ± 3%16.5ms ± 3%~(p=0.805 n=7+7)
RuntimeFungibleTokenTransfer-21.13ms ± 1%1.45ms ±24%~(p=0.234 n=6+7)
ParseFungibleToken-2213µs ± 1%220µs ± 8%~(p=0.318 n=7+7)
ParseDeploy/byte_array-232.6ms ± 6%32.6ms ± 7%~(p=0.710 n=7+7)
ParseDeploy/decode_hex-21.41ms ± 1%1.40ms ± 2%~(p=0.710 n=7+7)
ParseInfix-211.6µs ± 8%11.2µs ± 1%~(p=0.318 n=7+7)
ParseArray-218.9ms ± 2%19.3ms ± 8%~(p=0.902 n=7+7)
QualifiedIdentifierCreation/One_level-23.22ns ± 0%3.22ns ± 0%~(p=0.517 n=7+7)
CheckContractInterfaceFungibleTokenConformance-2154µs ± 1%155µs ± 2%~(p=0.628 n=6+7)
ContractInterfaceFungibleToken-247.3µs ± 2%48.0µs ± 8%~(p=0.620 n=7+7)
NewInterpreter/new_interpreter-21.19µs ± 1%1.19µs ± 1%~(p=0.381 n=6+7)
NewInterpreter/new_sub-interpreter-22.43µs ± 5%2.41µs ± 5%~(p=0.336 n=7+7)
InterpretRecursionFib-22.75ms ± 5%2.70ms ± 2%~(p=0.535 n=7+7)
QualifiedIdentifierCreation/Three_levels-2163ns ± 1%161ns ± 0%−1.16%(p=0.001 n=7+6)
 
alloc/opdelta
RuntimeResourceDictionaryValues-24.05MB ± 0%4.05MB ± 0%~(p=0.535 n=7+7)
RuntimeFungibleTokenTransfer-2273kB ± 0%273kB ± 0%~(p=0.902 n=7+7)
QualifiedIdentifierCreation/One_level-20.00B 0.00B ~(all equal)
QualifiedIdentifierCreation/Three_levels-264.0B ± 0%64.0B ± 0%~(all equal)
CheckContractInterfaceFungibleTokenConformance-265.7kB ± 0%65.7kB ± 0%~(p=0.245 n=6+7)
ContractInterfaceFungibleToken-226.5kB ± 0%26.5kB ± 0%~(p=1.000 n=7+7)
NewInterpreter/new_interpreter-2720B ± 0%720B ± 0%~(all equal)
NewInterpreter/new_sub-interpreter-21.18kB ± 0%1.18kB ± 0%~(all equal)
InterpretRecursionFib-21.24MB ± 0%1.24MB ± 0%~(all equal)
 
allocs/opdelta
RuntimeResourceDictionaryValues-2102k ± 0%102k ± 0%~(p=0.663 n=7+7)
RuntimeFungibleTokenTransfer-24.54k ± 0%4.54k ± 0%~(p=0.083 n=5+7)
QualifiedIdentifierCreation/One_level-20.00 0.00 ~(all equal)
QualifiedIdentifierCreation/Three_levels-22.00 ± 0%2.00 ± 0%~(all equal)
CheckContractInterfaceFungibleTokenConformance-21.07k ± 0%1.07k ± 0%~(all equal)
ContractInterfaceFungibleToken-2457 ± 0%457 ± 0%~(all equal)
NewInterpreter/new_interpreter-211.0 ± 0%11.0 ± 0%~(all equal)
NewInterpreter/new_sub-interpreter-236.0 ± 0%36.0 ± 0%~(all equal)
InterpretRecursionFib-225.0k ± 0%25.0k ± 0%~(all equal)
 

@SupunS SupunS merged commit b07c80c into master Jan 6, 2022
@SupunS SupunS deleted the supun/port-internal-43 branch January 6, 2022 01:23
@turbolent turbolent restored the supun/port-internal-43 branch January 11, 2022 23:22
@turbolent turbolent deleted the supun/port-internal-43 branch January 11, 2022 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants