Skip to content

Conversation

@BobTheBuidler
Copy link
Owner

No description provided.

@github-actions

This comment was marked as outdated.

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 11, 2025

CodSpeed Performance Report

Merging #85 will not alter performance

Comparing default (47d1e81) with master (c2b07b8)

Summary

✅ 431 untouched
⏩ 91 skipped1

Footnotes

  1. 91 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as off-topic.

@github-actions
Copy link

Pytest Benchmark Diff

ens/base_ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_valid_name[] 0.0000017456865464410384 0.0000010153226288546041 41.84% 71.93% 1.72x
is_valid_name[a..eth] 0.00002485059613944562 0.000029845045960304467 -20.10% -16.73% 0.83x
is_valid_name[a.eth..] 0.000025656940407491814 0.000030060174876027274 -17.16% -14.65% 0.85x
is_valid_name[a.eth.] 0.0000254284943970918 0.00003009484426488977 -18.35% -15.51% 0.84x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23504692499996055 0.23897487920000912 -1.67% -1.64% 0.98x
is_valid_name[alice.eth] 0.010707293255324386 0.010905424559137993 -1.85% -1.82% 0.98x
is_valid_name[bob.eth] 0.006417210380649404 0.006745960477424124 -5.12% -4.87% 0.95x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.255480891000002 0.2365890476000004 7.39% 7.99% 1.08x
is_valid_name[subdomain.alice.eth] 0.03150057162499209 0.033656286066657985 -6.84% -6.41% 0.94x
labelhash[] 0.00013468105052157436 0.00008141829247188657 39.55% 65.42% 1.65x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.23524009000000207 0.23172296559998812 1.50% 1.52% 1.02x
labelhash[alice] 0.00793460105737573 0.0077678639999986905 2.10% 2.15% 1.02x
labelhash[bob] 0.00353756589169606 0.0034104796000010225 3.59% 3.73% 1.04x
labelhash[emoji\U0001f468\U0001f3fb] 0.287811927999951 0.25249251799998546 12.27% 13.99% 1.14x
labelhash[xn--fiqs8s] 0.02510598102563586 0.02485602514998675 1.00% 1.01% 1.01x
namehash[] 0.000009846119440869455 0.0000031924619236288953 67.58% 208.42% 3.08x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4798042947999875 0.4686744963999672 2.32% 2.37% 1.02x
namehash[alice.eth] 0.02250312044446016 0.022749687266678444 -1.10% -1.08% 0.99x
namehash[bob.eth] 0.013822087356162503 0.014059012534244486 -1.71% -1.69% 0.98x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.5075137973999972 0.4991343428000164 1.65% 1.68% 1.02x
namehash[subdomain.alice.eth] 0.06563697856250172 0.06397455731251256 2.53% 2.60% 1.03x
nameprep[] 0.000008707656829148197 0.000002976420297018976 65.82% 192.55% 2.93x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23515937119996125 0.23467481040001986 0.21% 0.21% 1.00x
nameprep[alice.eth] 0.010867978861697677 0.011184940615394125 -2.92% -2.83% 0.97x
nameprep[bob.eth] 0.006381277410256212 0.0065757715040673445 -3.05% -2.96% 0.97x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.2542903358000103 0.22903023619999202 9.93% 11.03% 1.11x
nameprep[subdomain.alice.eth] 0.03150607546875861 0.03201340587498791 -1.61% -1.58% 0.98x
parent[] 9.639391901832785e-7 8.462289372977283e-7 12.21% 13.91% 1.14x
parent[bar.eth] 0.0000036571433826890856 0.0000026176705141910478 28.42% 39.71% 1.40x
parent[eth] 0.00000199314054660668 0.0000015211250296698934 23.68% 31.03% 1.31x
parent[foo.bar.eth] 0.000004337954191587978 0.000003284450409200108 24.29% 32.08% 1.32x
parent[sub.sub2.foo.bar.eth] 0.000005120141878472655 0.000004017237900397124 21.54% 27.45% 1.27x
reverse_domain[0x0000000000000000000000000000000000000000] 0.00005114389198833817 0.000016568992822214328 67.60% 208.67% 3.09x
reverse_domain[0x1111111111111111111111111111111111111111] 0.000051992066546969717 0.000016477478613850936 68.31% 215.53% 3.16x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005212000040328569 0.000016602340517729873 68.15% 213.93% 3.14x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.000013677453842166798 0.000013944045101971124 -1.95% -1.91% 0.98x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000013679626889870278 0.000013835558954472336 -1.14% -1.13% 0.99x
address[alice.eth] 0.00001372878284825835 0.000013947940232741462 -1.60% -1.57% 0.98x
address[bob.eth] 0.000013759206713071612 0.000013869580611590514 -0.80% -0.80% 0.99x
address[emoji\U0001f468\U0001f3fb.eth] 0.000013970361902744087 0.000014132436098395605 -1.16% -1.15% 0.99x
address[subdomain.alice.eth] 0.000013720608120452 0.000013924943082988365 -1.49% -1.47% 0.99x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.0001489564145021954 0.00014721218623278034 1.17% 1.18% 1.01x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00014972734294478552 0.0001470923585250559 1.76% 1.79% 1.02x
normalize_name_ensip15[alice.eth] 0.00015107262511431256 0.0001479503869129046 2.07% 2.11% 1.02x
normalize_name_ensip15[bob.eth] 0.00014705342393828147 0.00014778266098518702 -0.50% -0.49% 1.00x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.00014693011006554338 0.0001462241079937596 0.48% 0.48% 1.00x
normalize_name_ensip15[subdomain.alice.eth] 0.00014660883740672293 0.00014636898490358072 0.16% 0.16% 1.00x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.0025401301908402874 0.0008208837758766552 67.68% 209.44% 3.09x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.0025774516753224153 0.0007932511445899246 69.22% 224.92% 3.25x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.0025709869687489117 0.0008107449461482253 68.47% 217.11% 3.17x
dns_encode_name[] 0.000006602424188192775 0.000004236911687483524 35.83% 55.83% 1.56x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23655836279999676 0.235353175799969 0.51% 0.51% 1.01x
dns_encode_name[alice.eth] 0.011082470844437213 0.010993048119567684 0.81% 0.81% 1.01x
dns_encode_name[bob.eth] 0.00675391023809793 0.006978863871622891 -3.33% -3.22% 0.97x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.25445231640003385 0.2291347262000727 9.95% 11.05% 1.11x
dns_encode_name[subdomain.alice.eth] 0.03199639756250505 0.03193418825000549 0.19% 0.19% 1.00x
estimate_auction_start_gas[labels0] 0.0000763432327957422 0.0000476923952613146 37.53% 60.07% 1.60x
estimate_auction_start_gas[labels1] 0.00007661646145666177 0.000047859562389708733 37.53% 60.09% 1.60x
estimate_auction_start_gas[labels2] 0.00006624159459882389 0.00004777332635465576 27.88% 38.66% 1.39x
is_empty_name[ ] 0.0000581170431405688 0.000041157125575236725 29.18% 41.21% 1.41x
is_empty_name[.] 0.000056518122361378655 0.00004172776228196673 26.17% 35.44% 1.35x
is_empty_name[0] 0.00005603394906041639 0.00003883058712440765 30.70% 44.30% 1.44x
is_empty_name[1] 0.00005675984517106387 0.00003984533281016665 29.80% 42.45% 1.42x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00005846607507126925 0.000039892540993408515 31.77% 46.56% 1.47x
is_empty_name[alice.eth] 0.000058154189571617673 0.00004030201073426157 30.70% 44.30% 1.44x
is_empty_name[bob.eth] 0.00005862681629444695 0.0000394300724017162 32.74% 48.69% 1.49x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.000060544408973048185 0.000041240786074905504 31.88% 46.81% 1.47x
is_empty_name[subdomain.alice.eth] 0.00005907975261197329 0.00003926056847371698 33.55% 50.48% 1.50x
is_none_or_zero_address[] 0.00004370436809305258 0.00003899038679117687 10.79% 12.09% 1.12x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.0000504888042516976 0.00004696740313694958 6.97% 7.50% 1.07x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.00005232968336428817 0.00004867425033371587 6.99% 7.51% 1.08x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005236908916963413 0.00004746157731492715 9.37% 10.34% 1.10x
is_valid_ens_name[] 0.0000018601070660831992 0.0000014543159305967448 21.82% 27.90% 1.28x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23708358799999588 0.24652617399997326 -3.98% -3.83% 0.96x
is_valid_ens_name[alice.eth] 0.010901896010874107 0.011402112782607417 -4.59% -4.39% 0.96x
is_valid_ens_name[bar] 0.000001930572614716352 0.0000014718218775785407 23.76% 31.17% 1.31x
is_valid_ens_name[baz] 0.0000020122001277425427 0.0000014663424652973029 27.13% 37.23% 1.37x
is_valid_ens_name[bob.eth] 0.006502686198673654 0.006820669322368794 -4.89% -4.66% 0.95x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.284417125799996 0.22894470739997813 19.50% 24.23% 1.24x
is_valid_ens_name[foo] 0.0000019354230493549134 0.0000014662213374017605 24.24% 32.00% 1.32x
is_valid_ens_name[subdomain.alice.eth] 0.03239620743751814 0.03335011100000074 -2.94% -2.86% 0.97x
is_valid_name[] 0.0000015785997214979554 0.000001017753645542378 35.53% 55.11% 1.55x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23646015299998452 0.24033386280000285 -1.64% -1.61% 0.98x
is_valid_name[alice.eth] 0.01068317151063948 0.01113423993478675 -4.22% -4.05% 0.96x
is_valid_name[bob.eth] 0.00643507027922175 0.006843097578944342 -6.34% -5.96% 0.94x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2566110507999838 0.23636900960000276 7.89% 8.56% 1.09x
is_valid_name[subdomain.alice.eth] 0.031602075375001704 0.03374415061292042 -6.78% -6.35% 0.94x
label_to_hash[] 0.00013559681234834547 0.00008094775158890209 40.30% 67.51% 1.68x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.23598730419996627 0.24587966999999936 -4.19% -4.02% 0.96x
label_to_hash[alice] 0.007974270595238545 0.007955045327996232 0.24% 0.24% 1.00x
label_to_hash[bob] 0.0035042701827928454 0.00352064589643289 -0.47% -0.47% 1.00x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.26185489280001095 0.24029015240000717 8.24% 8.97% 1.09x
label_to_hash[xn--fiqs8s] 0.024993628153847335 0.026368724128203142 -5.50% -5.21% 0.95x
normal_name_to_hash[] 0.0000016648533136239 9.808578447979673e-7 41.08% 69.73% 1.70x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23846085880002194 0.23960529359999327 -0.48% -0.48% 1.00x
normal_name_to_hash[alice.eth] 0.011759072623528802 0.011433565325587603 2.77% 2.85% 1.03x
normal_name_to_hash[bob.eth] 0.007350487216419777 0.007168822283689927 2.47% 2.53% 1.03x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.2797471833999907 0.22633782979999068 19.09% 23.60% 1.24x
normal_name_to_hash[subdomain.alice.eth] 0.03327201156665751 0.032964862999997714 0.92% 0.93% 1.01x
normalize_name[] 0.000008451998573207913 0.0000029456582966033178 65.15% 186.93% 2.87x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23465903579999575 0.24757908320000296 -5.51% -5.22% 0.95x
normalize_name[alice.eth] 0.010734070333326169 0.011184935467382404 -4.20% -4.03% 0.96x
normalize_name[bob.eth] 0.006454674122576967 0.006673996251605229 -3.40% -3.29% 0.97x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.26336158740000426 0.236462561999997 10.21% 11.38% 1.11x
normalize_name[subdomain.alice.eth] 0.03184950993748714 0.03308195409678935 -3.87% -3.73% 0.96x
raw_name_to_hash[] 0.000009661178474358882 0.0000031527024799485428 67.37% 206.44% 3.06x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4736514574000239 0.48815930380003464 -3.06% -2.97% 0.97x
raw_name_to_hash[alice.eth] 0.02253688208890152 0.02230303166666848 1.04% 1.05% 1.01x
raw_name_to_hash[bob.eth] 0.01375827477777294 0.013827337246568762 -0.50% -0.50% 1.00x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5258634808000124 0.463146684399976 11.93% 13.54% 1.14x
raw_name_to_hash[subdomain.alice.eth] 0.06493068506249955 0.06526095006251609 -0.51% -0.51% 0.99x
sha3_text[0] 0.00011948164293724509 0.00007464172448660625 37.53% 60.07% 1.60x
sha3_text[1] 0.00012158302093333249 0.00007503664626807534 38.28% 62.03% 1.62x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00012771172716274495 0.00008324000092373035 34.82% 53.43% 1.53x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.0001268749897116438 0.00008324565287499774 34.39% 52.41% 1.52x
sha3_text[alice.eth] 0.00012776923534852183 0.0000840473719631154 34.22% 52.02% 1.52x
sha3_text[alice] 0.00012773130822554016 0.00008335550111501306 34.74% 53.24% 1.53x
sha3_text[bob.eth] 0.00012873277267958405 0.00008327297715948202 35.31% 54.59% 1.55x
sha3_text[bob] 0.00012750254207913162 0.0000838498935491063 34.24% 52.06% 1.52x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00012900627121600986 0.00008320633550228047 35.50% 55.04% 1.55x
sha3_text[emoji\U0001f468\U0001f3fb] 0.00012837258637969182 0.00008403112432220032 34.54% 52.77% 1.53x
sha3_text[subdomain.alice.eth] 0.0001277190653339045 0.00008363878296774132 34.51% 52.70% 1.53x
sha3_text[xn--fiqs8s] 0.00012744452023455096 0.00008343262372997553 34.53% 52.75% 1.53x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.00029074463261165935 0.00025641006036971297 11.81% 13.39% 1.13x
fallback_func_abi_exists 0.00025402453655441087 0.00025330065231222483 0.28% 0.29% 1.00x
filter_by_argument_name[a] 0.0006542081946929929 0.00038148039586612955 41.69% 71.49% 1.71x
filter_by_argument_name[a+b] 0.0006730177715833128 0.0004021646563647965 40.24% 67.35% 1.67x
filter_by_argument_name[b] 0.000658414533328593 0.0003895064406316469 40.84% 69.04% 1.69x
filter_by_argument_name[c] 0.000668703231513843 0.00037820412443440043 43.44% 76.81% 1.77x
filter_by_argument_name[notfound] 0.0006467341373645263 0.00036817618782899336 43.07% 75.66% 1.76x
filter_by_argument_type[address] 0.0005857317661304262 0.0005892839182159786 -0.61% -0.60% 0.99x
filter_by_argument_type[notatype] 0.0005805298838250287 0.0005833342579076211 -0.48% -0.48% 1.00x
filter_by_argument_type[string] 0.0005831803778030863 0.0005900887546220925 -1.18% -1.17% 0.99x
filter_by_argument_type[uint+address] 0.00059285817725314 0.0005970817347106026 -0.71% -0.71% 0.99x
filter_by_argument_type[uint256] 0.0005841147789534824 0.0005893249496574797 -0.89% -0.88% 0.99x
filter_by_types[constructor] 0.000036271505300336254 0.0000388293742658357 -7.05% -6.59% 0.93x
filter_by_types[event] 0.00003641934968312546 0.00003683576024241386 -1.14% -1.13% 0.99x
filter_by_types[fallback] 0.00003956466422826236 0.00003878745392852608 1.96% 2.00% 1.02x
filter_by_types[func+event] 0.000042292761626102756 0.000041693624679187395 1.42% 1.44% 1.01x
filter_by_types[function] 0.0000367200915055649 0.000037888853785114894 -3.18% -3.08% 0.97x
filter_by_types[none] 0.00003694304775308342 0.00003704963111734805 -0.29% -0.29% 1.00x
filter_by_types[receive] 0.0000431241816737912 0.00003830643504665391 11.17% 12.58% 1.13x
find_constructor_abi_element_by_type 0.00003385020621471789 0.00003403155470707515 -0.54% -0.53% 0.99x
get_abi_element_signature[custom] 0.00005325001416587399 0.000050033935350610835 6.04% 6.43% 1.06x
get_abi_element_signature[fallback] 0.00002112971456539838 0.00002115206987145613 -0.11% -0.11% 1.00x
get_abi_element_signature[receive] 0.000028281380832864534 0.000028642158719769293 -1.28% -1.26% 0.99x
get_abi_element_signature[transfer] 0.00005821145196758756 0.00005523362554425217 5.12% 5.39% 1.05x
get_name_from_abi_element_identifier[custom] 0.000043174212309890294 0.00003837267208591682 11.12% 12.51% 1.13x
get_name_from_abi_element_identifier[fallback] 0.000011814399885525042 0.000011849488841747846 -0.30% -0.30% 1.00x
get_name_from_abi_element_identifier[func] 0.00004211503449143777 0.000038318634587309466 9.01% 9.91% 1.10x
get_name_from_abi_element_identifier[receive] 0.000018568932241456816 0.000018575863656594098 -0.04% -0.04% 1.00x
get_tuple_type_str_parts[not-tuple] 0.000022690875444098647 0.000023052554096049763 -1.59% -1.57% 0.98x
get_tuple_type_str_parts[one-dim] 0.0000718630381683462 0.000072290705992295 -0.60% -0.59% 0.99x
get_tuple_type_str_parts[plain] 0.00004754637177053785 0.00004730595661789028 0.51% 0.51% 1.01x
get_tuple_type_str_parts[two-dim] 0.00009013380974494744 0.00009077162139010779 -0.71% -0.70% 0.99x
is_address_type[address] 0.00004441675179602306 0.00004365465125544378 1.72% 1.75% 1.02x
is_address_type[array] 0.000046701227439664276 0.00004675284596012195 -0.11% -0.11% 1.00x
is_address_type[bool] 0.00004282997009300557 0.0000431369045217353 -0.72% -0.71% 0.99x
is_address_type[bytes] 0.00004290643279228957 0.00004337831332017775 -1.10% -1.09% 0.99x
is_address_type[bytes32] 0.00004459516106476578 0.00004532617901067038 -1.64% -1.61% 0.98x
is_address_type[bytes33] 0.000047305381209565794 0.0000470640631263327 0.51% 0.51% 1.01x
is_address_type[empty] 0.00004321161907314331 0.00004342824236618676 -0.50% -0.50% 1.00x
is_address_type[enum] 0.0000455320303169458 0.000045057728710438216 1.04% 1.05% 1.01x
is_address_type[int256] 0.000043983233389294214 0.0000434366184260212 1.24% 1.26% 1.01x
is_address_type[invalid] 0.00004479720683848394 0.000045609479620089815 -1.81% -1.78% 0.98x
is_address_type[string] 0.000043445826666497816 0.00004407426634786733 -1.45% -1.43% 0.99x
is_address_type[tuple-array] 0.000044880771833368 0.00004474760898859951 0.30% 0.30% 1.00x
is_address_type[tuple] 0.000043496584495667515 0.00004383981624179094 -0.79% -0.78% 0.99x
is_address_type[uint256] 0.00004584021226934937 0.00004569465956126118 0.32% 0.32% 1.00x
is_array_type[address] 0.0004042152487426746 0.0004150520688016124 -2.68% -2.61% 0.97x
is_array_type[array] 0.0004122853177726533 0.0004183283947250047 -1.47% -1.44% 0.99x
is_array_type[bool] 0.0003737654883507073 0.00038431798255266565 -2.82% -2.75% 0.97x
is_array_type[bytes] 0.0003799170498384766 0.00039241852227030454 -3.29% -3.19% 0.97x
is_array_type[bytes32] 0.00040098749312298553 0.00041619647267734027 -3.79% -3.65% 0.96x
is_array_type[bytes33] 0.00040433331299584663 0.00040950204603096063 -1.28% -1.26% 0.99x
is_array_type[empty] 0.00030687838859796025 0.00032180004783582803 -4.86% -4.64% 0.95x
is_array_type[enum] 0.0003918713328081629 0.000401119639396629 -2.36% -2.31% 0.98x
is_array_type[int256] 0.000392014454847648 0.0004092983455531398 -4.41% -4.22% 0.96x
is_array_type[invalid] 0.00040735950384348466 0.0004225997521031507 -3.74% -3.61% 0.96x
is_array_type[string] 0.0003919910654388925 0.0004096970004106229 -4.52% -4.32% 0.96x
is_array_type[tuple-array] 0.0004136677668623548 0.00041862137494724826 -1.20% -1.18% 0.99x
is_array_type[tuple] 0.0003815676643756146 0.00039123509610050936 -2.53% -2.47% 0.98x
is_array_type[uint256] 0.00040170845670393565 0.00041273681370361526 -2.75% -2.67% 0.97x
is_bool_type[address] 0.0000437140163659716 0.00004299204495115013 1.65% 1.68% 1.02x
is_bool_type[array] 0.000045086281621968104 0.00004487684891219521 0.46% 0.47% 1.00x
is_bool_type[bool] 0.00004395564210232459 0.000042991246118521887 2.19% 2.24% 1.02x
is_bool_type[bytes] 0.00004412238632383924 0.00004390102841188832 0.50% 0.50% 1.01x
is_bool_type[bytes32] 0.000042617943616557825 0.00004256688415546721 0.12% 0.12% 1.00x
is_bool_type[bytes33] 0.00004509616216888555 0.000045657300279222996 -1.24% -1.23% 0.99x
is_bool_type[empty] 0.00004317267564611489 0.00004378367673557667 -1.42% -1.40% 0.99x
is_bool_type[enum] 0.00004556714786277242 0.00004430841477036699 2.76% 2.84% 1.03x
is_bool_type[int256] 0.0000439755723266217 0.000042761636226716404 2.76% 2.84% 1.03x
is_bool_type[invalid] 0.00004488484933866041 0.000044669076880471995 0.48% 0.48% 1.00x
is_bool_type[string] 0.000043116615041940526 0.000043409424020982406 -0.68% -0.67% 0.99x
is_bool_type[tuple-array] 0.00004471809951504892 0.000045444679477083316 -1.62% -1.60% 0.98x
is_bool_type[tuple] 0.00004365992804620138 0.000042053661211801375 3.68% 3.82% 1.04x
is_bool_type[uint256] 0.000043948553993183555 0.00004294070551510366 2.29% 2.35% 1.02x
is_bytes_type[address] 0.0003146295214846921 0.00031443402021461096 0.06% 0.06% 1.00x
is_bytes_type[array] 0.0003224892826566975 0.0003191057617530781 1.05% 1.06% 1.01x
is_bytes_type[bool] 0.0002858701556058001 0.00028919658287488245 -1.16% -1.15% 0.99x
is_bytes_type[bytes] 0.0002816349204805795 0.00029119285812733835 -3.39% -3.28% 0.97x
is_bytes_type[bytes32] 0.00030878196112675484 0.0002986042196358736 3.30% 3.41% 1.03x
is_bytes_type[bytes33] 0.00032016285795040834 0.00030984934662419236 3.22% 3.33% 1.03x
is_bytes_type[empty] 0.0002795142558646189 0.0002847131180844262 -1.86% -1.83% 0.98x
is_bytes_type[enum] 0.0002894226471151103 0.00030489420908738125 -5.35% -5.07% 0.95x
is_bytes_type[int256] 0.0002970226415812543 0.00029346792223959806 1.20% 1.21% 1.01x
is_bytes_type[invalid] 0.0002807291031048363 0.00027881488119960125 0.68% 0.69% 1.01x
is_bytes_type[string] 0.0003010470323496404 0.00029407355428843075 2.32% 2.37% 1.02x
is_bytes_type[tuple-array] 0.0002836797177677225 0.0002883872985203505 -1.66% -1.63% 0.98x
is_bytes_type[tuple] 0.000290063290379841 0.00028480543774742794 1.81% 1.85% 1.02x
is_bytes_type[uint256] 0.00032216971659293774 0.00031913361164328207 0.94% 0.95% 1.01x
is_int_type[address] 0.00020000630417673512 0.00020054200418089197 -0.27% -0.27% 1.00x
is_int_type[array] 0.00020023942600380675 0.00020078111080072176 -0.27% -0.27% 1.00x
is_int_type[bool] 0.0001991469592852648 0.00020091595739921492 -0.89% -0.88% 0.99x
is_int_type[bytes] 0.00021528460555609018 0.00021140587245541178 1.80% 1.83% 1.02x
is_int_type[bytes32] 0.0002004135305099563 0.00020090762668767705 -0.25% -0.25% 1.00x
is_int_type[bytes33] 0.00020037314642909547 0.0002013468771698711 -0.49% -0.48% 1.00x
is_int_type[empty] 0.00019819838943102908 0.0002002932478888605 -1.06% -1.05% 0.99x
is_int_type[enum] 0.00022175986430494204 0.000226793303897278 -2.27% -2.22% 0.98x
is_int_type[int256] 0.0002181654543623544 0.00022909225517619153 -5.01% -4.77% 0.95x
is_int_type[invalid] 0.0002000601679594355 0.00020023366472025686 -0.09% -0.09% 1.00x
is_int_type[string] 0.00023346614964146452 0.00022459123496351696 3.80% 3.95% 1.04x
is_int_type[tuple-array] 0.00020052839611290048 0.00019862064355212803 0.95% 0.96% 1.01x
is_int_type[tuple] 0.00021696380480386166 0.00021125079182469618 2.63% 2.70% 1.03x
is_int_type[uint256] 0.00020044416894398338 0.0002007182439423012 -0.14% -0.14% 1.00x
is_probably_enum[address] 0.00006649524601452046 0.00006824521607957992 -2.63% -2.56% 0.97x
is_probably_enum[empty] 0.00006194090638221968 0.00006327452459478721 -2.15% -2.11% 0.98x
is_probably_enum[enum] 0.00006608280758497288 0.00006866216990890258 -3.90% -3.76% 0.96x
is_probably_enum[lib-dot] 0.00006750601553838842 0.00006980009910697793 -3.40% -3.29% 0.97x
is_probably_enum[lib-enum] 0.00007546608773602294 0.0000757625916382742 -0.39% -0.39% 1.00x
is_probably_enum[uint256] 0.00006670804118550729 0.00006874666014208204 -3.06% -2.97% 0.97x
is_recognized_type[address] 0.00007990005825583164 0.00008360031261421906 -4.63% -4.43% 0.96x
is_recognized_type[array] 0.00008759201814418583 0.00009186559930309745 -4.88% -4.65% 0.95x
is_recognized_type[bool] 0.00007836772821671427 0.00008727178642217436 -11.36% -10.20% 0.90x
is_recognized_type[bytes] 0.000156486794415313 0.0001633467693307358 -4.38% -4.20% 0.96x
is_recognized_type[bytes32] 0.00014886991773902666 0.0001608572228981353 -8.05% -7.45% 0.93x
is_recognized_type[bytes33] 0.00013922594421930798 0.00014468123351070133 -3.92% -3.77% 0.96x
is_recognized_type[empty] 0.00006451058904143163 0.00006508796100302969 -0.90% -0.89% 0.99x
is_recognized_type[enum] 0.00008606308053551706 0.00008971476451922218 -4.24% -4.07% 0.96x
is_recognized_type[int256] 0.00012635666520932672 0.0001341325543515173 -6.15% -5.80% 0.94x
is_recognized_type[invalid] 0.00008223216466273064 0.00008930628765831637 -8.60% -7.92% 0.92x
is_recognized_type[string] 0.00009990821769162495 0.0001084858306453785 -8.59% -7.91% 0.92x
is_recognized_type[tuple-array] 0.00008275976236916527 0.00008948535534417809 -8.13% -7.52% 0.92x
is_recognized_type[tuple] 0.00008218883303188714 0.00009297724610202254 -13.13% -11.60% 0.88x
is_recognized_type[uint256] 0.00012648717217816148 0.00013110750027200613 -3.65% -3.52% 0.96x
is_string_type[address] 0.00004374116365075797 0.000043507630053152895 0.53% 0.54% 1.01x
is_string_type[array] 0.00004483914267352883 0.00004525332352362305 -0.92% -0.92% 0.99x
is_string_type[bool] 0.00004336349018503585 0.00004392237292402855 -1.29% -1.27% 0.99x
is_string_type[bytes] 0.00004374298482570789 0.00004409747032504482 -0.81% -0.80% 0.99x
is_string_type[bytes32] 0.00004368645448913783 0.00004373457225600822 -0.11% -0.11% 1.00x
is_string_type[bytes33] 0.0000451419492129849 0.000043004733848733575 4.73% 4.97% 1.05x
is_string_type[empty] 0.000042808519470549266 0.00004315994470882712 -0.82% -0.81% 0.99x
is_string_type[enum] 0.00004688412120107155 0.000046529689955033056 0.76% 0.76% 1.01x
is_string_type[int256] 0.0000452723361271643 0.00004467956218937186 1.31% 1.33% 1.01x
is_string_type[invalid] 0.00004533875433038119 0.0000444976098281198 1.86% 1.89% 1.02x
is_string_type[string] 0.00004381799698219504 0.0000442711639219977 -1.03% -1.02% 0.99x
is_string_type[tuple-array] 0.00004502555471841841 0.000044881384177716494 0.32% 0.32% 1.00x
is_string_type[tuple] 0.00004336438675304126 0.000043918439373021156 -1.28% -1.26% 0.99x
is_string_type[uint256] 0.00004336732702870864 0.00004334542919589305 0.05% 0.05% 1.00x
is_uint_type[address] 0.0002300653529549045 0.00023102913219766173 -0.42% -0.42% 1.00x
is_uint_type[array] 0.00023269220341699736 0.00023471917607391309 -0.87% -0.86% 0.99x
is_uint_type[bool] 0.0002017482768112889 0.00020044336073124725 0.65% 0.65% 1.01x
is_uint_type[bytes] 0.00020040285734319722 0.00020129474099937853 -0.45% -0.44% 1.00x
is_uint_type[bytes32] 0.00022497733530716933 0.00022942839617111233 -1.98% -1.94% 0.98x
is_uint_type[bytes33] 0.0002326878569961641 0.00022577128450702372 2.97% 3.06% 1.03x
is_uint_type[empty] 0.0002047761666658072 0.0001980069984196688 3.31% 3.42% 1.03x
is_uint_type[enum] 0.00022379837206275456 0.00021634543336859755 3.33% 3.44% 1.03x
is_uint_type[int256] 0.000215049438184028 0.00021093447605910202 1.91% 1.95% 1.02x
is_uint_type[invalid] 0.00020074119220675655 0.00019861896165118516 1.06% 1.07% 1.01x
is_uint_type[string] 0.00022014790488752233 0.00022155743642883862 -0.64% -0.64% 0.99x
is_uint_type[tuple-array] 0.00020226637049198525 0.00020018102922423055 1.03% 1.04% 1.01x
is_uint_type[tuple] 0.00020549673323844216 0.00020106968518894964 2.15% 2.20% 1.02x
is_uint_type[uint256] 0.00023095175757599965 0.00022756723237355638 1.47% 1.49% 1.01x
length_of_array_type[dynamic] 0.00016718800280670078 0.00017283114390012798 -3.38% -3.27% 0.97x
length_of_array_type[fixed] 0.00017530392381633606 0.00018100163068671452 -3.25% -3.15% 0.97x
length_of_array_type[nested] 0.00018777439070389782 0.0001892903521540283 -0.81% -0.80% 0.99x
map_abi_data 0.006465037362974086 0.006436200901405332 0.45% 0.45% 1.00x
normalize_event_input_types 0.0004269785278251734 0.0004336468714603378 -1.56% -1.54% 0.98x
receive_func_abi_exists 0.00032297695177592293 0.0003232920913307846 -0.10% -0.10% 1.00x
strip_abi_types 0.001628487517648734 0.0016770764348650637 -2.98% -2.90% 0.97x
sub_type_of_array_type[nested] 0.0001854432701181283 0.00018961183461202593 -2.25% -2.20% 0.98x
sub_type_of_array_type[simple] 0.00017560243410606993 0.0001803551204309293 -2.71% -2.64% 0.97x

web3/_utils/blocks - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_hex_encoded_block_hash[int] 0.000020530146656492084 0.000021974527335800762 -7.04% -6.57% 0.93x
is_hex_encoded_block_hash[invalid-g] 0.00008613387545165988 0.000060664544349855516 29.57% 41.98% 1.42x
is_hex_encoded_block_hash[none] 0.000020688856646938938 0.000021737791518736376 -5.07% -4.83% 0.95x
is_hex_encoded_block_hash[short] 0.000044643548780168856 0.00002569958036998916 42.43% 73.71% 1.74x
is_hex_encoded_block_hash[too-long] 0.00004537276526425963 0.00002611022302398675 42.45% 73.77% 1.74x
is_hex_encoded_block_hash[too-short] 0.0000451430113625443 0.000025668712848566023 43.14% 75.87% 1.76x
is_hex_encoded_block_hash[valid-a] 0.00010181987278078498 0.00007232460905454838 28.97% 40.78% 1.41x
is_hex_encoded_block_hash[valid-f] 0.00009847685155091009 0.00007064960083926013 28.26% 39.39% 1.39x
is_hex_encoded_block_number[int] 0.000020908194482838803 0.000023373295274014377 -11.79% -10.55% 0.89x
is_hex_encoded_block_number[invalid-g] 0.00016549269493134833 0.000225049722111539 -35.99% -26.46% 0.74x
is_hex_encoded_block_number[max-64-a] 0.00011062452776086335 0.00008117186446200175 26.62% 36.28% 1.36x
is_hex_encoded_block_number[max-64-f] 0.00011036276141475996 0.00008268072182870717 25.08% 33.48% 1.33x
is_hex_encoded_block_number[none] 0.000020623780143481607 0.00002317885346643352 -12.39% -11.02% 0.89x
is_hex_encoded_block_number[small] 0.00009259509427787934 0.000046240383482302483 50.06% 100.25% 2.00x
is_hex_encoded_block_number[too-long] 0.00010772634064351617 0.00006272803148532394 41.77% 71.74% 1.72x
is_predefined_block_number[bytes-latest] 0.000032885990458415873 0.000029147374278433655 11.37% 12.83% 1.13x
is_predefined_block_number[bytes-pending] 0.000032964857269261477 0.000028891417837771732 12.36% 14.10% 1.14x
is_predefined_block_number[bytes-random] 0.000031286722314692784 0.00002819745663982417 9.87% 10.96% 1.11x
is_predefined_block_number[int] 0.000033527959672407215 0.00002512094873731101 25.07% 33.47% 1.33x
is_predefined_block_number[none] 0.0001244680528769912 0.00021851516046584018 -75.56% -43.04% 0.57x
is_predefined_block_number[object] 0.00015789364980268796 0.0002528454180655708 -60.14% -37.55% 0.62x
is_predefined_block_number[str-earliest] 0.0000132913189804761 0.000009312531540954152 29.94% 42.73% 1.43x
is_predefined_block_number[str-finalized] 0.000013222604997174887 0.000009437496802835691 28.63% 40.11% 1.40x
is_predefined_block_number[str-foo] 0.000013300502489455594 0.000009536639769989735 28.30% 39.47% 1.39x
is_predefined_block_number[str-latest] 0.000013306005361107103 0.000009422906197354927 29.18% 41.21% 1.41x
is_predefined_block_number[str-pending] 0.000013279897862550965 0.000009518486879275396 28.32% 39.52% 1.40x
is_predefined_block_number[str-safe] 0.000013213247946406305 0.000009417092743657204 28.73% 40.31% 1.40x
select_method_for_block_identifier[hash-bytes] 0.00005142562034487543 0.00004150761582733463 19.29% 23.89% 1.24x
select_method_for_block_identifier[hash-hexstr] 0.00013426546647269855 0.00009315256048417451 30.62% 44.14% 1.44x
select_method_for_block_identifier[invalid-none] 0.0009166127455755897 0.0010776225995243068 -17.57% -14.94% 0.85x
select_method_for_block_identifier[invalid-object] 0.0009624396042489444 0.0011240415121095547 -16.79% -14.38% 0.86x
select_method_for_block_identifier[number-hexstr] 0.00017316683884154014 0.00008312366766453933 52.00% 108.32% 2.08x
select_method_for_block_identifier[number-int] 0.00011278064460499792 0.000059742119829660875 47.03% 88.78% 1.89x
select_method_for_block_identifier[predefined-bytes] 0.000050850115796637154 0.00004383447839845639 13.80% 16.00% 1.16x
select_method_for_block_identifier[predefined-str] 0.00002780837529705032 0.000021353837689789585 23.21% 30.23% 1.30x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.00047062381122543317 0.0005473459025440201 -16.30% -14.02% 0.86x
PropertyCheckingFactory[big-valid] 0.0004701939147483709 0.0005486453963770915 -16.68% -14.30% 0.86x
PropertyCheckingFactory[inheritance] 0.0009991840849078617 0.0009725906754833224 2.66% 2.73% 1.03x
PropertyCheckingFactory[invalid] 0.000472609689677637 0.0005452291782599172 -15.37% -13.32% 0.87x
PropertyCheckingFactory[multi-normalizer] 0.0004722820004799998 0.0005553594819662688 -17.59% -14.96% 0.85x
PropertyCheckingFactory[multi-prop] 0.00046953464546143156 0.0005474857511443454 -16.60% -14.24% 0.86x
PropertyCheckingFactory[normalized] 0.00047353170372400183 0.000552324034524114 -16.64% -14.27% 0.86x
PropertyCheckingFactory[valid] 0.00126313729715583 0.0010267325976108666 18.72% 23.02% 1.23x
verify_attr[empty] 0.00010279946693030809 0.00016346328682591784 -59.01% -37.11% 0.63x
verify_attr[found-end] 0.000011171055138151739 0.00001035296452356851 7.32% 7.90% 1.08x
verify_attr[found-start] 0.000009170099595849548 0.000008049859519577103 12.22% 13.92% 1.14x
verify_attr[large-found] 0.00013856662068786478 0.00013371067859058996 3.50% 3.63% 1.04x
verify_attr[large-notfound] 0.00019940425010179992 0.0002626539404356458 -31.72% -24.08% 0.76x
verify_attr[notfound] 0.00010753263635281987 0.00016710820288322683 -55.40% -35.65% 0.64x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006571086604275841 0.0006738772156605589 -2.55% -2.49% 0.98x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.00007851517375129076 0.000022873313206541936 70.87% 243.26% 3.43x
percentile[100-90th] 0.00011180083945858428 0.00005276631868292116 52.80% 111.88% 2.12x
percentile[100k-99th] 0.03709151133333493 0.03685125181483205 0.65% 0.65% 1.01x
percentile[100k-median] 0.037221019730745514 0.03683269511110733 1.04% 1.05% 1.01x
percentile[10k-10th] 0.003759821147176173 0.003717631287316574 1.12% 1.13% 1.01x
percentile[10k-99th] 0.003881103266680571 0.003679020926198379 5.21% 5.49% 1.05x
percentile[10k-median] 0.003782574158736997 0.003641485295613504 3.73% 3.87% 1.04x
percentile[1k-99th] 0.00046813563112321353 0.0003970038442646405 15.19% 17.92% 1.18x
percentile[1M-median] 0.6003779824000504 0.5974200390000532 0.49% 0.50% 1.00x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.000012557918714214347 0.0000066993801277487 46.65% 87.45% 1.87x
to_bytes_if_hex[empty-str] 0.00032131629699685044 0.00003691876946514227 88.51% 770.33% 8.70x
to_bytes_if_hex[hexstr] 0.0003479027417305198 0.000045830961063346994 86.83% 659.10% 7.59x
to_bytes_if_hex[large-hex] 0.0003535894084422054 0.00005092367285678988 85.60% 594.35% 6.94x
to_bytes_if_hex[non-prefixed-hex] 0.00033074983097992227 0.00004261343232487501 87.12% 676.16% 7.76x
to_bytes_if_hex[nothex] 0.0004289815563294703 0.00026562504610066107 38.08% 61.50% 1.61x
to_bytes_if_hex[unicode] 0.00043473324784665176 0.0002722139551793307 37.38% 59.70% 1.60x
to_bytes_if_hex[zero] 0.00035007685067350657 0.00004574025832192908 86.93% 665.36% 7.65x
to_hex_if_bytes[bytes] 0.00023653386573465818 0.00005243450544830148 77.83% 351.10% 4.51x
to_hex_if_bytes[empty-bytes] 0.00022176816349316024 0.000040004199884969855 81.96% 454.36% 5.54x
to_hex_if_bytes[empty-str] 0.00010190900934143942 0.000190402633784662 -86.84% -46.48% 0.54x
to_hex_if_bytes[hexstr] 0.0002942347248517985 0.000023358308711125838 92.06% 1159.66% 12.60x
to_hex_if_bytes[large-bytes] 0.00023798130797574211 0.000053240166696222884 77.63% 347.00% 4.47x
to_hex_if_bytes[non-prefixed-hex] 0.00010660826486749315 0.00019362121026633906 -81.62% -44.94% 0.55x
to_hex_if_bytes[not-hex] 0.00010666461988869691 0.00019194053660108963 -79.95% -44.43% 0.56x
to_hex_if_bytes[unicode] 0.00011006366613027704 0.0001986811696157399 -80.51% -44.60% 0.55x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.00031469826509769887 0.00010391982700997155 66.98% 202.83% 3.03x
all_in_dict[empty-dict] 0.00027346513752168303 0.00007987032108987059 70.79% 242.39% 3.42x
all_in_dict[empty-list] 0.00026541763426276866 0.0000886133549674625 66.61% 199.52% 3.00x
all_in_dict[mixed-types] 0.0003247350370340985 0.00011212498113023757 65.47% 189.62% 2.90x
all_in_dict[no-overlap] 0.00028657858892407504 0.00008995991997951574 68.61% 218.56% 3.19x
all_in_dict[none-in] 0.00028763992741066233 0.00008933074407580578 68.94% 221.99% 3.22x
all_in_dict[one-in] 0.0002902579649634942 0.00009569886952274149 67.03% 203.30% 3.03x
all_in_dict[partial-overlap] 0.0003302709232578209 0.00010100978325704395 69.42% 226.97% 3.27x
all_in_dict[value-none] 0.000288733471145701 0.00009611109534082469 66.71% 200.42% 3.00x
any_in_dict[all-in] 0.00028573126411907357 0.00009173367124803346 67.90% 211.48% 3.11x
any_in_dict[empty-dict] 0.00031033678226956047 0.0000923145481376743 70.25% 236.17% 3.36x
any_in_dict[empty-list] 0.00026611792393488375 0.00008836682075456907 66.79% 201.15% 3.01x
any_in_dict[mixed-types] 0.00028633110647962245 0.00009189248306452196 67.91% 211.59% 3.12x
any_in_dict[no-overlap] 0.0003260748021755853 0.00010645972878590352 67.35% 206.29% 3.06x
any_in_dict[none-in] 0.00029360651325271823 0.00009676511438087466 67.04% 203.42% 3.03x
any_in_dict[one-in] 0.00028247767811438506 0.00008860159395090132 68.63% 218.82% 3.19x
any_in_dict[partial-overlap] 0.0002871219916971286 0.00008969726393465773 68.76% 220.10% 3.20x
any_in_dict[value-none] 0.0002849970584846049 0.0000886609063007011 68.89% 221.45% 3.21x
either_set_is_a_subset[both-empty] 0.0001682689064665418 0.0001449993809956073 13.83% 16.05% 1.16x
either_set_is_a_subset[empty-set1] 0.00016947401784057328 0.0001465723360202427 13.51% 15.62% 1.16x
either_set_is_a_subset[empty-set2] 0.00025389163299016903 0.0002491723537612118 1.86% 1.89% 1.02x
either_set_is_a_subset[identical] 0.00018886420296372093 0.00016699960493401172 11.58% 13.09% 1.13x
either_set_is_a_subset[mixed-types] 0.0001933448076111168 0.00017236906284901247 10.85% 12.17% 1.12x
either_set_is_a_subset[not-subset] 0.00027466562187493577 0.00025947237067229913 5.53% 5.86% 1.06x
either_set_is_a_subset[partial-overlap] 0.00030075865583187403 0.00028169885032290875 6.34% 6.77% 1.07x
either_set_is_a_subset[subset] 0.00019127723750997556 0.00016889582393918903 11.70% 13.25% 1.13x
either_set_is_a_subset[superset] 0.00029395915086951355 0.0002882527716201472 1.94% 1.98% 1.02x
none_in_dict[all-in] 0.0003004397020901323 0.00009238475219252328 69.25% 225.20% 3.25x
none_in_dict[empty-dict] 0.0003261094045800841 0.00009600675288223651 70.56% 239.67% 3.40x
none_in_dict[empty-list] 0.0002824322396175983 0.00009239162993634793 67.29% 205.69% 3.06x
none_in_dict[mixed-types] 0.0002994795677568027 0.00009520257312534734 68.21% 214.57% 3.15x
none_in_dict[no-overlap] 0.00034401390717870954 0.00011006855916736518 68.00% 212.55% 3.13x
none_in_dict[none-in] 0.0003064202257858035 0.00009920910966916798 67.62% 208.86% 3.09x
none_in_dict[one-in] 0.0002998621001490749 0.00009181824003327584 69.38% 226.58% 3.27x
none_in_dict[partial-overlap] 0.00030014844234337067 0.0000921951635754462 69.28% 225.56% 3.26x
none_in_dict[value-none] 0.0002982040625170665 0.00009061726154619219 69.61% 229.08% 3.29x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0014854784239225593 0.001526995786140634 -2.79% -2.72% 0.97x
attributedict_hash[flat] 0.0011487518989432093 0.0011316013502308392 1.49% 1.52% 1.02x
attributedict_hash[nested] 0.0017590566700634838 0.001792736138108174 -1.91% -1.88% 0.98x
attributedict_init[empty] 0.0000902060046950725 0.0000895407251659934 0.74% 0.74% 1.01x
attributedict_init[large] 0.00013183253245097667 0.0001341720948250275 -1.77% -1.74% 0.98x
attributedict_init[small] 0.00009560218254381457 0.00009591160832279718 -0.32% -0.32% 1.00x
mutableattributedict_delitem 0.0004040538385563276 0.00041094576539332995 -1.71% -1.68% 0.98x
mutableattributedict_setitem 0.0003477949796737392 0.0003479455538682478 -0.04% -0.04% 1.00x
namedelementonion_add 0.0292990444224125 0.028808503205672624 1.67% 1.70% 1.02x
namedelementonion_as_tuple_of_middleware 0.0001487450300629925 0.00014649558848103627 1.51% 1.54% 1.02x
namedelementonion_contains 0.000029675156064554935 0.000029535468483473414 0.47% 0.47% 1.00x
namedelementonion_getitem 0.00002684031278597246 0.00002657665145173231 0.98% 0.99% 1.01x
namedelementonion_init[callables2] 0.00013131549252308862 0.00012970388337792005 1.23% 1.24% 1.01x
namedelementonion_init[callables3] 0.0001655830458108527 0.0001648098208479677 0.47% 0.47% 1.00x
namedelementonion_init[empty] 0.000044205521269000865 0.000043893245709681 0.71% 0.71% 1.01x
namedelementonion_inject 0.027411364807221617 0.03215204656841802 -17.29% -14.74% 0.85x
namedelementonion_iter 0.00015366094575648993 0.0001538350610413986 -0.11% -0.11% 1.00x
namedelementonion_remove 0.0006645785938370005 0.0006636508920889708 0.14% 0.14% 1.00x
namedelementonion_replace 0.002641088992481228 0.0024094580761754828 8.77% 9.61% 1.10x
readableattributedict_getitem[large] 0.000016631327575685097 0.000016472360141487468 0.96% 0.97% 1.01x
readableattributedict_getitem[small] 0.000015908394048352403 0.000015666878884907067 1.52% 1.54% 1.02x
readableattributedict_init[empty] 0.00005359585892125832 0.00005263638201550614 1.79% 1.82% 1.02x
readableattributedict_init[large] 0.00008753676771037228 0.00008675357965528165 0.89% 0.90% 1.01x
readableattributedict_init[small] 0.000057616467915857196 0.00005749620071421223 0.21% 0.21% 1.00x
readableattributedict_recursive[list-in-dict] 0.0008871859612534828 0.0009028156893402398 -1.76% -1.73% 0.98x
readableattributedict_recursive[nested-dict] 0.0009194659535344947 0.00092907763548801 -1.05% -1.03% 0.99x
readableattributedict_recursive[set] 0.0004696321466168022 0.0004608885563314058 1.86% 1.90% 1.02x
tupleize_lists_nested[list-in-dict] 0.0008791856287810508 0.0008684846155779866 1.22% 1.23% 1.01x
tupleize_lists_nested[tuple-in-dict] 0.0009641846176719112 0.0009565507360309067 0.79% 0.80% 1.01x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.00033831783499202613 0.0002563286869530516 24.23% 31.99% 1.32x
simplecache_cache[100] 0.0026519571808525473 0.0019600087358134914 26.09% 35.30% 1.35x
simplecache_cache[1000] 0.027316619459473234 0.01847924464816178 32.35% 47.82% 1.48x
simplecache_eviction[10] 0.0006003204377739587 0.0005938278458239894 1.08% 1.09% 1.01x
simplecache_eviction[100] 0.005261558131578089 0.005297098064177974 -0.68% -0.67% 0.99x
simplecache_pop[10] 0.0004619911481498514 0.0003739624416493736 19.05% 23.54% 1.24x
simplecache_pop[100] 0.003762955613632874 0.0029019852389433323 22.88% 29.67% 1.30x
simplecache_retrieval[10] 0.00009426467039888394 0.00006064644850168841 35.66% 55.43% 1.55x
simplecache_retrieval[100] 0.0007917788413824866 0.00044909846472451147 43.28% 76.30% 1.76x

@github-actions
Copy link

Pytest Benchmark Diff

ens/base_ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_valid_name[] 0.0000018715032993615257 9.667705470747028e-7 48.34% 93.58% 1.94x
is_valid_name[a..eth] 0.000024895464821393843 0.000029637053598259292 -19.05% -16.00% 0.84x
is_valid_name[a.eth..] 0.000025800142409079477 0.000029912735910754048 -15.94% -13.75% 0.86x
is_valid_name[a.eth.] 0.0000253830119664169 0.000029527790692073126 -16.33% -14.04% 0.86x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23280656060001093 0.23290089080001053 -0.04% -0.04% 1.00x
is_valid_name[alice.eth] 0.01024779010309388 0.011049994186806883 -7.83% -7.26% 0.93x
is_valid_name[bob.eth] 0.00615813308695508 0.0067520552500102025 -9.64% -8.80% 0.91x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.26681576260000384 0.2441144450000138 8.51% 9.30% 1.09x
is_valid_name[subdomain.alice.eth] 0.031072664545463063 0.031775566499998575 -2.26% -2.21% 0.98x
labelhash[] 0.000135286826261491 0.00008189602888131141 39.46% 65.19% 1.65x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.22726574719999917 0.232405907999987 -2.26% -2.21% 0.98x
labelhash[alice] 0.0076592546929111814 0.007802998031999777 -1.88% -1.84% 0.98x
labelhash[bob] 0.003392092389472374 0.0034189806423603228 -0.79% -0.79% 0.99x
labelhash[emoji\U0001f468\U0001f3fb] 0.24705303519999688 0.22873664119999831 7.41% 8.01% 1.08x
labelhash[xn--fiqs8s] 0.024369038999998892 0.025404488724993256 -4.25% -4.08% 0.96x
namehash[] 0.000009649885383931972 0.0000032777066101151207 66.03% 194.41% 2.94x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4759590904000106 0.472316952999995 0.77% 0.77% 1.01x
namehash[alice.eth] 0.021856201933322456 0.022632219954542423 -3.55% -3.43% 0.97x
namehash[bob.eth] 0.013882800527778412 0.013688471041667248 1.40% 1.42% 1.01x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.5188888645999896 0.46250442360001215 10.87% 12.19% 1.12x
namehash[subdomain.alice.eth] 0.06294194937499498 0.0672089879999902 -6.78% -6.35% 0.94x
nameprep[] 0.00000844783581110351 0.000003019805125837209 64.25% 179.75% 2.80x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2313503337999691 0.23805142960000011 -2.90% -2.81% 0.97x
nameprep[alice.eth] 0.010341977278359345 0.011042189555554513 -6.77% -6.34% 0.94x
nameprep[bob.eth] 0.00626788508176025 0.006661416532466177 -6.28% -5.91% 0.94x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.2396834355999772 0.2100999634000118 12.34% 14.08% 1.14x
nameprep[subdomain.alice.eth] 0.030524789606061226 0.0324637687187348 -6.35% -5.97% 0.94x
parent[] 9.647390565021095e-7 8.365858889601141e-7 13.28% 15.32% 1.15x
parent[bar.eth] 0.000003589629411129263 0.000002462331193835524 31.40% 45.78% 1.46x
parent[eth] 0.0000019631072966565624 0.0000014521390518986189 26.03% 35.19% 1.35x
parent[foo.bar.eth] 0.000004192321711694932 0.0000030991185290910644 26.08% 35.27% 1.35x
parent[sub.sub2.foo.bar.eth] 0.000004894805877119038 0.0000039009390230772045 20.30% 25.48% 1.25x
reverse_domain[0x0000000000000000000000000000000000000000] 0.000050567215664443 0.000016497342758049785 67.38% 206.52% 3.07x
reverse_domain[0x1111111111111111111111111111111111111111] 0.000049968583802028855 0.00001633729808242606 67.30% 205.86% 3.06x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005076624444348632 0.000016397322541996816 67.70% 209.60% 3.10x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.000013823113401189785 0.000013885175297559256 -0.45% -0.45% 1.00x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00001365834734431516 0.000013726677381876306 -0.50% -0.50% 1.00x
address[alice.eth] 0.000014013445375870947 0.000013761484339140931 1.80% 1.83% 1.02x
address[bob.eth] 0.00001374007609592115 0.000013810763352822381 -0.51% -0.51% 0.99x
address[emoji\U0001f468\U0001f3fb.eth] 0.00001372516725249161 0.000013895073564670284 -1.24% -1.22% 0.99x
address[subdomain.alice.eth] 0.000013714475016363224 0.000013679240973704187 0.26% 0.26% 1.00x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.00014395575484579858 0.00014552064405611348 -1.09% -1.08% 0.99x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00014647233662491775 0.000142577433925915 2.66% 2.73% 1.03x
normalize_name_ensip15[alice.eth] 0.00014966480982667982 0.00014383220960014363 3.90% 4.06% 1.04x
normalize_name_ensip15[bob.eth] 0.00014614735397163746 0.00014500965403555638 0.78% 0.78% 1.01x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.00016039362608057475 0.0001470438847477959 8.32% 9.08% 1.09x
normalize_name_ensip15[subdomain.alice.eth] 0.00015498151848948827 0.00014563670460397566 6.03% 6.42% 1.06x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.00250110250753914 0.0008092005966674757 67.65% 209.08% 3.09x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.0025213244561392025 0.0008073285564396949 67.98% 212.30% 3.12x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.002518701665819864 0.0008209900565594715 67.40% 206.79% 3.07x
dns_encode_name[] 0.000006589944627578373 0.000004213619677102717 36.06% 56.40% 1.56x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2271126846000243 0.2396175592000418 -5.51% -5.22% 0.95x
dns_encode_name[alice.eth] 0.010729838139791208 0.011079699022222183 -3.26% -3.16% 0.97x
dns_encode_name[bob.eth] 0.006690679993376183 0.006695976150319076 -0.08% -0.08% 1.00x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.2622644668000248 0.19920701420001025 24.04% 31.65% 1.32x
dns_encode_name[subdomain.alice.eth] 0.0307450989697014 0.032552892531256816 -5.88% -5.55% 0.94x
estimate_auction_start_gas[labels0] 0.00007484471578757953 0.0000513588531717598 31.38% 45.73% 1.46x
estimate_auction_start_gas[labels1] 0.00007573677707492273 0.00005037041532238121 33.49% 50.36% 1.50x
estimate_auction_start_gas[labels2] 0.00006649529883330601 0.00005059620222142267 23.91% 31.42% 1.31x
is_empty_name[ ] 0.00005744824218872846 0.00003917583297108565 31.81% 46.64% 1.47x
is_empty_name[.] 0.00005466878698060656 0.00004065754232717495 25.63% 34.46% 1.34x
is_empty_name[0] 0.00005391208031320376 0.00003934792063415358 27.01% 37.01% 1.37x
is_empty_name[1] 0.00005344084311827165 0.00003864981294122832 27.68% 38.27% 1.38x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000057409308553742546 0.000040662285726318234 29.17% 41.19% 1.41x
is_empty_name[alice.eth] 0.00005609101828942912 0.00004057995238041802 27.65% 38.22% 1.38x
is_empty_name[bob.eth] 0.00005666677108234446 0.000042333939712007864 25.29% 33.86% 1.34x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.00005831090700968734 0.000041695868252223014 28.49% 39.85% 1.40x
is_empty_name[subdomain.alice.eth] 0.000056555031754972075 0.000040542763657196194 28.31% 39.49% 1.39x
is_none_or_zero_address[] 0.000043612360851903305 0.00003889311163520432 10.82% 12.13% 1.12x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.000047256034346274275 0.000043785459797189995 7.34% 7.93% 1.08x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.000052275393262535285 0.000044296177832090054 15.26% 18.01% 1.18x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005112612009374863 0.00004421783994839935 13.51% 15.62% 1.16x
is_valid_ens_name[] 0.0000019724549219204576 0.000001614889765500796 18.13% 22.14% 1.22x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22789221879997967 0.2370495925999876 -4.02% -3.86% 0.96x
is_valid_ens_name[alice.eth] 0.010393666427087092 0.010988685450546565 -5.72% -5.41% 0.95x
is_valid_ens_name[bar] 0.0000019393556979667256 0.000001540115289179641 20.59% 25.92% 1.26x
is_valid_ens_name[baz] 0.000001908360079961154 0.0000015301382932894907 19.82% 24.72% 1.25x
is_valid_ens_name[bob.eth] 0.006217493212500358 0.006761761639456047 -8.75% -8.05% 0.92x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.26335279500003705 0.21738506180004152 17.45% 21.15% 1.21x
is_valid_ens_name[foo] 0.000001935823710801535 0.0000016654395319481355 13.97% 16.24% 1.16x
is_valid_ens_name[subdomain.alice.eth] 0.03057804099998407 0.03217674887500266 -5.23% -4.97% 0.95x
is_valid_name[] 0.0000015739490581421022 0.0000010029709996726387 36.28% 56.93% 1.57x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22915058819999104 0.24147004400001607 -5.38% -5.10% 0.95x
is_valid_name[alice.eth] 0.010375543854176309 0.011108866131887754 -7.07% -6.60% 0.93x
is_valid_name[bob.eth] 0.006182448506170198 0.0066104949862900155 -6.92% -6.48% 0.94x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2627322675999949 0.20912774759995045 20.40% 25.63% 1.26x
is_valid_name[subdomain.alice.eth] 0.030789255575744832 0.03201217449997529 -3.97% -3.82% 0.96x
label_to_hash[] 0.000136553205564591 0.00008212132277413933 39.86% 66.28% 1.66x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.22586891339997237 0.23191029600002366 -2.67% -2.61% 0.97x
label_to_hash[alice] 0.007683396311998877 0.007794764671993107 -1.45% -1.43% 0.99x
label_to_hash[bob] 0.0034144631764646085 0.0034593530275891494 -1.31% -1.30% 0.99x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.2593476890000147 0.22724841000003834 12.38% 14.13% 1.14x
label_to_hash[xn--fiqs8s] 0.024560945880942937 0.024775784675028945 -0.87% -0.87% 0.99x
normal_name_to_hash[] 0.000001647180427792178 0.0000011162766372235117 32.23% 47.56% 1.48x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2503982054000062 0.24328411799997413 2.84% 2.92% 1.03x
normal_name_to_hash[alice.eth] 0.011492991402305386 0.01148930750000175 0.03% 0.03% 1.00x
normal_name_to_hash[bob.eth] 0.0071491754316533014 0.007005257042552098 2.01% 2.05% 1.02x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.2521833291999428 0.23372300139999425 7.32% 7.90% 1.08x
normal_name_to_hash[subdomain.alice.eth] 0.03280638154837429 0.03271330216129935 0.28% 0.28% 1.00x
normalize_name[] 0.000008276412221848836 0.0000029742299108634532 64.06% 178.27% 2.78x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22887693239999862 0.24668435040002806 -7.78% -7.22% 0.93x
normalize_name[alice.eth] 0.010338197799999187 0.011259000835162713 -8.91% -8.18% 0.92x
normalize_name[bob.eth] 0.006157183409933558 0.006650813339874255 -8.02% -7.42% 0.93x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.2570132253999873 0.2334075913999641 9.18% 10.11% 1.10x
normalize_name[subdomain.alice.eth] 0.03024462469697524 0.0329912025937773 -9.08% -8.33% 0.92x
raw_name_to_hash[] 0.000009732684482086002 0.000003236555280389986 66.75% 200.71% 3.01x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.46193527040004484 0.47034988919999704 -1.82% -1.79% 0.98x
raw_name_to_hash[alice.eth] 0.02183020789129347 0.022661527068185642 -3.81% -3.67% 0.96x
raw_name_to_hash[bob.eth] 0.013457940067558018 0.013853761547959774 -2.94% -2.86% 0.97x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.48778146480012763 0.508904895600017 -4.33% -4.15% 0.96x
raw_name_to_hash[subdomain.alice.eth] 0.06308533447059637 0.06448067056251716 -2.21% -2.16% 0.98x
sha3_text[0] 0.00011884906753567012 0.00007696999677225537 35.24% 54.41% 1.54x
sha3_text[1] 0.00011873344400977388 0.00007721976839657561 34.96% 53.76% 1.54x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00012896370871839382 0.00008504785976463287 34.05% 51.64% 1.52x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.00012816669356621954 0.00008435857999882487 34.18% 51.93% 1.52x
sha3_text[alice.eth] 0.00012918917577323466 0.00008459756696856906 34.52% 52.71% 1.53x
sha3_text[alice] 0.00012821906651045418 0.00008507835824934486 33.65% 50.71% 1.51x
sha3_text[bob.eth] 0.00012992773894110704 0.00008497036789721205 34.60% 52.91% 1.53x
sha3_text[bob] 0.00012867942872034843 0.00008474847170736355 34.14% 51.84% 1.52x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00012970641545518333 0.00008518698498929567 34.32% 52.26% 1.52x
sha3_text[emoji\U0001f468\U0001f3fb] 0.0001281576174385889 0.00008507962490823502 33.61% 50.63% 1.51x
sha3_text[subdomain.alice.eth] 0.0001282121911465443 0.0000845265659232805 34.07% 51.68% 1.52x
sha3_text[xn--fiqs8s] 0.00012816819401716432 0.00008435425018099731 34.18% 51.94% 1.52x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.00029566333497965956 0.00026216051670344354 11.33% 12.78% 1.13x
fallback_func_abi_exists 0.00025934845107904473 0.00025733093588474243 0.78% 0.78% 1.01x
filter_by_argument_name[a] 0.0006561559910491164 0.00039137187977088104 40.35% 67.66% 1.68x
filter_by_argument_name[a+b] 0.0006796806296046513 0.0004256545538240341 37.37% 59.68% 1.60x
filter_by_argument_name[b] 0.0006534289384887832 0.00039199574110332147 40.01% 66.69% 1.67x
filter_by_argument_name[c] 0.0006465369278567749 0.0003874079030891865 40.08% 66.89% 1.67x
filter_by_argument_name[notfound] 0.0006405147118654233 0.00038589939863885005 39.75% 65.98% 1.66x
filter_by_argument_type[address] 0.0005865180921545631 0.0005948386190763423 -1.42% -1.40% 0.99x
filter_by_argument_type[notatype] 0.0005814992051891827 0.0005918332937517925 -1.78% -1.75% 0.98x
filter_by_argument_type[string] 0.0005884606855784167 0.0005986060682693619 -1.72% -1.69% 0.98x
filter_by_argument_type[uint+address] 0.0005973248591076583 0.0006089282176676232 -1.94% -1.91% 0.98x
filter_by_argument_type[uint256] 0.0005828843899506142 0.0005981281367669181 -2.62% -2.55% 0.97x
filter_by_types[constructor] 0.000036388134177586344 0.0000365891150710824 -0.55% -0.55% 0.99x
filter_by_types[event] 0.00003638344436304338 0.00003677587301631123 -1.08% -1.07% 0.99x
filter_by_types[fallback] 0.00003732310376305424 0.00003754275189381957 -0.59% -0.59% 0.99x
filter_by_types[func+event] 0.0000405102372047623 0.00004185210585966573 -3.31% -3.21% 0.97x
filter_by_types[function] 0.000036681595686028414 0.000036991988875957145 -0.85% -0.84% 0.99x
filter_by_types[none] 0.00003640691082887618 0.000036797478208520106 -1.07% -1.06% 0.99x
filter_by_types[receive] 0.00004551856798156641 0.00004565040388051397 -0.29% -0.29% 1.00x
find_constructor_abi_element_by_type 0.000033536851453927355 0.000034163867635880586 -1.87% -1.84% 0.98x
get_abi_element_signature[custom] 0.00005222536207671181 0.000050102424620530485 4.06% 4.24% 1.04x
get_abi_element_signature[fallback] 0.000021031985790984808 0.00002086616251081112 0.79% 0.79% 1.01x
get_abi_element_signature[receive] 0.000028014217768161525 0.000028266169189487822 -0.90% -0.89% 0.99x
get_abi_element_signature[transfer] 0.00005684432521779667 0.000054315988651993454 4.45% 4.65% 1.05x
get_name_from_abi_element_identifier[custom] 0.00004204726423489902 0.00003879020423795581 7.75% 8.40% 1.08x
get_name_from_abi_element_identifier[fallback] 0.000011817775644178064 0.00001182467809208237 -0.06% -0.06% 1.00x
get_name_from_abi_element_identifier[func] 0.000041426590009371186 0.00003889292124945764 6.12% 6.51% 1.07x
get_name_from_abi_element_identifier[receive] 0.000018246496043262822 0.000018365322211828976 -0.65% -0.65% 0.99x
get_tuple_type_str_parts[not-tuple] 0.000023134164974860052 0.000023750062732312815 -2.66% -2.59% 0.97x
get_tuple_type_str_parts[one-dim] 0.00007541583625784048 0.00007586462175768083 -0.60% -0.59% 0.99x
get_tuple_type_str_parts[plain] 0.00004719443610555672 0.000047577045636772704 -0.81% -0.80% 0.99x
get_tuple_type_str_parts[two-dim] 0.00009408026220220786 0.0000940143963967516 0.07% 0.07% 1.00x
is_address_type[address] 0.00004356285713067706 0.000044047188143642186 -1.11% -1.10% 0.99x
is_address_type[array] 0.00004624691142871395 0.000046243030319077995 0.01% 0.01% 1.00x
is_address_type[bool] 0.00004265386303187593 0.00004291337996942383 -0.61% -0.60% 0.99x
is_address_type[bytes] 0.000042082210325788796 0.00004318578774489347 -2.62% -2.56% 0.97x
is_address_type[bytes32] 0.000044621273498113925 0.000045409695049316006 -1.77% -1.74% 0.98x
is_address_type[bytes33] 0.000045199050637812207 0.00004627733247677194 -2.39% -2.33% 0.98x
is_address_type[empty] 0.0000435561199139597 0.00004297099412737744 1.34% 1.36% 1.01x
is_address_type[enum] 0.00004436438564610128 0.00004452884321201122 -0.37% -0.37% 1.00x
is_address_type[int256] 0.000043200601821529955 0.00004391782508572675 -1.66% -1.63% 0.98x
is_address_type[invalid] 0.00004381059041078758 0.000043988485803485404 -0.41% -0.40% 1.00x
is_address_type[string] 0.00004263110187277577 0.00004332788745330276 -1.63% -1.61% 0.98x
is_address_type[tuple-array] 0.00004569433254322057 0.00004467902668347338 2.22% 2.27% 1.02x
is_address_type[tuple] 0.00004294316738133977 0.00004359616960788427 -1.52% -1.50% 0.99x
is_address_type[uint256] 0.000044609863296592435 0.00004559980130697472 -2.22% -2.17% 0.98x
is_array_type[address] 0.00038042987246764213 0.0003954123988256797 -3.94% -3.79% 0.96x
is_array_type[array] 0.00041266899791801503 0.00042218647335018697 -2.31% -2.25% 0.98x
is_array_type[bool] 0.0003493740580720925 0.00036207558810323983 -3.64% -3.51% 0.96x
is_array_type[bytes] 0.0003611091680510018 0.0003737569962665862 -3.50% -3.38% 0.97x
is_array_type[bytes32] 0.00038018171857917245 0.00039360919470785954 -3.53% -3.41% 0.97x
is_array_type[bytes33] 0.000405113508218772 0.00041674094561837866 -2.87% -2.79% 0.97x
is_array_type[empty] 0.0002882615726316071 0.00029842486603567903 -3.53% -3.41% 0.97x
is_array_type[enum] 0.00039227722283723495 0.0004025787998295137 -2.63% -2.56% 0.97x
is_array_type[int256] 0.0003700548851946739 0.0003865290464657919 -4.45% -4.26% 0.96x
is_array_type[invalid] 0.00041532487070416476 0.00042651748461364935 -2.69% -2.62% 0.97x
is_array_type[string] 0.00036805083446176214 0.0003843067286747113 -4.42% -4.23% 0.96x
is_array_type[tuple-array] 0.00041060553989608826 0.0004232151625332532 -3.07% -2.98% 0.97x
is_array_type[tuple] 0.0003567180659011228 0.00036455605620949283 -2.20% -2.15% 0.98x
is_array_type[uint256] 0.0003758863770039912 0.0003914896658736911 -4.15% -3.99% 0.96x
is_bool_type[address] 0.000043450613050779926 0.00004344053184956992 0.02% 0.02% 1.00x
is_bool_type[array] 0.0000437781012534743 0.00004465319321727756 -2.00% -1.96% 0.98x
is_bool_type[bool] 0.000042945006023892014 0.00004312916949542453 -0.43% -0.43% 1.00x
is_bool_type[bytes] 0.000043506156915366503 0.0000430295609761397 1.10% 1.11% 1.01x
is_bool_type[bytes32] 0.000043231110167618314 0.000043438256055593456 -0.48% -0.48% 1.00x
is_bool_type[bytes33] 0.00004501323890953519 0.000042820286969723314 4.87% 5.12% 1.05x
is_bool_type[empty] 0.00004312808159491677 0.00004302025842815804 0.25% 0.25% 1.00x
is_bool_type[enum] 0.000043557192580228934 0.000043574273098456684 -0.04% -0.04% 1.00x
is_bool_type[int256] 0.00004329996692877276 0.0000426801695603564 1.43% 1.45% 1.01x
is_bool_type[invalid] 0.00004390924517983512 0.00004443698272364565 -1.20% -1.19% 0.99x
is_bool_type[string] 0.0000428904943205695 0.00004345781180175004 -1.32% -1.31% 0.99x
is_bool_type[tuple-array] 0.00004351001553288378 0.00004397350761649174 -1.07% -1.05% 0.99x
is_bool_type[tuple] 0.000042363000176680476 0.000043436981615643176 -2.54% -2.47% 0.98x
is_bool_type[uint256] 0.00004310349731633196 0.0000428943787870101 0.49% 0.49% 1.00x
is_bytes_type[address] 0.00031007242456705463 0.0003056632584538099 1.42% 1.44% 1.01x
is_bytes_type[array] 0.000318107890487173 0.00030134032343107265 5.27% 5.56% 1.06x
is_bytes_type[bool] 0.0002845177631150949 0.00028692759080653377 -0.85% -0.84% 0.99x
is_bytes_type[bytes] 0.0002793392914704571 0.0002815893371725239 -0.81% -0.80% 0.99x
is_bytes_type[bytes32] 0.00029200819943785264 0.0003153638344178262 -8.00% -7.41% 0.93x
is_bytes_type[bytes33] 0.00032336979132849665 0.00030971965589815097 4.22% 4.41% 1.04x
is_bytes_type[empty] 0.00028327861098500866 0.0002829860205976946 0.10% 0.10% 1.00x
is_bytes_type[enum] 0.0002968080860094248 0.000297291571550815 -0.16% -0.16% 1.00x
is_bytes_type[int256] 0.0003022993158526376 0.0002971798365153115 1.69% 1.72% 1.02x
is_bytes_type[invalid] 0.00028472874693052675 0.0002786788562290256 2.12% 2.17% 1.02x
is_bytes_type[string] 0.000293988090752918 0.00029739251235395495 -1.16% -1.14% 0.99x
is_bytes_type[tuple-array] 0.0002795330364272223 0.00028774766503551514 -2.94% -2.85% 0.97x
is_bytes_type[tuple] 0.0002853516514333702 0.0002860633741189416 -0.25% -0.25% 1.00x
is_bytes_type[uint256] 0.0003117338514800912 0.0003279823651623086 -5.21% -4.95% 0.95x
is_int_type[address] 0.0002000331783532208 0.0001993578386963712 0.34% 0.34% 1.00x
is_int_type[array] 0.00020419686248122077 0.00020042821758409617 1.85% 1.88% 1.02x
is_int_type[bool] 0.00020160534285130178 0.00020041584733129563 0.59% 0.59% 1.01x
is_int_type[bytes] 0.00022091080750211004 0.00021747575486460668 1.55% 1.58% 1.02x
is_int_type[bytes32] 0.00019701981332280238 0.00020444954406806978 -3.77% -3.63% 0.96x
is_int_type[bytes33] 0.00019962200611728059 0.00019992557329907723 -0.15% -0.15% 1.00x
is_int_type[empty] 0.00020028949112319754 0.00019924766713903303 0.52% 0.52% 1.01x
is_int_type[enum] 0.00023253208793566892 0.00022674220557719182 2.49% 2.55% 1.03x
is_int_type[int256] 0.00022506570699838644 0.00023349687214439048 -3.75% -3.61% 0.96x
is_int_type[invalid] 0.00020027303780577855 0.0002086925416057803 -4.20% -4.03% 0.96x
is_int_type[string] 0.00022778755317790162 0.00022871449887102284 -0.41% -0.41% 1.00x
is_int_type[tuple-array] 0.0002076955991648318 0.00020046483647764547 3.48% 3.61% 1.04x
is_int_type[tuple] 0.0002146464316083602 0.00021576058670574048 -0.52% -0.52% 0.99x
is_int_type[uint256] 0.0002042318055152508 0.00019957086232437346 2.28% 2.34% 1.02x
is_probably_enum[address] 0.00006251726661694957 0.00006509718132441561 -4.13% -3.96% 0.96x
is_probably_enum[empty] 0.000058274452606004194 0.00006034901997689878 -3.56% -3.44% 0.97x
is_probably_enum[enum] 0.0000669090805090829 0.00006821536222763752 -1.95% -1.91% 0.98x
is_probably_enum[lib-dot] 0.00006753329521728633 0.00007021219236203499 -3.97% -3.82% 0.96x
is_probably_enum[lib-enum] 0.0000752543822766508 0.00007731202874025805 -2.73% -2.66% 0.97x
is_probably_enum[uint256] 0.00006257078633527697 0.00006424409748126277 -2.67% -2.60% 0.97x
is_recognized_type[address] 0.00007631412565329929 0.00008149439994369221 -6.79% -6.36% 0.94x
is_recognized_type[array] 0.00008561659772991129 0.00009107013473729846 -6.37% -5.99% 0.94x
is_recognized_type[bool] 0.00007686671628276641 0.00008207094355565272 -6.77% -6.34% 0.94x
is_recognized_type[bytes] 0.00015644808870087987 0.00016563825665941645 -5.87% -5.55% 0.94x
is_recognized_type[bytes32] 0.00015057000600589103 0.00015691989301163206 -4.22% -4.05% 0.96x
is_recognized_type[bytes33] 0.00014155306608301926 0.00014781770025175433 -4.43% -4.24% 0.96x
is_recognized_type[empty] 0.00005880885362645175 0.00006352511100604455 -8.02% -7.42% 0.93x
is_recognized_type[enum] 0.0000858156972345961 0.0000927290158446377 -8.06% -7.46% 0.93x
is_recognized_type[int256] 0.00012553958131060098 0.00013158414327293515 -4.81% -4.59% 0.95x
is_recognized_type[invalid] 0.00008572482339534073 0.00009285480268702347 -8.32% -7.68% 0.92x
is_recognized_type[string] 0.00010143873830153045 0.00010873884060353496 -7.20% -6.71% 0.93x
is_recognized_type[tuple-array] 0.00008575011264956415 0.00009267830644205185 -8.08% -7.48% 0.93x
is_recognized_type[tuple] 0.00008459749594046765 0.000091173239524304 -7.77% -7.21% 0.93x
is_recognized_type[uint256] 0.00013154278276045683 0.00013219801262701622 -0.50% -0.50% 1.00x
is_string_type[address] 0.00004265210288845118 0.000042614345172143135 0.09% 0.09% 1.00x
is_string_type[array] 0.00004436572366836218 0.000043926402314301955 0.99% 1.00% 1.01x
is_string_type[bool] 0.00004304582785275459 0.0000425989928501563 1.04% 1.05% 1.01x
is_string_type[bytes] 0.00004318472284435311 0.00004258537254608796 1.39% 1.41% 1.01x
is_string_type[bytes32] 0.00004436510667230259 0.000043213901189910695 2.59% 2.66% 1.03x
is_string_type[bytes33] 0.00004441577165280854 0.000043948559597358835 1.05% 1.06% 1.01x
is_string_type[empty] 0.00004297026037654909 0.00004320925778423068 -0.56% -0.55% 0.99x
is_string_type[enum] 0.00004674071693844103 0.0000461817602457625 1.20% 1.21% 1.01x
is_string_type[int256] 0.00004434890261969021 0.000043969546389566965 0.86% 0.86% 1.01x
is_string_type[invalid] 0.000042941825329724866 0.000044212649533891194 -2.96% -2.87% 0.97x
is_string_type[string] 0.00004326368914678992 0.00004330230627533052 -0.09% -0.09% 1.00x
is_string_type[tuple-array] 0.0000441632885642474 0.00004364660956604181 1.17% 1.18% 1.01x
is_string_type[tuple] 0.0000431901298757023 0.00004290242796384714 0.67% 0.67% 1.01x
is_string_type[uint256] 0.000042734945842619864 0.00004311927161155656 -0.90% -0.89% 0.99x
is_uint_type[address] 0.00023029524994235722 0.0002375884792424911 -3.17% -3.07% 0.97x
is_uint_type[array] 0.00022416842712125705 0.00023998117298993266 -7.05% -6.59% 0.93x
is_uint_type[bool] 0.00020233873671309874 0.0001972886947755474 2.50% 2.56% 1.03x
is_uint_type[bytes] 0.0002021065547469242 0.0002005046939388484 0.79% 0.80% 1.01x
is_uint_type[bytes32] 0.00022671619851393466 0.00021623310092414133 4.62% 4.85% 1.05x
is_uint_type[bytes33] 0.00023160340462154982 0.0002280712790286872 1.53% 1.55% 1.02x
is_uint_type[empty] 0.0002011002023969974 0.00020041059089994878 0.34% 0.34% 1.00x
is_uint_type[enum] 0.0002199709534976645 0.00021646857248185764 1.59% 1.62% 1.02x
is_uint_type[int256] 0.0002146412143860288 0.00022200893682807583 -3.43% -3.32% 0.97x
is_uint_type[invalid] 0.00020171471647197948 0.00019995958919074886 0.87% 0.88% 1.01x
is_uint_type[string] 0.00021628808270898742 0.00021521439128651933 0.50% 0.50% 1.00x
is_uint_type[tuple-array] 0.00020492292196756212 0.00019974700160751944 2.53% 2.59% 1.03x
is_uint_type[tuple] 0.00020189742963858226 0.00020545286044180012 -1.76% -1.73% 0.98x
is_uint_type[uint256] 0.0002177333219897883 0.00022074308165508197 -1.38% -1.36% 0.99x
length_of_array_type[dynamic] 0.00017044047665967218 0.00016973237910126318 0.42% 0.42% 1.00x
length_of_array_type[fixed] 0.00018425346776064378 0.0001755819468596201 4.71% 4.94% 1.05x
length_of_array_type[nested] 0.00018726755411752006 0.00018730346642010728 -0.02% -0.02% 1.00x
map_abi_data 0.00640056002189539 0.005082492687494974 20.59% 25.93% 1.26x
normalize_event_input_types 0.0004346452933047219 0.00043951920562782285 -1.12% -1.11% 0.99x
receive_func_abi_exists 0.0003202745945953355 0.00032460035565398047 -1.35% -1.33% 0.99x
strip_abi_types 0.0016338795468426193 0.0015864469133384774 2.90% 2.99% 1.03x
sub_type_of_array_type[nested] 0.00018558699346233655 0.00018929232661797412 -2.00% -1.96% 0.98x
sub_type_of_array_type[simple] 0.00018008429792908928 0.00018286255199910975 -1.54% -1.52% 0.98x

web3/_utils/blocks - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_hex_encoded_block_hash[int] 0.000020339543489392986 0.000022669246879678585 -11.45% -10.28% 0.90x
is_hex_encoded_block_hash[invalid-g] 0.00008392223681471961 0.00006160221665208714 26.60% 36.23% 1.36x
is_hex_encoded_block_hash[none] 0.000020316929601126074 0.000023189844478113276 -14.14% -12.39% 0.88x
is_hex_encoded_block_hash[short] 0.00004473534911804501 0.00002720248411812195 39.19% 64.45% 1.64x
is_hex_encoded_block_hash[too-long] 0.000045361419579941424 0.000027194591657504322 40.05% 66.80% 1.67x
is_hex_encoded_block_hash[too-short] 0.00004480640625823366 0.00002698278305161637 39.78% 66.06% 1.66x
is_hex_encoded_block_hash[valid-a] 0.0000954382686094578 0.00007223520327733548 24.31% 32.12% 1.32x
is_hex_encoded_block_hash[valid-f] 0.00009516667067024179 0.00007247917195324667 23.84% 31.30% 1.31x
is_hex_encoded_block_number[int] 0.00002043989862774655 0.000022387422763542504 -9.53% -8.70% 0.91x
is_hex_encoded_block_number[invalid-g] 0.00016443641661797553 0.00022540975501352578 -37.08% -27.05% 0.73x
is_hex_encoded_block_number[max-64-a] 0.00010674546863853607 0.00008292438067592693 22.32% 28.73% 1.29x
is_hex_encoded_block_number[max-64-f] 0.00010754288896655513 0.00008390814772717635 21.98% 28.17% 1.28x
is_hex_encoded_block_number[none] 0.000020274170591374834 0.000022379320906813076 -10.38% -9.41% 0.91x
is_hex_encoded_block_number[small] 0.00009162127419150794 0.000047657522974550324 47.98% 92.25% 1.92x
is_hex_encoded_block_number[too-long] 0.0001076096467736607 0.00006221924499700704 42.18% 72.95% 1.73x
is_predefined_block_number[bytes-latest] 0.0000332200815851496 0.000028177493388965854 15.18% 17.90% 1.18x
is_predefined_block_number[bytes-pending] 0.000032947843023797154 0.00002796010020247024 15.14% 17.84% 1.18x
is_predefined_block_number[bytes-random] 0.00003175078997746043 0.00002696332670347232 15.08% 17.76% 1.18x
is_predefined_block_number[int] 0.00003307275125576355 0.000024700924732424353 25.31% 33.89% 1.34x
is_predefined_block_number[none] 0.00012381735454192636 0.00021697845924539998 -75.24% -42.94% 0.57x
is_predefined_block_number[object] 0.00015428242719455168 0.0002522047209640547 -63.47% -38.83% 0.61x
is_predefined_block_number[str-earliest] 0.000013199026877796026 0.000010027663257268495 24.03% 31.63% 1.32x
is_predefined_block_number[str-finalized] 0.000013352026886049055 0.00001003427801746598 24.85% 33.06% 1.33x
is_predefined_block_number[str-foo] 0.00001340682109735777 0.000009788391682662509 26.99% 36.97% 1.37x
is_predefined_block_number[str-latest] 0.00001321507130299434 0.000010191460318279958 22.88% 29.67% 1.30x
is_predefined_block_number[str-pending] 0.000013219356826556235 0.00001001258397177776 24.26% 32.03% 1.32x
is_predefined_block_number[str-safe] 0.00001328596485673599 0.000010043561345076347 24.40% 32.28% 1.32x
select_method_for_block_identifier[hash-bytes] 0.00005099253752417775 0.00004261515411175481 16.43% 19.66% 1.20x
select_method_for_block_identifier[hash-hexstr] 0.0001303271835648463 0.00009478079285660003 27.27% 37.50% 1.38x
select_method_for_block_identifier[invalid-none] 0.0009185180587056986 0.0010902178714631199 -18.69% -15.75% 0.84x
select_method_for_block_identifier[invalid-object] 0.0009816513564512037 0.001136041390099229 -15.73% -13.59% 0.86x
select_method_for_block_identifier[number-hexstr] 0.00017383291897535503 0.0000892359407826518 48.67% 94.80% 1.95x
select_method_for_block_identifier[number-int] 0.0001112445160757173 0.000058087171963178473 47.78% 91.51% 1.92x
select_method_for_block_identifier[predefined-bytes] 0.00005234219626433132 0.00004340477254316713 17.07% 20.59% 1.21x
select_method_for_block_identifier[predefined-str] 0.00002866579347936051 0.00002060626590622742 28.12% 39.11% 1.39x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.00046876401159303766 0.000543503917839016 -15.94% -13.75% 0.86x
PropertyCheckingFactory[big-valid] 0.00046745218094334373 0.0005436694974413678 -16.30% -14.02% 0.86x
PropertyCheckingFactory[inheritance] 0.0009996959317216622 0.0009688014290669693 3.09% 3.19% 1.03x
PropertyCheckingFactory[invalid] 0.00046781767990254153 0.0005426234225934409 -15.99% -13.79% 0.86x
PropertyCheckingFactory[multi-normalizer] 0.0004660918014073106 0.0005444495418246067 -16.81% -14.39% 0.86x
PropertyCheckingFactory[multi-prop] 0.0004738193802829233 0.0005464998561279799 -15.34% -13.30% 0.87x
PropertyCheckingFactory[normalized] 0.0004709733096431102 0.0005441190936569583 -15.53% -13.44% 0.87x
PropertyCheckingFactory[valid] 0.0012640969542996915 0.001019161731993592 19.38% 24.03% 1.24x
verify_attr[empty] 0.00010122475717687126 0.00016009754423469095 -58.16% -36.77% 0.63x
verify_attr[found-end] 0.000011546852695623468 0.000009732739482325596 15.71% 18.64% 1.19x
verify_attr[found-start] 0.000009503031598456772 0.000007232827333501541 23.89% 31.39% 1.31x
verify_attr[large-found] 0.0001353727243438105 0.00013651270891265865 -0.84% -0.84% 0.99x
verify_attr[large-notfound] 0.00019831931102574856 0.00025993336626470146 -31.07% -23.70% 0.76x
verify_attr[notfound] 0.00010696215600051758 0.00016181657324929643 -51.28% -33.90% 0.66x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006534232961721404 0.0006520129574938866 0.22% 0.22% 1.00x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.00007823736004424547 0.000022650113657327546 71.05% 245.42% 3.45x
percentile[100-90th] 0.0001116300880858654 0.000051653369345378305 53.73% 116.11% 2.16x
percentile[100k-99th] 0.03714443411110079 0.03688797835715312 0.69% 0.70% 1.01x
percentile[100k-median] 0.03709454969231711 0.03695017803705822 0.39% 0.39% 1.00x
percentile[10k-10th] 0.0038040083538484954 0.003668752573528376 3.56% 3.69% 1.04x
percentile[10k-99th] 0.003692683858738591 0.0036305809598490045 1.68% 1.71% 1.02x
percentile[10k-median] 0.003710053610477482 0.0036596626617617124 1.36% 1.38% 1.01x
percentile[1k-99th] 0.00046733660398957894 0.0004002891978836364 14.35% 16.75% 1.17x
percentile[1M-median] 0.6207792104000418 0.616887646800069 0.63% 0.63% 1.01x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.00001274192611686576 0.000006755145641409166 46.98% 88.63% 1.89x
to_bytes_if_hex[empty-str] 0.0003107082367410342 0.00003789059189383588 87.81% 720.01% 8.20x
to_bytes_if_hex[hexstr] 0.0003395507837264579 0.0000472907301186713 86.07% 618.01% 7.18x
to_bytes_if_hex[large-hex] 0.0003468783093353029 0.000051759637578740194 85.08% 570.17% 6.70x
to_bytes_if_hex[non-prefixed-hex] 0.00032222455555778166 0.00004466960639739619 86.14% 621.35% 7.21x
to_bytes_if_hex[nothex] 0.00041961596003152354 0.0002659909447770678 36.61% 57.76% 1.58x
to_bytes_if_hex[unicode] 0.00042265396619130155 0.00027688440998868707 34.49% 52.65% 1.53x
to_bytes_if_hex[zero] 0.00034117364603686415 0.000047250571931440775 86.15% 622.05% 7.22x
to_hex_if_bytes[bytes] 0.00022476297472880414 0.00004991130302563892 77.79% 350.32% 4.50x
to_hex_if_bytes[empty-bytes] 0.00020897922552074477 0.00003862953923489449 81.52% 440.98% 5.41x
to_hex_if_bytes[empty-str] 0.00010375938309196639 0.00018786567660183294 -81.06% -44.77% 0.55x
to_hex_if_bytes[hexstr] 0.0002775797497787906 0.000023280817472195287 91.61% 1092.31% 11.92x
to_hex_if_bytes[large-bytes] 0.0002267829033302847 0.000052920489270360725 76.66% 328.54% 4.29x
to_hex_if_bytes[non-prefixed-hex] 0.00010527676453813395 0.00018986226239277667 -80.35% -44.55% 0.55x
to_hex_if_bytes[not-hex] 0.00010613872902114398 0.00019327865401165808 -82.10% -45.09% 0.55x
to_hex_if_bytes[unicode] 0.00011152287358231541 0.0001989878031448314 -78.43% -43.95% 0.56x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.00030814174729819663 0.00011035780718458123 64.19% 179.22% 2.79x
all_in_dict[empty-dict] 0.0002684162014236554 0.00007587542866998529 71.73% 253.76% 3.54x
all_in_dict[empty-list] 0.0002580504570398443 0.00009149166277293501 64.55% 182.05% 2.82x
all_in_dict[mixed-types] 0.00030933424364754683 0.00010582304849323226 65.79% 192.31% 2.92x
all_in_dict[no-overlap] 0.00028036130521823883 0.00009117817298348737 67.48% 207.49% 3.07x
all_in_dict[none-in] 0.0002803075883241433 0.00009182875883898316 67.24% 205.25% 3.05x
all_in_dict[one-in] 0.000283175633353867 0.00009829457659001168 65.29% 188.09% 2.88x
all_in_dict[partial-overlap] 0.0003172368650908815 0.00010426022492454476 67.13% 204.27% 3.04x
all_in_dict[value-none] 0.0002845887045609782 0.00009819355843361342 65.50% 189.82% 2.90x
any_in_dict[all-in] 0.00028155863003638553 0.00008967175074659384 68.15% 213.99% 3.14x
any_in_dict[empty-dict] 0.00030883943998600584 0.00009830762514826037 68.17% 214.16% 3.14x
any_in_dict[empty-list] 0.0002610963975589145 0.00009129111713396128 65.04% 186.00% 2.86x
any_in_dict[mixed-types] 0.00027909612714139485 0.00008940618518545377 67.97% 212.17% 3.12x
any_in_dict[no-overlap] 0.0003254323566986927 0.00010973320638133567 66.28% 196.57% 2.97x
any_in_dict[none-in] 0.00029063485060018264 0.00009832717200495949 66.17% 195.58% 2.96x
any_in_dict[one-in] 0.000279177328898812 0.00008888906140676834 68.16% 214.07% 3.14x
any_in_dict[partial-overlap] 0.0002790763953366444 0.00008935295415643452 67.98% 212.33% 3.12x
any_in_dict[value-none] 0.00027907014722351476 0.00008796591275037158 68.48% 217.25% 3.17x
either_set_is_a_subset[both-empty] 0.00016810346589633221 0.0001493858047776342 11.13% 12.53% 1.13x
either_set_is_a_subset[empty-set1] 0.00016858195849421074 0.00015093846819055052 10.47% 11.69% 1.12x
either_set_is_a_subset[empty-set2] 0.0002528699277104252 0.0002457325089584562 2.82% 2.90% 1.03x
either_set_is_a_subset[identical] 0.00018893993820678331 0.0001672803638287509 11.46% 12.95% 1.13x
either_set_is_a_subset[mixed-types] 0.00019240652081622037 0.00016866888838798272 12.34% 14.07% 1.14x
either_set_is_a_subset[not-subset] 0.0002715266070276662 0.0002524889528510288 7.01% 7.54% 1.08x
either_set_is_a_subset[partial-overlap] 0.0003070153087783864 0.0002806913501684164 8.57% 9.38% 1.09x
either_set_is_a_subset[subset] 0.0001961085462698789 0.0001680886794677812 14.29% 16.67% 1.17x
either_set_is_a_subset[superset] 0.00030502338274039734 0.0002895846562310855 5.06% 5.33% 1.05x
none_in_dict[all-in] 0.0002970063689221612 0.0000898528967713846 69.75% 230.55% 3.31x
none_in_dict[empty-dict] 0.0003227040473745617 0.0000945073725275137 70.71% 241.46% 3.41x
none_in_dict[empty-list] 0.0002758638086522185 0.00008666594720967967 68.58% 218.31% 3.18x
none_in_dict[mixed-types] 0.0002964039458889426 0.0000899439072270493 69.65% 229.54% 3.30x
none_in_dict[no-overlap] 0.00034126536676951574 0.00010608797889624243 68.91% 221.68% 3.22x
none_in_dict[none-in] 0.0003037446556179932 0.00009454657149731602 68.87% 221.26% 3.21x
none_in_dict[one-in] 0.00029541457823010375 0.00008825707926881272 70.12% 234.72% 3.35x
none_in_dict[partial-overlap] 0.000297711767492785 0.000089026625954402 70.10% 234.41% 3.34x
none_in_dict[value-none] 0.00029533494441060974 0.00008837717982473416 70.08% 234.18% 3.34x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0014842648866524907 0.0015134178354939192 -1.96% -1.93% 0.98x
attributedict_hash[flat] 0.001104420053268363 0.0011097554935785832 -0.48% -0.48% 1.00x
attributedict_hash[nested] 0.001746696425349291 0.001743955032867127 0.16% 0.16% 1.00x
attributedict_init[empty] 0.00008667123480195049 0.00008702672159486585 -0.41% -0.41% 1.00x
attributedict_init[large] 0.0001268976288551197 0.0001279822478706803 -0.85% -0.85% 0.99x
attributedict_init[small] 0.00009338693636209091 0.00009293811435355279 0.48% 0.48% 1.00x
mutableattributedict_delitem 0.00040282385064406123 0.00041686555503123537 -3.49% -3.37% 0.97x
mutableattributedict_setitem 0.00033615857216773293 0.0003407631328315212 -1.37% -1.35% 0.99x
namedelementonion_add 0.02920907960001782 0.02620218648462644 10.29% 11.48% 1.11x
namedelementonion_as_tuple_of_middleware 0.00015212497046918896 0.00014981433086081803 1.52% 1.54% 1.02x
namedelementonion_contains 0.00003012784986917926 0.000030421311368548592 -0.97% -0.96% 0.99x
namedelementonion_getitem 0.000026582333595010056 0.00002655039552702182 0.12% 0.12% 1.00x
namedelementonion_init[callables2] 0.00012665722542354804 0.0001255284511310664 0.89% 0.90% 1.01x
namedelementonion_init[callables3] 0.00015871478289203382 0.00015809802800564684 0.39% 0.39% 1.00x
namedelementonion_init[empty] 0.000042903023927878016 0.00004325334111411722 -0.82% -0.81% 0.99x
namedelementonion_inject 0.033525281250027614 0.01094913083333419 67.34% 206.19% 3.06x
namedelementonion_iter 0.0001546811036329528 0.00015387415223442445 0.52% 0.52% 1.01x
namedelementonion_remove 0.0006764495310341678 0.000654288577109457 3.28% 3.39% 1.03x
namedelementonion_replace 0.002453042288212409 0.002473116346833839 -0.82% -0.81% 0.99x
readableattributedict_getitem[large] 0.000015223753236373226 0.000015207001598763704 0.11% 0.11% 1.00x
readableattributedict_getitem[small] 0.000014531803793273798 0.000014569454222099937 -0.26% -0.26% 1.00x
readableattributedict_init[empty] 0.000052061619437662495 0.00005176957327141755 0.56% 0.56% 1.01x
readableattributedict_init[large] 0.00009006785432240601 0.00008853558940729342 1.70% 1.73% 1.02x
readableattributedict_init[small] 0.00005606599656091185 0.000057436203279222465 -2.44% -2.39% 0.98x
readableattributedict_recursive[list-in-dict] 0.0008895155287121592 0.0008969822782330236 -0.84% -0.83% 0.99x
readableattributedict_recursive[nested-dict] 0.0009257914028450821 0.0009217192098755791 0.44% 0.44% 1.00x
readableattributedict_recursive[set] 0.0004708938530211347 0.000481749240019306 -2.31% -2.25% 0.98x
tupleize_lists_nested[list-in-dict] 0.0008638334685261157 0.0008573032079170569 0.76% 0.76% 1.01x
tupleize_lists_nested[tuple-in-dict] 0.0009584443758091181 0.0009410602330306724 1.81% 1.85% 1.02x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.00034018938990863226 0.00025301553819597194 25.63% 34.45% 1.34x
simplecache_cache[100] 0.0026506955040405213 0.0019162886826926786 27.71% 38.32% 1.38x
simplecache_cache[1000] 0.027250001594586286 0.018883517094322226 30.70% 44.31% 1.44x
simplecache_eviction[10] 0.0005950889030816519 0.0005847204730426425 1.74% 1.77% 1.02x
simplecache_eviction[100] 0.005252307423277324 0.005191821610540165 1.15% 1.17% 1.01x
simplecache_pop[10] 0.00046106045380665345 0.0003644614886504768 20.95% 26.50% 1.27x
simplecache_pop[100] 0.0037577135094433852 0.0028867970850488343 23.18% 30.17% 1.30x
simplecache_retrieval[10] 0.00009157349582191116 0.000057330216905588314 37.39% 59.73% 1.60x
simplecache_retrieval[100] 0.0007829756466816768 0.00045219523592462284 42.25% 73.15% 1.73x

@github-actions
Copy link

Pytest Benchmark Diff

ens/base_ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_valid_name[] 0.0000018011857617790403 0.000001012042027497152 43.81% 77.98% 1.78x
is_valid_name[a..eth] 0.000024691564126182624 0.000029526787168406096 -19.58% -16.38% 0.84x
is_valid_name[a.eth..] 0.000025385166223674184 0.000029771618335433816 -17.28% -14.73% 0.85x
is_valid_name[a.eth.] 0.000025159528401130713 0.00002961899991749643 -17.72% -15.06% 0.85x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22891645219997372 0.2385449055999743 -4.21% -4.04% 0.96x
is_valid_name[alice.eth] 0.01056292779348234 0.011046208489128285 -4.58% -4.38% 0.96x
is_valid_name[bob.eth] 0.006364159650001255 0.006592413828950103 -3.59% -3.46% 0.97x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.25388946159998793 0.25754466720002256 -1.44% -1.42% 0.99x
is_valid_name[subdomain.alice.eth] 0.03090471754545075 0.031672834062483446 -2.49% -2.43% 0.98x
labelhash[] 0.00013511268787054232 0.00008300531431179271 38.57% 62.78% 1.63x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.22926374699998178 0.23107158220004748 -0.79% -0.78% 0.99x
labelhash[alice] 0.007774146023995854 0.00804969785599951 -3.54% -3.42% 0.97x
labelhash[bob] 0.0035027121130721266 0.0034323587827582835 2.01% 2.05% 1.02x
labelhash[emoji\U0001f468\U0001f3fb] 0.27780635519998215 0.2550180019999971 8.20% 8.94% 1.09x
labelhash[xn--fiqs8s] 0.024475601952379595 0.025347641874998317 -3.56% -3.44% 0.97x
namehash[] 0.000009831138992389312 0.0000032800506819203672 66.64% 199.73% 3.00x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4653964134000262 0.4707316597999579 -1.15% -1.13% 0.99x
namehash[alice.eth] 0.022251161369556783 0.022912138977279606 -2.97% -2.88% 0.97x
namehash[bob.eth] 0.01344228474999909 0.013988599534247616 -4.06% -3.91% 0.96x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.5047944449999932 0.511971788400001 -1.42% -1.40% 0.99x
namehash[subdomain.alice.eth] 0.06423983482350462 0.06498447424998943 -1.16% -1.15% 0.99x
nameprep[] 0.00000868234079413504 0.000002993759983520644 65.52% 190.01% 2.90x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22496192480004992 0.2349781001999645 -4.45% -4.26% 0.96x
nameprep[alice.eth] 0.010466386958759143 0.010945833833322165 -4.58% -4.38% 0.96x
nameprep[bob.eth] 0.0061838634240474035 0.00657083458441604 -6.26% -5.89% 0.94x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.27008306639997953 0.25779972440000165 4.55% 4.76% 1.05x
nameprep[subdomain.alice.eth] 0.030485805909093375 0.03214549903125885 -5.44% -5.16% 0.95x
parent[] 9.783962943159102e-7 8.614478879399461e-7 11.95% 13.58% 1.14x
parent[bar.eth] 0.000003641617314895052 0.0000025347793040070674 30.39% 43.67% 1.44x
parent[eth] 0.0000019919887100895073 0.0000015567047682291133 21.85% 27.96% 1.28x
parent[foo.bar.eth] 0.000004265751194255072 0.0000032206008280969986 24.50% 32.45% 1.32x
parent[sub.sub2.foo.bar.eth] 0.000004995641273415662 0.000004057275586795291 18.78% 23.13% 1.23x
reverse_domain[0x0000000000000000000000000000000000000000] 0.000050379980856876806 0.00001660066363039783 67.05% 203.48% 3.03x
reverse_domain[0x1111111111111111111111111111111111111111] 0.00005132815779673277 0.000016318830228570735 68.21% 214.53% 3.15x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005063969487875024 0.00001644578442819739 67.52% 207.92% 3.08x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.000013913132076148318 0.000014155194524534117 -1.74% -1.71% 0.98x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000013737479885208207 0.000013815400343689546 -0.57% -0.56% 0.99x
address[alice.eth] 0.000014236913782565722 0.000014690111897020389 -3.18% -3.09% 0.97x
address[bob.eth] 0.000013833172236719534 0.000013938803411569988 -0.76% -0.76% 0.99x
address[emoji\U0001f468\U0001f3fb.eth] 0.000013939086666184496 0.000013976613354572416 -0.27% -0.27% 1.00x
address[subdomain.alice.eth] 0.000013705981243911388 0.00001474171925928159 -7.56% -7.03% 0.93x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.0001462437925448762 0.00014472404831648964 1.04% 1.05% 1.01x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00014612605179851673 0.00014546373888384197 0.45% 0.46% 1.00x
normalize_name_ensip15[alice.eth] 0.00015209058559739183 0.0001470869296833333 3.29% 3.40% 1.03x
normalize_name_ensip15[bob.eth] 0.0001463026949022793 0.00014592053672863364 0.26% 0.26% 1.00x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.0001578721027752233 0.0001442368938205161 8.64% 9.45% 1.09x
normalize_name_ensip15[subdomain.alice.eth] 0.00014616971125534412 0.0001475120932203171 -0.92% -0.91% 0.99x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.002465313863635259 0.0007998267654436582 67.56% 208.23% 3.08x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.0024997582813291656 0.0007934717694998485 68.26% 215.04% 3.15x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.0024941796272068537 0.000799068804261276 67.96% 212.14% 3.12x
dns_encode_name[] 0.000006603723099935239 0.00000430271858421276 34.84% 53.48% 1.53x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23543305520001923 0.23239095519998046 1.29% 1.31% 1.01x
dns_encode_name[alice.eth] 0.010698572731195283 0.011110473857145704 -3.85% -3.71% 0.96x
dns_encode_name[bob.eth] 0.006618880569538197 0.006584873046063565 0.51% 0.52% 1.01x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.2628501282000343 0.26481394779993933 -0.75% -0.74% 0.99x
dns_encode_name[subdomain.alice.eth] 0.03082264206060162 0.03241020490323506 -5.15% -4.90% 0.95x
estimate_auction_start_gas[labels0] 0.00007602043929717292 0.000051505618221346344 32.25% 47.60% 1.48x
estimate_auction_start_gas[labels1] 0.0000757973271348094 0.000051399747253668076 32.19% 47.47% 1.47x
estimate_auction_start_gas[labels2] 0.00006780011261159246 0.00005352895025472189 21.05% 26.66% 1.27x
is_empty_name[ ] 0.000056562740264152885 0.00003953299566077809 30.11% 43.08% 1.43x
is_empty_name[.] 0.00005499476730857327 0.00004107337519679087 25.31% 33.89% 1.34x
is_empty_name[0] 0.00005594752645257139 0.000040510190293790406 27.59% 38.11% 1.38x
is_empty_name[1] 0.00005633378451455997 0.0000397251392432257 29.48% 41.81% 1.42x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00005811917466414868 0.000041215544015790936 29.08% 41.01% 1.41x
is_empty_name[alice.eth] 0.000058528664197750666 0.000039801980548218136 32.00% 47.05% 1.47x
is_empty_name[bob.eth] 0.00005990297140097205 0.00003998171717335307 33.26% 49.83% 1.50x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.000058788102333028174 0.000041262624692281694 29.81% 42.47% 1.42x
is_empty_name[subdomain.alice.eth] 0.000057232928777057355 0.0000406470522155382 28.98% 40.80% 1.41x
is_none_or_zero_address[] 0.00004352935222135466 0.00004131214269020937 5.09% 5.37% 1.05x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.00005174602069055835 0.000045407967720561813 12.25% 13.96% 1.14x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.00005525498059113937 0.000046978805423074484 14.98% 17.62% 1.18x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005480261051442323 0.00004601815694157767 16.03% 19.09% 1.19x
is_valid_ens_name[] 0.0000018254295096315085 0.000001440050246507401 21.11% 26.76% 1.27x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23211377259999608 0.23700411980003083 -2.11% -2.06% 0.98x
is_valid_ens_name[alice.eth] 0.010541145031263946 0.011363986206531437 -7.81% -7.24% 0.93x
is_valid_ens_name[bar] 0.0000019074813658265047 0.0000014520386235449993 23.88% 31.37% 1.31x
is_valid_ens_name[baz] 0.0000018691338313454074 0.0000014611290515896308 21.83% 27.92% 1.28x
is_valid_ens_name[bob.eth] 0.006261674293757835 0.006699870493502818 -7.00% -6.54% 0.93x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.2570131267999841 0.23693765119996896 7.81% 8.47% 1.08x
is_valid_ens_name[foo] 0.0000019087127870171714 0.0000014491100319774467 24.08% 31.72% 1.32x
is_valid_ens_name[subdomain.alice.eth] 0.030976347454573745 0.032726089161307696 -5.65% -5.35% 0.95x
is_valid_name[] 0.000001590014912332663 0.0000010396525405659059 34.61% 52.94% 1.53x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.24680700899998556 0.24065157519999048 2.49% 2.56% 1.03x
is_valid_name[alice.eth] 0.010379094618560274 0.01086341043955954 -4.67% -4.46% 0.96x
is_valid_name[bob.eth] 0.006248761745207343 0.007014415469786595 -12.25% -10.92% 0.89x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.26694237239998986 0.2374998325999968 11.03% 12.40% 1.12x
is_valid_name[subdomain.alice.eth] 0.031358760843765765 0.0332169739687771 -5.93% -5.59% 0.94x
label_to_hash[] 0.00013694604291776332 0.0000829445860902681 39.43% 65.11% 1.65x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.23412997140007974 0.23403880200007735 0.04% 0.04% 1.00x
label_to_hash[alice] 0.007791175646156472 0.00792615815322506 -1.73% -1.70% 0.98x
label_to_hash[bob] 0.0035003578723359517 0.0035174266441350688 -0.49% -0.49% 1.00x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.27704180119994815 0.25522000079999996 7.88% 8.55% 1.09x
label_to_hash[xn--fiqs8s] 0.0244446208095204 0.024909623474997034 -1.90% -1.87% 0.98x
normal_name_to_hash[] 0.0000016726760505676373 9.946127852194481e-7 40.54% 68.17% 1.68x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2320798377999381 0.24514942699997846 -5.63% -5.33% 0.95x
normal_name_to_hash[alice.eth] 0.011731224954016512 0.011608147942529965 1.05% 1.06% 1.01x
normal_name_to_hash[bob.eth] 0.007269907940750878 0.007171754014502371 1.35% 1.37% 1.01x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.2764800216000367 0.24215623280001636 12.41% 14.17% 1.14x
normal_name_to_hash[subdomain.alice.eth] 0.032522542129028456 0.03333603870967841 -2.50% -2.44% 0.98x
normalize_name[] 0.000008371264702257068 0.000002982546736312356 64.37% 180.68% 2.81x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22592989859999763 0.23371350679999522 -3.45% -3.33% 0.97x
normalize_name[alice.eth] 0.010344491618541762 0.010952642692298188 -5.88% -5.55% 0.94x
normalize_name[bob.eth] 0.006294112382731866 0.006633157746759994 -5.39% -5.11% 0.95x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.25983166999999413 0.23714669860000867 8.73% 9.57% 1.10x
normalize_name[subdomain.alice.eth] 0.030616618545460977 0.03249298329031321 -6.13% -5.77% 0.94x
raw_name_to_hash[] 0.000009771573927816642 0.000003262719726767742 66.61% 199.49% 2.99x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4632128893999834 0.468002881800021 -1.03% -1.02% 0.99x
raw_name_to_hash[alice.eth] 0.022030199297877844 0.022480541688886056 -2.04% -2.00% 0.98x
raw_name_to_hash[bob.eth] 0.013596473702692935 0.013691345904119658 -0.70% -0.69% 0.99x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5082538115999341 0.5165197360000547 -1.63% -1.60% 0.98x
raw_name_to_hash[subdomain.alice.eth] 0.06301821711769448 0.06503534937499467 -3.20% -3.10% 0.97x
sha3_text[0] 0.00011878752026887968 0.00007582503345210032 36.17% 56.66% 1.57x
sha3_text[1] 0.00011951620166236274 0.00007673713849556599 35.79% 55.75% 1.56x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00012830733032568245 0.00008481198820091773 33.90% 51.28% 1.51x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.00012832583955427486 0.00008449611550604429 34.16% 51.87% 1.52x
sha3_text[alice.eth] 0.00013122786222579273 0.00008470094237454515 35.46% 54.93% 1.55x
sha3_text[alice] 0.00012831389520335013 0.0000852877072759729 33.53% 50.45% 1.50x
sha3_text[bob.eth] 0.00012815951442575514 0.00008454648689933922 34.03% 51.58% 1.52x
sha3_text[bob] 0.00012740704681299097 0.00008452305402252231 33.66% 50.74% 1.51x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00012949898032623357 0.0000855584541917198 33.93% 51.36% 1.51x
sha3_text[emoji\U0001f468\U0001f3fb] 0.00012796307298856632 0.00008536898199236592 33.29% 49.89% 1.50x
sha3_text[subdomain.alice.eth] 0.0001280230700994404 0.0000852355963842113 33.42% 50.20% 1.50x
sha3_text[xn--fiqs8s] 0.00012808162257889875 0.00008468994331595058 33.88% 51.24% 1.51x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.00029193911909272387 0.0002566838398256596 12.08% 13.73% 1.14x
fallback_func_abi_exists 0.00025206016896249533 0.0002482243652751421 1.52% 1.55% 1.02x
filter_by_argument_name[a] 0.0006356733383221056 0.00037230223940297816 41.43% 70.74% 1.71x
filter_by_argument_name[a+b] 0.0006658918588703771 0.0003881909641438972 41.70% 71.54% 1.72x
filter_by_argument_name[b] 0.0006453738651092764 0.00037629836422376444 41.69% 71.51% 1.72x
filter_by_argument_name[c] 0.0006484393404513476 0.0003806636522592019 41.30% 70.34% 1.70x
filter_by_argument_name[notfound] 0.0006454764599993723 0.0003734146074537278 42.15% 72.86% 1.73x
filter_by_argument_type[address] 0.0005801371324422493 0.0005891413825865657 -1.55% -1.53% 0.98x
filter_by_argument_type[notatype] 0.0005679247574510437 0.0005800240141653723 -2.13% -2.09% 0.98x
filter_by_argument_type[string] 0.0005731726002463252 0.0005860856003586358 -2.25% -2.20% 0.98x
filter_by_argument_type[uint+address] 0.0005873873514803869 0.000596722099872567 -1.59% -1.56% 0.98x
filter_by_argument_type[uint256] 0.0005794590645925851 0.0005866149907380012 -1.23% -1.22% 0.99x
filter_by_types[constructor] 0.000036660612228313644 0.000036727898805841246 -0.18% -0.18% 1.00x
filter_by_types[event] 0.00003639462674784135 0.000036622400903124747 -0.63% -0.62% 0.99x
filter_by_types[fallback] 0.000036958870970479306 0.00003733530089176762 -1.02% -1.01% 0.99x
filter_by_types[func+event] 0.000041377847711032826 0.000041487971177711816 -0.27% -0.27% 1.00x
filter_by_types[function] 0.00003686900135964514 0.00003681653608089548 0.14% 0.14% 1.00x
filter_by_types[none] 0.00003633384195781452 0.00003625596409195587 0.21% 0.21% 1.00x
filter_by_types[receive] 0.0000379485906092068 0.000037935187089964664 0.04% 0.04% 1.00x
find_constructor_abi_element_by_type 0.00003401017686702833 0.00003474863904675333 -2.17% -2.13% 0.98x
get_abi_element_signature[custom] 0.00005254339803004825 0.00005038469203219444 4.11% 4.28% 1.04x
get_abi_element_signature[fallback] 0.00002105626209658367 0.000020898846435693348 0.75% 0.75% 1.01x
get_abi_element_signature[receive] 0.00002802487095830613 0.00002854182979195053 -1.84% -1.81% 0.98x
get_abi_element_signature[transfer] 0.000057121536688592606 0.00005292542399563982 7.35% 7.93% 1.08x
get_name_from_abi_element_identifier[custom] 0.000041774423212576736 0.000037855025759472215 9.38% 10.35% 1.10x
get_name_from_abi_element_identifier[fallback] 0.00001223535139205927 0.000012054674249837737 1.48% 1.50% 1.01x
get_name_from_abi_element_identifier[func] 0.00004167446243900268 0.00003822927524306962 8.27% 9.01% 1.09x
get_name_from_abi_element_identifier[receive] 0.00001837946675895666 0.00001837209693712719 0.04% 0.04% 1.00x
get_tuple_type_str_parts[not-tuple] 0.000021304115625668167 0.00002152461241838718 -1.03% -1.02% 0.99x
get_tuple_type_str_parts[one-dim] 0.00007264027200758639 0.00007173845644983732 1.24% 1.26% 1.01x
get_tuple_type_str_parts[plain] 0.000046829050224432986 0.000046706014299890776 0.26% 0.26% 1.00x
get_tuple_type_str_parts[two-dim] 0.00009028536019493843 0.00009016357618289095 0.13% 0.14% 1.00x
is_address_type[address] 0.00004426981682008221 0.000042873294567613575 3.15% 3.26% 1.03x
is_address_type[array] 0.000048474759136866965 0.00004653002611499786 4.01% 4.18% 1.04x
is_address_type[bool] 0.00004360079746007133 0.00004357711490112256 0.05% 0.05% 1.00x
is_address_type[bytes] 0.00004278335525124255 0.00004326309786644192 -1.12% -1.11% 0.99x
is_address_type[bytes32] 0.00004838212789143122 0.000045772737477034656 5.39% 5.70% 1.06x
is_address_type[bytes33] 0.000047636492300868836 0.000046646975479820875 2.08% 2.12% 1.02x
is_address_type[empty] 0.00004272448902128207 0.0000430637455633901 -0.79% -0.79% 0.99x
is_address_type[enum] 0.000045709123126317355 0.00004466830527365615 2.28% 2.33% 1.02x
is_address_type[int256] 0.00004364553066426905 0.00004360227685084492 0.10% 0.10% 1.00x
is_address_type[invalid] 0.00004445350421623401 0.00004485667730912637 -0.91% -0.90% 0.99x
is_address_type[string] 0.00004327645658238468 0.00004277452133602359 1.16% 1.17% 1.01x
is_address_type[tuple-array] 0.00004580001154678936 0.00004455308629421697 2.72% 2.80% 1.03x
is_address_type[tuple] 0.00004447012442114211 0.000043894422486413174 1.29% 1.31% 1.01x
is_address_type[uint256] 0.00004481416994207969 0.00004457942233672328 0.52% 0.53% 1.01x
is_array_type[address] 0.00038727920186855386 0.00039449179178364734 -1.86% -1.83% 0.98x
is_array_type[array] 0.0003921402966629025 0.0004012419685855809 -2.32% -2.27% 0.98x
is_array_type[bool] 0.00035849800351018694 0.00036443307253660877 -1.66% -1.63% 0.98x
is_array_type[bytes] 0.0003661418631526092 0.00037360083881310966 -2.04% -2.00% 0.98x
is_array_type[bytes32] 0.0003854563771962856 0.00039460987956681416 -2.37% -2.32% 0.98x
is_array_type[bytes33] 0.000384367049135597 0.000391010362206807 -1.73% -1.70% 0.98x
is_array_type[empty] 0.00029909909734680514 0.00030589635632889505 -2.27% -2.22% 0.98x
is_array_type[enum] 0.0003731355133707331 0.00037907492218589717 -1.59% -1.57% 0.98x
is_array_type[int256] 0.0003770563315578147 0.000382694996098941 -1.50% -1.47% 0.99x
is_array_type[invalid] 0.0003929563751512206 0.00040043810799939765 -1.90% -1.87% 0.98x
is_array_type[string] 0.00037829302675493814 0.0003830187388861659 -1.25% -1.23% 0.99x
is_array_type[tuple-array] 0.0003930696464493735 0.0004004732171902348 -1.88% -1.85% 0.98x
is_array_type[tuple] 0.00036677419302812744 0.00037485814869695915 -2.20% -2.16% 0.98x
is_array_type[uint256] 0.00039684174387663487 0.0003918274691263172 1.26% 1.28% 1.01x
is_bool_type[address] 0.00004368410315048781 0.00004427243560352092 -1.35% -1.33% 0.99x
is_bool_type[array] 0.0000458728277186601 0.000045998704243354166 -0.27% -0.27% 1.00x
is_bool_type[bool] 0.00004384667443892042 0.000043872605555062036 -0.06% -0.06% 1.00x
is_bool_type[bytes] 0.000044746718339026535 0.000044805981510683346 -0.13% -0.13% 1.00x
is_bool_type[bytes32] 0.000043866679963092616 0.00004353202243642173 0.76% 0.77% 1.01x
is_bool_type[bytes33] 0.0000453624886132794 0.00004488232969318475 1.06% 1.07% 1.01x
is_bool_type[empty] 0.000043679489908721175 0.000043407289107289676 0.62% 0.63% 1.01x
is_bool_type[enum] 0.000045900150406448205 0.000045057339264387084 1.84% 1.87% 1.02x
is_bool_type[int256] 0.000043607318183834563 0.00004446942075606827 -1.98% -1.94% 0.98x
is_bool_type[invalid] 0.00004558472370171703 0.00004481075754212095 1.70% 1.73% 1.02x
is_bool_type[string] 0.0000440429213089558 0.00004322064136942154 1.87% 1.90% 1.02x
is_bool_type[tuple-array] 0.00004615967861169864 0.000045655656817116615 1.09% 1.10% 1.01x
is_bool_type[tuple] 0.0000441740749805415 0.00004347607130266027 1.58% 1.61% 1.02x
is_bool_type[uint256] 0.00004331288367976871 0.00004402874346065812 -1.65% -1.63% 0.98x
is_bytes_type[address] 0.00031741378446355326 0.00031039434882162086 2.21% 2.26% 1.02x
is_bytes_type[array] 0.00031047356596509875 0.00031076099999985385 -0.09% -0.09% 1.00x
is_bytes_type[bool] 0.00027795338463568035 0.00028279993078185456 -1.74% -1.71% 0.98x
is_bytes_type[bytes] 0.00028038048919641536 0.00027615249878397457 1.51% 1.53% 1.02x
is_bytes_type[bytes32] 0.0002906034594679632 0.0003109291608580516 -6.99% -6.54% 0.93x
is_bytes_type[bytes33] 0.00032108570097453317 0.0003098861508759049 3.49% 3.61% 1.04x
is_bytes_type[empty] 0.00029070184122994755 0.00029234376107842357 -0.56% -0.56% 0.99x
is_bytes_type[enum] 0.00029657536669645953 0.0003033086890631931 -2.27% -2.22% 0.98x
is_bytes_type[int256] 0.00029178492494187863 0.00029843890912021004 -2.28% -2.23% 0.98x
is_bytes_type[invalid] 0.00028147948522678156 0.0002869528824533585 -1.94% -1.91% 0.98x
is_bytes_type[string] 0.00029082748239820283 0.00029845195920207376 -2.62% -2.55% 0.97x
is_bytes_type[tuple-array] 0.00028295140212890974 0.0002786182122695563 1.53% 1.56% 1.02x
is_bytes_type[tuple] 0.00028301896986161556 0.00028414001688885154 -0.40% -0.39% 1.00x
is_bytes_type[uint256] 0.00031294647283821794 0.00031552600600651766 -0.82% -0.82% 0.99x
is_int_type[address] 0.00020303856924621026 0.00020472051452844362 -0.83% -0.82% 0.99x
is_int_type[array] 0.000204394850305844 0.00020649461696568456 -1.03% -1.02% 0.99x
is_int_type[bool] 0.0002032093096040219 0.00020080090312603257 1.19% 1.20% 1.01x
is_int_type[bytes] 0.0002163877857818354 0.00022221554726140058 -2.69% -2.62% 0.97x
is_int_type[bytes32] 0.00020457615323647225 0.00020557191894811936 -0.49% -0.48% 1.00x
is_int_type[bytes33] 0.00020578167016462127 0.00019848377030116802 3.55% 3.68% 1.04x
is_int_type[empty] 0.00020398729447567256 0.000200463399364751 1.73% 1.76% 1.02x
is_int_type[enum] 0.00023137573042333336 0.00023222131401434926 -0.37% -0.36% 1.00x
is_int_type[int256] 0.00023516065103397862 0.00023006511421249314 2.17% 2.21% 1.02x
is_int_type[invalid] 0.00020566767371307023 0.00020117564173672165 2.18% 2.23% 1.02x
is_int_type[string] 0.00022964607646472067 0.00023707735012814944 -3.24% -3.13% 0.97x
is_int_type[tuple-array] 0.0002050993464800903 0.00020135228728519186 1.83% 1.86% 1.02x
is_int_type[tuple] 0.0002116609215089702 0.00022270472422620456 -5.22% -4.96% 0.95x
is_int_type[uint256] 0.0002052888600141243 0.00020430249627271518 0.48% 0.48% 1.00x
is_probably_enum[address] 0.00006868574083340524 0.00007099803272735652 -3.37% -3.26% 0.97x
is_probably_enum[empty] 0.0000646845522423145 0.00006689984419282514 -3.42% -3.31% 0.97x
is_probably_enum[enum] 0.0000642337493939935 0.00007084770123857157 -10.30% -9.34% 0.91x
is_probably_enum[lib-dot] 0.0000693996215092994 0.00007168037933940705 -3.29% -3.18% 0.97x
is_probably_enum[lib-enum] 0.00007313191882133948 0.00007766477782501115 -6.20% -5.84% 0.94x
is_probably_enum[uint256] 0.00006986075005571732 0.00007100392405988816 -1.64% -1.61% 0.98x
is_recognized_type[address] 0.00008301602545942224 0.00008568243892528697 -3.21% -3.11% 0.97x
is_recognized_type[array] 0.00008666695385615926 0.00008672798308961786 -0.07% -0.07% 1.00x
is_recognized_type[bool] 0.00008365347965316612 0.00008582947061653177 -2.60% -2.54% 0.97x
is_recognized_type[bytes] 0.00015468687048774527 0.00015460201651548084 0.05% 0.05% 1.00x
is_recognized_type[bytes32] 0.00015333061441651378 0.00015896396872861791 -3.67% -3.54% 0.96x
is_recognized_type[bytes33] 0.0001432080549473906 0.00014403074476825284 -0.57% -0.57% 0.99x
is_recognized_type[empty] 0.00006502815231426123 0.00006512444852337367 -0.15% -0.15% 1.00x
is_recognized_type[enum] 0.00008693011046759179 0.00009333483484405701 -7.37% -6.86% 0.93x
is_recognized_type[int256] 0.00012862334983019613 0.00013305968402358104 -3.45% -3.33% 0.97x
is_recognized_type[invalid] 0.00008671359306410827 0.00008841005120815211 -1.96% -1.92% 0.98x
is_recognized_type[string] 0.00010538696873655397 0.00010648432787942517 -1.04% -1.03% 0.99x
is_recognized_type[tuple-array] 0.00008616501036654691 0.00009203556597998156 -6.81% -6.38% 0.94x
is_recognized_type[tuple] 0.00008561049121034465 0.00008779798944337025 -2.56% -2.49% 0.98x
is_recognized_type[uint256] 0.00012936311682545923 0.00013360227408720386 -3.28% -3.17% 0.97x
is_string_type[address] 0.00004404405040462466 0.00004278021579490081 2.87% 2.95% 1.03x
is_string_type[array] 0.00004496461738213792 0.00004537737016122789 -0.92% -0.91% 0.99x
is_string_type[bool] 0.00004451276176811098 0.00004350178488112904 2.27% 2.32% 1.02x
is_string_type[bytes] 0.000043157554384146635 0.00004380864145000633 -1.51% -1.49% 0.99x
is_string_type[bytes32] 0.000043703758183774164 0.000043372603165966884 0.76% 0.76% 1.01x
is_string_type[bytes33] 0.00004457984803519115 0.00004492561410257628 -0.78% -0.77% 0.99x
is_string_type[empty] 0.00004381822073258266 0.000043499673893616824 0.73% 0.73% 1.01x
is_string_type[enum] 0.00004681768722932653 0.00004650857945321089 0.66% 0.66% 1.01x
is_string_type[int256] 0.00004537751028969306 0.00004472048784924529 1.45% 1.47% 1.01x
is_string_type[invalid] 0.00004524213899450358 0.000044312656144783816 2.05% 2.10% 1.02x
is_string_type[string] 0.00004456216400786125 0.000044125328348526084 0.98% 0.99% 1.01x
is_string_type[tuple-array] 0.00004497898913807107 0.000045449572328982524 -1.05% -1.04% 0.99x
is_string_type[tuple] 0.000043582742054236895 0.00004359921229397141 -0.04% -0.04% 1.00x
is_string_type[uint256] 0.00004379981241599174 0.00004352968531474241 0.62% 0.62% 1.01x
is_uint_type[address] 0.0002317503280197444 0.00023160403161416075 0.06% 0.06% 1.00x
is_uint_type[array] 0.0002227257868638941 0.0002375005009496311 -6.63% -6.22% 0.94x
is_uint_type[bool] 0.0002010935424112508 0.00020536711204638367 -2.13% -2.08% 0.98x
is_uint_type[bytes] 0.00020270089383544673 0.00020257173416997508 0.06% 0.06% 1.00x
is_uint_type[bytes32] 0.00023114765510258425 0.00023239604800297196 -0.54% -0.54% 0.99x
is_uint_type[bytes33] 0.00022839258031790121 0.00022806033401385375 0.15% 0.15% 1.00x
is_uint_type[empty] 0.00020101407874751533 0.00020177009571509518 -0.38% -0.37% 1.00x
is_uint_type[enum] 0.00020881247677779656 0.00022267727649585283 -6.64% -6.23% 0.94x
is_uint_type[int256] 0.00022148422879681676 0.00022306032816130428 -0.71% -0.71% 0.99x
is_uint_type[invalid] 0.00020026374224759596 0.00020104852673958004 -0.39% -0.39% 1.00x
is_uint_type[string] 0.00020872351314383324 0.00022003750059528538 -5.42% -5.14% 0.95x
is_uint_type[tuple-array] 0.00020195819667151135 0.00020045163889564663 0.75% 0.75% 1.01x
is_uint_type[tuple] 0.0002025581491329107 0.0002067434067584509 -2.07% -2.02% 0.98x
is_uint_type[uint256] 0.00022948604292946697 0.0002424986019726236 -5.67% -5.37% 0.95x
length_of_array_type[dynamic] 0.00016812369819381865 0.00016634655643823752 1.06% 1.07% 1.01x
length_of_array_type[fixed] 0.00017723086811991133 0.00017687649990567674 0.20% 0.20% 1.00x
length_of_array_type[nested] 0.00018771200253520423 0.00018552222167126005 1.17% 1.18% 1.01x
map_abi_data 0.006541313537881747 0.005258073872836329 19.62% 24.41% 1.24x
normalize_event_input_types 0.00042926971415385815 0.0004371624253558268 -1.84% -1.81% 0.98x
receive_func_abi_exists 0.00031750206648916465 0.0003140269180177749 1.09% 1.11% 1.01x
strip_abi_types 0.0016016401783326727 0.0016108857836916468 -0.58% -0.57% 0.99x
sub_type_of_array_type[nested] 0.0001819297371344966 0.00018696328565790565 -2.77% -2.69% 0.97x
sub_type_of_array_type[simple] 0.0001735213447726101 0.00017636190545570845 -1.64% -1.61% 0.98x

web3/_utils/blocks - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_hex_encoded_block_hash[int] 0.000021109127481688787 0.000022228344555535007 -5.30% -5.04% 0.95x
is_hex_encoded_block_hash[invalid-g] 0.00008631299052081196 0.00005936091116666013 31.23% 45.40% 1.45x
is_hex_encoded_block_hash[none] 0.00002082909291845269 0.000022423739622428118 -7.66% -7.11% 0.93x
is_hex_encoded_block_hash[short] 0.00004476023661678937 0.00002638308153823995 41.06% 69.66% 1.70x
is_hex_encoded_block_hash[too-long] 0.00004438125489632307 0.00002604428738050207 41.32% 70.41% 1.70x
is_hex_encoded_block_hash[too-short] 0.00004428465402375323 0.000026103962229959896 41.05% 69.65% 1.70x
is_hex_encoded_block_hash[valid-a] 0.00009667119113093599 0.00007159270898029438 25.94% 35.03% 1.35x
is_hex_encoded_block_hash[valid-f] 0.0000965459043823033 0.0000712458094226479 26.21% 35.51% 1.36x
is_hex_encoded_block_number[int] 0.0000207735127354367 0.00002216241892007626 -6.69% -6.27% 0.94x
is_hex_encoded_block_number[invalid-g] 0.00016470038137292574 0.00021927184600130148 -33.13% -24.89% 0.75x
is_hex_encoded_block_number[max-64-a] 0.00010654290921312814 0.000083912854239636 21.24% 26.97% 1.27x
is_hex_encoded_block_number[max-64-f] 0.00010486894561854153 0.00008413162079933277 19.77% 24.65% 1.25x
is_hex_encoded_block_number[none] 0.00002077171043393073 0.00002197535579312621 -5.79% -5.48% 0.95x
is_hex_encoded_block_number[small] 0.00009257885356628781 0.00004657010504619401 49.70% 98.79% 1.99x
is_hex_encoded_block_number[too-long] 0.00010756031880767603 0.0000621442618202493 42.22% 73.08% 1.73x
is_predefined_block_number[bytes-latest] 0.00003255312660003658 0.000027418072770499517 15.77% 18.73% 1.19x
is_predefined_block_number[bytes-pending] 0.000032470708631071546 0.000027883092266696515 14.13% 16.45% 1.16x
is_predefined_block_number[bytes-random] 0.00003120845949998095 0.000026591701172698418 14.79% 17.36% 1.17x
is_predefined_block_number[int] 0.0000329640066807986 0.00002544216098197023 22.82% 29.56% 1.30x
is_predefined_block_number[none] 0.000121614319426548 0.00021571151739563653 -77.37% -43.62% 0.56x
is_predefined_block_number[object] 0.0001571909557827895 0.000252800531084215 -60.82% -37.82% 0.62x
is_predefined_block_number[str-earliest] 0.000013492754457673404 0.000009862348076515268 26.91% 36.81% 1.37x
is_predefined_block_number[str-finalized] 0.00001348046536134264 0.000010061186097191826 25.36% 33.98% 1.34x
is_predefined_block_number[str-foo] 0.000013541320287282125 0.000009770431704302934 27.85% 38.59% 1.39x
is_predefined_block_number[str-latest] 0.000013488269248398612 0.000010053060796282427 25.47% 34.17% 1.34x
is_predefined_block_number[str-pending] 0.00001350449594728884 0.000010157709663709643 24.78% 32.95% 1.33x
is_predefined_block_number[str-safe] 0.000013506271986457388 0.000009791859123713746 27.50% 37.93% 1.38x
select_method_for_block_identifier[hash-bytes] 0.00005156822704894853 0.00004209729678917653 18.37% 22.50% 1.22x
select_method_for_block_identifier[hash-hexstr] 0.0001284183037960387 0.00009256485794843092 27.92% 38.73% 1.39x
select_method_for_block_identifier[invalid-none] 0.0009146823463454827 0.0010819273257272226 -18.28% -15.46% 0.85x
select_method_for_block_identifier[invalid-object] 0.0009658041864760842 0.0011281183349511634 -16.81% -14.39% 0.86x
select_method_for_block_identifier[number-hexstr] 0.00016732416797664125 0.00008434326239291987 49.59% 98.38% 1.98x
select_method_for_block_identifier[number-int] 0.00011313794344240601 0.000058091211881390576 48.65% 94.76% 1.95x
select_method_for_block_identifier[predefined-bytes] 0.000049355452467838395 0.000042309736716332515 14.28% 16.65% 1.17x
select_method_for_block_identifier[predefined-str] 0.000027902095904546486 0.000020449122818638177 26.71% 36.45% 1.36x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.0004809194057981139 0.000541249545401055 -12.54% -11.15% 0.89x
PropertyCheckingFactory[big-valid] 0.00046256589504272116 0.0005366162701707391 -16.01% -13.80% 0.86x
PropertyCheckingFactory[inheritance] 0.0010249911018261253 0.0009833070211452293 4.07% 4.24% 1.04x
PropertyCheckingFactory[invalid] 0.0004655037087322783 0.0005394174786132118 -15.88% -13.70% 0.86x
PropertyCheckingFactory[multi-normalizer] 0.00047263064651536884 0.000548480538796287 -16.05% -13.83% 0.86x
PropertyCheckingFactory[multi-prop] 0.0004641412874696547 0.0005414578415982643 -16.66% -14.28% 0.86x
PropertyCheckingFactory[normalized] 0.0004685793654666245 0.0005484513685886246 -17.05% -14.56% 0.85x
PropertyCheckingFactory[valid] 0.001310946562084297 0.0010341424429268062 21.11% 26.77% 1.27x
verify_attr[empty] 0.00010003182926890239 0.00016055775763323854 -60.51% -37.70% 0.62x
verify_attr[found-end] 0.00001156729382409668 0.000009915388792325438 14.28% 16.66% 1.17x
verify_attr[found-start] 0.000009350332405254228 0.0000075555922645269875 19.19% 23.75% 1.24x
verify_attr[large-found] 0.0001306506057745731 0.00012450114273057186 4.71% 4.94% 1.05x
verify_attr[large-notfound] 0.0001983127088551697 0.00025875885584620846 -30.48% -23.36% 0.77x
verify_attr[notfound] 0.00010504599942861228 0.00016515405339693811 -57.22% -36.40% 0.64x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.00064343953267706 0.0006410399111997361 0.37% 0.37% 1.00x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.0000780680331271573 0.000022348645050129674 71.37% 249.32% 3.49x
percentile[100-90th] 0.00011047400337356612 0.00005177867130563161 53.13% 113.36% 2.13x
percentile[100k-99th] 0.036568966678584856 0.036496289888890275 0.20% 0.20% 1.00x
percentile[100k-median] 0.036490364407402213 0.03666864966669015 -0.49% -0.49% 1.00x
percentile[10k-10th] 0.0037051703446946485 0.0036943143385834323 0.29% 0.29% 1.00x
percentile[10k-99th] 0.0038039116390998465 0.003691652483279013 2.95% 3.04% 1.03x
percentile[10k-median] 0.0037314882281441917 0.0036740297037003646 1.54% 1.56% 1.02x
percentile[1k-99th] 0.0004720833724403139 0.0004049380272498496 14.22% 16.58% 1.17x
percentile[1M-median] 0.627046547999953 0.6237522578000153 0.53% 0.53% 1.01x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.00001285757300728461 0.000006851035826354099 46.72% 87.67% 1.88x
to_bytes_if_hex[empty-str] 0.0003084431703213076 0.000036894660245873 88.04% 736.01% 8.36x
to_bytes_if_hex[hexstr] 0.00034094336398730624 0.00004491428103610944 86.83% 659.10% 7.59x
to_bytes_if_hex[large-hex] 0.0003453727455085051 0.00004968818967841157 85.61% 595.08% 6.95x
to_bytes_if_hex[non-prefixed-hex] 0.0003214911846761413 0.00004249110479867476 86.78% 656.61% 7.57x
to_bytes_if_hex[nothex] 0.00041766260708029946 0.0002728012373537414 34.68% 53.10% 1.53x
to_bytes_if_hex[unicode] 0.00042316332456353105 0.00027485817726426615 35.05% 53.96% 1.54x
to_bytes_if_hex[zero] 0.0003551356981255748 0.0000449763158323659 87.34% 689.61% 7.90x
to_hex_if_bytes[bytes] 0.00022512552819546738 0.00004939616593981418 78.06% 355.76% 4.56x
to_hex_if_bytes[empty-bytes] 0.00021019404958603363 0.00003947502708394545 81.22% 432.47% 5.32x
to_hex_if_bytes[empty-str] 0.00010073766256561257 0.0001869864350054922 -85.62% -46.13% 0.54x
to_hex_if_bytes[hexstr] 0.00028041903817566425 0.000023051439966048453 91.78% 1116.49% 12.16x
to_hex_if_bytes[large-bytes] 0.0002280322910757168 0.000051623048570856664 77.36% 341.73% 4.42x
to_hex_if_bytes[non-prefixed-hex] 0.0001041650560382428 0.00019029845854515116 -82.69% -45.26% 0.55x
to_hex_if_bytes[not-hex] 0.00010464103228878276 0.00019051982039839337 -82.07% -45.08% 0.55x
to_hex_if_bytes[unicode] 0.00010965132311099492 0.00019630975020723206 -79.03% -44.14% 0.56x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.0003061302131942595 0.00010181396252022937 66.74% 200.68% 3.01x
all_in_dict[empty-dict] 0.0002608080697007937 0.00007714541396870492 70.42% 238.07% 3.38x
all_in_dict[empty-list] 0.00025941480164071726 0.00008707866988194003 66.43% 197.91% 2.98x
all_in_dict[mixed-types] 0.00031025242997015953 0.00010302549024906244 66.79% 201.14% 3.01x
all_in_dict[no-overlap] 0.00028093713464663947 0.00008675795347335894 69.12% 223.82% 3.24x
all_in_dict[none-in] 0.0002816237189656025 0.00008805278600974654 68.73% 219.84% 3.20x
all_in_dict[one-in] 0.00028541346402764746 0.00009366333477487606 67.18% 204.72% 3.05x
all_in_dict[partial-overlap] 0.0003255940264534016 0.00009982767332393349 69.34% 226.16% 3.26x
all_in_dict[value-none] 0.0002858007098434088 0.00009324084374674552 67.38% 206.52% 3.07x
any_in_dict[all-in] 0.00028588403470957227 0.00009008647675901969 68.49% 217.34% 3.17x
any_in_dict[empty-dict] 0.0003077710487573658 0.00009213732095915125 70.06% 234.04% 3.34x
any_in_dict[empty-list] 0.00026394412299235855 0.00008863945729708237 66.42% 197.77% 2.98x
any_in_dict[mixed-types] 0.0002822771816623048 0.00009123588948456138 67.68% 209.39% 3.09x
any_in_dict[no-overlap] 0.000326070280287753 0.00010568578454215416 67.59% 208.53% 3.09x
any_in_dict[none-in] 0.00029408498957129726 0.00009473448339447388 67.79% 210.43% 3.10x
any_in_dict[one-in] 0.000283888538921802 0.00008769418999676889 69.11% 223.73% 3.24x
any_in_dict[partial-overlap] 0.0002870653259768309 0.00008929504667180713 68.89% 221.48% 3.21x
any_in_dict[value-none] 0.00028498543359602825 0.00008817638606339508 69.06% 223.20% 3.23x
either_set_is_a_subset[both-empty] 0.0001685166127430067 0.00015226599605452774 9.64% 10.67% 1.11x
either_set_is_a_subset[empty-set1] 0.00016862717641167026 0.00015247123200468282 9.58% 10.60% 1.11x
either_set_is_a_subset[empty-set2] 0.00025334755103632265 0.00025376705248960957 -0.17% -0.17% 1.00x
either_set_is_a_subset[identical] 0.0001867533345344572 0.00016378269257723003 12.30% 14.03% 1.14x
either_set_is_a_subset[mixed-types] 0.00019162218563607096 0.00016785449812922943 12.40% 14.16% 1.14x
either_set_is_a_subset[not-subset] 0.0002721019171028761 0.00025878114243019776 4.90% 5.15% 1.05x
either_set_is_a_subset[partial-overlap] 0.0002997156109866513 0.00028687017364947126 4.29% 4.48% 1.04x
either_set_is_a_subset[subset] 0.00019232794678518753 0.00017066587123805159 11.26% 12.69% 1.13x
either_set_is_a_subset[superset] 0.0002960357997602683 0.00029102180839260316 1.69% 1.72% 1.02x
none_in_dict[all-in] 0.0002945371251870574 0.00010087769698976862 65.75% 191.97% 2.92x
none_in_dict[empty-dict] 0.0003179158304879273 0.00009295291273416941 70.76% 242.02% 3.42x
none_in_dict[empty-list] 0.00027580520195578717 0.00010510979448691441 61.89% 162.40% 2.62x
none_in_dict[mixed-types] 0.0002948921538473958 0.00009044407873473307 69.33% 226.05% 3.26x
none_in_dict[no-overlap] 0.00033485930589303363 0.00011984698717427129 64.21% 179.41% 2.79x
none_in_dict[none-in] 0.000305216476188252 0.00010814001218109992 64.57% 182.24% 2.82x
none_in_dict[one-in] 0.00029784242710754745 0.00010450991071245571 64.91% 184.99% 2.85x
none_in_dict[partial-overlap] 0.0002944627061117053 0.00010498195048872156 64.35% 180.49% 2.80x
none_in_dict[value-none] 0.00029233875007950464 0.00011172513971814575 61.78% 161.66% 2.62x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0014797555232933448 0.0014879062776988151 -0.55% -0.55% 0.99x
attributedict_hash[flat] 0.0011192047995138093 0.0011371149831462758 -1.60% -1.58% 0.98x
attributedict_hash[nested] 0.0017373400926243017 0.0017429921113493222 -0.33% -0.32% 1.00x
attributedict_init[empty] 0.00008705996811889605 0.00008637492201480584 0.79% 0.79% 1.01x
attributedict_init[large] 0.0001300498646176912 0.00012699385243767044 2.35% 2.41% 1.02x
attributedict_init[small] 0.00009303251692912418 0.00009304849179442292 -0.02% -0.02% 1.00x
mutableattributedict_delitem 0.0003902033929041285 0.0003961217762379174 -1.52% -1.49% 0.99x
mutableattributedict_setitem 0.0003338351416531701 0.00033752302248380535 -1.10% -1.09% 0.99x
namedelementonion_add 0.028642896956892493 0.02805750110370287 2.04% 2.09% 1.02x
namedelementonion_as_tuple_of_middleware 0.00014928752341588763 0.00014885860584774185 0.29% 0.29% 1.00x
namedelementonion_contains 0.00003054617563854875 0.000030178501388355226 1.20% 1.22% 1.01x
namedelementonion_getitem 0.000026641341219149562 0.00002682370330081864 -0.68% -0.68% 0.99x
namedelementonion_init[callables2] 0.00012584555595467506 0.0001258865068733472 -0.03% -0.03% 1.00x
namedelementonion_init[callables3] 0.00015870158069277292 0.00015798176566946833 0.45% 0.46% 1.00x
namedelementonion_init[empty] 0.00004343845092969018 0.00004359403309230855 -0.36% -0.36% 1.00x
namedelementonion_inject 0.029797760423525686 0.030067961136381882 -0.91% -0.90% 0.99x
namedelementonion_iter 0.0001521496993291598 0.0001527042743872495 -0.36% -0.36% 1.00x
namedelementonion_remove 0.0006680818593089309 0.0006623518053407833 0.86% 0.87% 1.01x
namedelementonion_replace 0.002476099748093206 0.002483037099226154 -0.28% -0.28% 1.00x
readableattributedict_getitem[large] 0.000015203589796371393 0.00001553853283658073 -2.20% -2.16% 0.98x
readableattributedict_getitem[small] 0.000014725374278391603 0.000014687532379678848 0.26% 0.26% 1.00x
readableattributedict_init[empty] 0.00005290328484022787 0.00005256749954974763 0.63% 0.64% 1.01x
readableattributedict_init[large] 0.00008795761518694579 0.00008667333703352155 1.46% 1.48% 1.01x
readableattributedict_init[small] 0.00005789046507197608 0.000056884517570373806 1.74% 1.77% 1.02x
readableattributedict_recursive[list-in-dict] 0.0008839884093380945 0.0008848875470377947 -0.10% -0.10% 1.00x
readableattributedict_recursive[nested-dict] 0.000920638922486811 0.0009222601574450638 -0.18% -0.18% 1.00x
readableattributedict_recursive[set] 0.00046895136579249835 0.0004609859114642429 1.70% 1.73% 1.02x
tupleize_lists_nested[list-in-dict] 0.0008559421021424433 0.0008545334578152692 0.16% 0.16% 1.00x
tupleize_lists_nested[tuple-in-dict] 0.0009399006527300199 0.000935491242560436 0.47% 0.47% 1.00x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.0003288147311648605 0.00033636727668727906 -2.30% -2.25% 0.98x
simplecache_cache[100] 0.0026814594231801417 0.001944169867587866 27.50% 37.92% 1.38x
simplecache_cache[1000] 0.02721090662160694 0.018858024333355757 30.70% 44.29% 1.44x
simplecache_eviction[10] 0.0007394190686541287 0.0005822330492224407 21.26% 27.00% 1.27x
simplecache_eviction[100] 0.005227401232796712 0.006567384092712271 -25.63% -20.40% 0.80x
simplecache_pop[10] 0.00045409793648382266 0.0004375933635509855 3.63% 3.77% 1.04x
simplecache_pop[100] 0.003782144215908588 0.0028931623900311306 23.50% 30.73% 1.31x
simplecache_retrieval[10] 0.0000896335589940308 0.000054812633701898156 38.85% 63.53% 1.64x
simplecache_retrieval[100] 0.0008074745800966759 0.0004850220142618367 39.93% 66.48% 1.66x

@github-actions
Copy link

Pytest Benchmark Diff

ens/base_ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_valid_name[] 0.0000017760940505076724 9.566807471772611e-7 46.14% 85.65% 1.86x
is_valid_name[a..eth] 0.00002459566125621568 0.000029076989319203058 -18.22% -15.41% 0.85x
is_valid_name[a.eth..] 0.000025431783330468325 0.000029446855768437432 -15.79% -13.63% 0.86x
is_valid_name[a.eth.] 0.000025114014523592666 0.000028999227587157932 -15.47% -13.40% 0.87x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22680391960002452 0.24611853760002306 -8.52% -7.85% 0.92x
is_valid_name[alice.eth] 0.010231495908154715 0.011057408988990373 -8.07% -7.47% 0.93x
is_valid_name[bob.eth] 0.0061279502760702535 0.006751959058819505 -10.18% -9.24% 0.91x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2640083579999555 0.23011685319997924 12.84% 14.73% 1.15x
is_valid_name[subdomain.alice.eth] 0.03009804264705535 0.033527343548411734 -11.39% -10.23% 0.90x
labelhash[] 0.00013311685645546342 0.00008946293485700883 32.79% 48.80% 1.49x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.2277578138000081 0.2328308743999969 -2.23% -2.18% 0.98x
labelhash[alice] 0.007558819062495559 0.007862593456011382 -4.02% -3.86% 0.96x
labelhash[bob] 0.0033990550824819677 0.0034431953521110266 -1.30% -1.28% 0.99x
labelhash[emoji\U0001f468\U0001f3fb] 0.2534580173999984 0.25281425059997675 0.25% 0.25% 1.00x
labelhash[xn--fiqs8s] 0.024246096047596394 0.026160623157890864 -7.90% -7.32% 0.93x
namehash[] 0.000009628295639418382 0.000003409938197907272 64.58% 182.36% 2.82x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4623577995999767 0.5078089462000207 -9.83% -8.95% 0.91x
namehash[alice.eth] 0.02174486248936967 0.02357971723255147 -8.44% -7.78% 0.92x
namehash[bob.eth] 0.013376720533333355 0.014392421099994732 -7.59% -7.06% 0.93x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.5191068444000848 0.5337268151999979 -2.82% -2.74% 0.97x
namehash[subdomain.alice.eth] 0.06457433756250452 0.06897117633331315 -6.81% -6.37% 0.94x
nameprep[] 0.000008343504564249265 0.00000313076291199753 62.48% 166.50% 2.67x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22716639559998839 0.2543185147999793 -11.95% -10.68% 0.89x
nameprep[alice.eth] 0.010534744360821727 0.011095520999995662 -5.32% -5.05% 0.95x
nameprep[bob.eth] 0.00624406012578809 0.006933150848281316 -11.04% -9.94% 0.90x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.2566180601999804 0.24428603019996445 4.81% 5.05% 1.05x
nameprep[subdomain.alice.eth] 0.03081898451515978 0.03408237280645623 -10.59% -9.58% 0.90x
parent[] 9.671227875407376e-7 8.42138560324163e-7 12.92% 14.84% 1.15x
parent[bar.eth] 0.0000036806632737188407 0.000002500585358958053 32.06% 47.19% 1.47x
parent[eth] 0.0000020025591728084136 0.0000015264700358528376 23.77% 31.19% 1.31x
parent[foo.bar.eth] 0.000004269603809291415 0.0000031561214874307093 26.08% 35.28% 1.35x
parent[sub.sub2.foo.bar.eth] 0.00000490609856586958 0.000003815083914119714 22.24% 28.60% 1.29x
reverse_domain[0x0000000000000000000000000000000000000000] 0.00004998393322411195 0.00001643631186583656 67.12% 204.11% 3.04x
reverse_domain[0x1111111111111111111111111111111111111111] 0.000051076551615205516 0.00001632321060970098 68.04% 212.91% 3.13x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005119907958966416 0.000016987617863052346 66.82% 201.39% 3.01x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.000013761838716696347 0.000014134502567552279 -2.71% -2.64% 0.97x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000013531793231666883 0.000013554779036315081 -0.17% -0.17% 1.00x
address[alice.eth] 0.00001372648975059306 0.000013621807920862077 0.76% 0.77% 1.01x
address[bob.eth] 0.00001361444398920872 0.000013571655552773277 0.31% 0.32% 1.00x
address[emoji\U0001f468\U0001f3fb.eth] 0.000013891725532225308 0.000013603302829531852 2.08% 2.12% 1.02x
address[subdomain.alice.eth] 0.000013698838557939658 0.000013636755143782232 0.45% 0.46% 1.00x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.00014012452691554873 0.00014281634502907842 -1.92% -1.88% 0.98x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00014424158743442728 0.00014333643396164238 0.63% 0.63% 1.01x
normalize_name_ensip15[alice.eth] 0.00014738309607355732 0.0001436145466463267 2.56% 2.62% 1.03x
normalize_name_ensip15[bob.eth] 0.00014269643618394946 0.00014244307877881278 0.18% 0.18% 1.00x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.00014979743178666308 0.00014250499363463944 4.87% 5.12% 1.05x
normalize_name_ensip15[subdomain.alice.eth] 0.00014373695088547113 0.00014414389296530427 -0.28% -0.28% 1.00x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.002450232351758982 0.0008026865773112562 67.24% 205.25% 3.05x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.002492188383252405 0.0007879372469662176 68.38% 216.29% 3.16x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.002491239687499274 0.0008000913290101162 67.88% 211.37% 3.11x
dns_encode_name[] 0.000006720362536185925 0.000004211371571857951 37.33% 59.58% 1.60x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22524002019999897 0.2347986117999426 -4.24% -4.07% 0.96x
dns_encode_name[alice.eth] 0.010597337510632238 0.011045074439570082 -4.22% -4.05% 0.96x
dns_encode_name[bob.eth] 0.00648400728667184 0.006605711526322909 -1.88% -1.84% 0.98x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.2576548765999632 0.2510970540000471 2.55% 2.61% 1.03x
dns_encode_name[subdomain.alice.eth] 0.03126313654544874 0.03206571129028875 -2.57% -2.50% 0.97x
estimate_auction_start_gas[labels0] 0.00007407245948132611 0.000049890356466360585 32.65% 48.47% 1.48x
estimate_auction_start_gas[labels1] 0.00007437302044926514 0.000049742500542986 33.12% 49.52% 1.50x
estimate_auction_start_gas[labels2] 0.00006545393541560638 0.000050165803859222485 23.36% 30.48% 1.30x
is_empty_name[ ] 0.000056599293356131214 0.00003945996123562485 30.28% 43.43% 1.43x
is_empty_name[.] 0.00005531126037261748 0.00004189737405719794 24.25% 32.02% 1.32x
is_empty_name[0] 0.000053089386039008254 0.000038955844675029264 26.62% 36.28% 1.36x
is_empty_name[1] 0.00005445505720831419 0.00003803841025861673 30.15% 43.16% 1.43x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00005733160943936518 0.00003975842698847931 30.65% 44.20% 1.44x
is_empty_name[alice.eth] 0.000056716666206937 0.00003927388349303838 30.75% 44.41% 1.44x
is_empty_name[bob.eth] 0.000056794261271699587 0.00003873751391326353 31.79% 46.61% 1.47x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.00005849096336268318 0.00003950025631804101 32.47% 48.08% 1.48x
is_empty_name[subdomain.alice.eth] 0.00005767491808651009 0.00003916585095214289 32.09% 47.26% 1.47x
is_none_or_zero_address[] 0.000044699138052219145 0.000039573549773538694 11.47% 12.95% 1.13x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.00004941829750129161 0.00004568703881904699 7.55% 8.17% 1.08x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.000051865259152979985 0.000047088443532581275 9.21% 10.14% 1.10x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005205108405570213 0.00004759252628012799 8.57% 9.37% 1.09x
is_valid_ens_name[] 0.000001831709007661995 0.0000014058800980639209 23.25% 30.29% 1.30x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23063760759991964 0.23748847460001343 -2.97% -2.88% 0.97x
is_valid_ens_name[alice.eth] 0.010425749138293928 0.011158815758248099 -7.03% -6.57% 0.93x
is_valid_ens_name[bar] 0.0000019256407759507454 0.0000014390130684176424 25.27% 33.82% 1.34x
is_valid_ens_name[baz] 0.0000018695947150711604 0.0000014323874120696535 23.39% 30.52% 1.31x
is_valid_ens_name[bob.eth] 0.006293802186344195 0.006689711629143786 -6.29% -5.92% 0.94x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.25716880960003435 0.25766849439996803 -0.19% -0.19% 1.00x
is_valid_ens_name[foo] 0.0000018958551066573337 0.0000014331597354570347 24.41% 32.28% 1.32x
is_valid_ens_name[subdomain.alice.eth] 0.030944757030297435 0.03220985022580276 -4.09% -3.93% 0.96x
is_valid_name[] 0.0000016061979137330237 0.0000010045430074615886 37.46% 59.89% 1.60x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23151341460002187 0.24650341400006254 -6.47% -6.08% 0.94x
is_valid_name[alice.eth] 0.010440388329892736 0.010859463858715255 -4.01% -3.86% 0.96x
is_valid_name[bob.eth] 0.006179181296301752 0.006647066474029502 -7.57% -7.04% 0.93x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2568470812000214 0.2237805920000028 12.87% 14.78% 1.15x
is_valid_name[subdomain.alice.eth] 0.030715314727262234 0.03224623974999474 -4.98% -4.75% 0.95x
label_to_hash[] 0.00013479688346289682 0.00008565708125963767 36.45% 57.37% 1.57x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.2318787526000051 0.23242934620002415 -0.24% -0.24% 1.00x
label_to_hash[alice] 0.00769831888461305 0.007837867475808663 -1.81% -1.78% 0.98x
label_to_hash[bob] 0.0034955006113109015 0.0034718239580439915 0.68% 0.68% 1.01x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.26154041159998087 0.2554793549999886 2.32% 2.37% 1.02x
label_to_hash[xn--fiqs8s] 0.024484940690459076 0.025443908550028028 -3.92% -3.77% 0.96x
normal_name_to_hash[] 0.0000016669260750954245 9.868957730164175e-7 40.80% 68.91% 1.69x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23783401139999114 0.23780419060003624 0.01% 0.01% 1.00x
normal_name_to_hash[alice.eth] 0.011402442170477074 0.011533063697655497 -1.15% -1.13% 0.99x
normal_name_to_hash[bob.eth] 0.007287823434771913 0.007109945864289914 2.44% 2.50% 1.03x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.27322890919999737 0.2663957905999723 2.50% 2.57% 1.03x
normal_name_to_hash[subdomain.alice.eth] 0.032288381677422116 0.03319518030000381 -2.81% -2.73% 0.97x
normalize_name[] 0.000007973610128792695 0.000003104234753408298 61.07% 156.86% 2.57x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22613443299997016 0.2453412777999347 -8.49% -7.83% 0.92x
normalize_name[alice.eth] 0.010426853257724323 0.011022004230771128 -5.71% -5.40% 0.95x
normalize_name[bob.eth] 0.006280467167709887 0.006671048077922247 -6.22% -5.85% 0.94x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.25400240679991837 0.22548238560002573 11.23% 12.65% 1.13x
normalize_name[subdomain.alice.eth] 0.030802194787873195 0.03337169448385676 -8.34% -7.70% 0.92x
raw_name_to_hash[] 0.000009385914463307692 0.0000033116050709750994 64.72% 183.42% 2.83x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4588939325999945 0.4697370035999938 -2.36% -2.31% 0.98x
raw_name_to_hash[alice.eth] 0.02243179220001568 0.02242356839998239 0.04% 0.04% 1.00x
raw_name_to_hash[bob.eth] 0.013797455438366777 0.013654605864871883 1.04% 1.05% 1.01x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5352032644000246 0.49281010699992295 7.92% 8.60% 1.09x
raw_name_to_hash[subdomain.alice.eth] 0.06412171281255041 0.06416075393751441 -0.06% -0.06% 1.00x
sha3_text[0] 0.00011921348423756081 0.00007711652131567619 35.31% 54.59% 1.55x
sha3_text[1] 0.00011952225718097482 0.00007696714847518807 35.60% 55.29% 1.55x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.0001295894636543752 0.00008509460785937234 34.34% 52.29% 1.52x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.0001291349760166529 0.00008547856461368228 33.81% 51.07% 1.51x
sha3_text[alice.eth] 0.00012806620825966527 0.00008522167756753516 33.45% 50.27% 1.50x
sha3_text[alice] 0.0001283434191725683 0.00008561337078778732 33.29% 49.91% 1.50x
sha3_text[bob.eth] 0.00012717257268270963 0.00008582150631050957 32.52% 48.18% 1.48x
sha3_text[bob] 0.0001282007540098969 0.00008570218765470269 33.15% 49.59% 1.50x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00012912973160312903 0.00008610863868765434 33.32% 49.96% 1.50x
sha3_text[emoji\U0001f468\U0001f3fb] 0.00012956493581317156 0.00008566409529500031 33.88% 51.25% 1.51x
sha3_text[subdomain.alice.eth] 0.00012908484531991038 0.00008520186030174248 34.00% 51.50% 1.52x
sha3_text[xn--fiqs8s] 0.00012879954896031264 0.00008505495073906423 33.96% 51.43% 1.51x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.00029067681681610913 0.00025454390869650284 12.43% 14.20% 1.14x
fallback_func_abi_exists 0.0002529796426722803 0.00024616806258122493 2.69% 2.77% 1.03x
filter_by_argument_name[a] 0.0006419756713641178 0.00037648329868201054 41.36% 70.52% 1.71x
filter_by_argument_name[a+b] 0.0006583386481983769 0.0004003544021743726 39.19% 64.44% 1.64x
filter_by_argument_name[b] 0.0006369854007847816 0.0003686173575629295 42.13% 72.80% 1.73x
filter_by_argument_name[c] 0.0006384090711465656 0.00037562843254197525 41.16% 69.96% 1.70x
filter_by_argument_name[notfound] 0.0006334888707247696 0.0003708434227093498 41.46% 70.82% 1.71x
filter_by_argument_type[address] 0.0005695121805166085 0.0005976431576315079 -4.94% -4.71% 0.95x
filter_by_argument_type[notatype] 0.0005631291707274339 0.0005831969270815392 -3.56% -3.44% 0.97x
filter_by_argument_type[string] 0.0005762631989811447 0.0005937035716964509 -3.03% -2.94% 0.97x
filter_by_argument_type[uint+address] 0.00058617894421193 0.0006016184344321089 -2.63% -2.57% 0.97x
filter_by_argument_type[uint256] 0.0005760291287509744 0.0005918252950108099 -2.74% -2.67% 0.97x
filter_by_types[constructor] 0.00003663662211944766 0.000036367271043491754 0.74% 0.74% 1.01x
filter_by_types[event] 0.00003662891094957586 0.00003685912003805868 -0.63% -0.62% 0.99x
filter_by_types[fallback] 0.00003755151386087549 0.00003749074100573173 0.16% 0.16% 1.00x
filter_by_types[func+event] 0.00004134898904516022 0.000041927752490258486 -1.40% -1.38% 0.99x
filter_by_types[function] 0.000037002424593993715 0.00003709546496189603 -0.25% -0.25% 1.00x
filter_by_types[none] 0.00003652365853660996 0.00003644447037170194 0.22% 0.22% 1.00x
filter_by_types[receive] 0.0000380432779483735 0.0000383438415191409 -0.79% -0.78% 0.99x
find_constructor_abi_element_by_type 0.00003378861794786044 0.000033669581472437344 0.35% 0.35% 1.00x
get_abi_element_signature[custom] 0.00005290209939337635 0.000050025503066948894 5.44% 5.75% 1.06x
get_abi_element_signature[fallback] 0.000020853406913362934 0.000021091409262869852 -1.14% -1.13% 0.99x
get_abi_element_signature[receive] 0.000027641115221380483 0.00002805612097484368 -1.50% -1.48% 0.99x
get_abi_element_signature[transfer] 0.000056693484043270093 0.00005499964329919452 2.99% 3.08% 1.03x
get_name_from_abi_element_identifier[custom] 0.0000417186214333495 0.00003742707640857771 10.29% 11.47% 1.11x
get_name_from_abi_element_identifier[fallback] 0.000012150881832264588 0.000012047546051909788 0.85% 0.86% 1.01x
get_name_from_abi_element_identifier[func] 0.000042039804986860754 0.00003805514239747242 9.48% 10.47% 1.10x
get_name_from_abi_element_identifier[receive] 0.000018577140652057304 0.000018620691738038125 -0.23% -0.23% 1.00x
get_tuple_type_str_parts[not-tuple] 0.000021530451068710546 0.00002168868764359244 -0.73% -0.73% 0.99x
get_tuple_type_str_parts[one-dim] 0.00007139960148453399 0.00007175695362897522 -0.50% -0.50% 1.00x
get_tuple_type_str_parts[plain] 0.00004709972286969491 0.00004721899385094375 -0.25% -0.25% 1.00x
get_tuple_type_str_parts[two-dim] 0.00009032087821556263 0.00009051348725756132 -0.21% -0.21% 1.00x
is_address_type[address] 0.000043015348427785865 0.00004302343752428339 -0.02% -0.02% 1.00x
is_address_type[array] 0.000046257249295369214 0.000045721637717808876 1.16% 1.17% 1.01x
is_address_type[bool] 0.00004308990442468922 0.000042580323953681916 1.18% 1.20% 1.01x
is_address_type[bytes] 0.000042772108327088364 0.000042222682022358304 1.28% 1.30% 1.01x
is_address_type[bytes32] 0.00004430895027323291 0.00004367693914131116 1.43% 1.45% 1.01x
is_address_type[bytes33] 0.00004606295492941371 0.00004603894612429202 0.05% 0.05% 1.00x
is_address_type[empty] 0.00004293113833444696 0.00004257973563561556 0.82% 0.83% 1.01x
is_address_type[enum] 0.000044271202589025013 0.00004398072112625068 0.66% 0.66% 1.01x
is_address_type[int256] 0.00004286662976813554 0.0000423883015930236 1.12% 1.13% 1.01x
is_address_type[invalid] 0.00004446364107173079 0.00004399432515302458 1.06% 1.07% 1.01x
is_address_type[string] 0.00004280809399772501 0.00004257791350074673 0.54% 0.54% 1.01x
is_address_type[tuple-array] 0.000042960141568332295 0.000043855085020702094 -2.08% -2.04% 0.98x
is_address_type[tuple] 0.00004231204412299544 0.00004244468402984229 -0.31% -0.31% 1.00x
is_address_type[uint256] 0.000045426469369615896 0.00004576524832943502 -0.75% -0.74% 0.99x
is_array_type[address] 0.0003905355333811622 0.00039794369067552463 -1.90% -1.86% 0.98x
is_array_type[array] 0.00039836537098763685 0.00040333069218312557 -1.25% -1.23% 0.99x
is_array_type[bool] 0.0003608091747114987 0.0003661886625823219 -1.49% -1.47% 0.99x
is_array_type[bytes] 0.00037167651079639345 0.00037952571222151334 -2.11% -2.07% 0.98x
is_array_type[bytes32] 0.0003894249210820895 0.00039820080774747283 -2.25% -2.20% 0.98x
is_array_type[bytes33] 0.0003928663508063188 0.00039921375049567465 -1.62% -1.59% 0.98x
is_array_type[empty] 0.0003045044276126642 0.00030859358844617614 -1.34% -1.33% 0.99x
is_array_type[enum] 0.0003816909574772748 0.00038830233848457266 -1.73% -1.70% 0.98x
is_array_type[int256] 0.00038171724980132254 0.00038786097567750793 -1.61% -1.58% 0.98x
is_array_type[invalid] 0.0003999962767366076 0.0004090939443736666 -2.27% -2.22% 0.98x
is_array_type[string] 0.0003778241646324601 0.00038737738188540037 -2.53% -2.47% 0.98x
is_array_type[tuple-array] 0.0004003685409823072 0.000407285624309756 -1.73% -1.70% 0.98x
is_array_type[tuple] 0.0003686012750932304 0.00037764917462682296 -2.45% -2.40% 0.98x
is_array_type[uint256] 0.00038804730550817576 0.000397763447382022 -2.50% -2.44% 0.98x
is_bool_type[address] 0.000042177546709332766 0.00004270433498285357 -1.25% -1.23% 0.99x
is_bool_type[array] 0.000044307072765326175 0.000043910657052319526 0.89% 0.90% 1.01x
is_bool_type[bool] 0.000043385013888992054 0.00004370502543862586 -0.74% -0.73% 0.99x
is_bool_type[bytes] 0.000042828792948356245 0.00004232108651866665 1.19% 1.20% 1.01x
is_bool_type[bytes32] 0.00004212712179843191 0.00004262216204816005 -1.18% -1.16% 0.99x
is_bool_type[bytes33] 0.00004420926179444233 0.000044105460800240195 0.23% 0.24% 1.00x
is_bool_type[empty] 0.000042654614984311924 0.000042153966674396794 1.17% 1.19% 1.01x
is_bool_type[enum] 0.00004394546193575596 0.000043956500475430925 -0.03% -0.03% 1.00x
is_bool_type[int256] 0.00004303909034640831 0.00004284474952292951 0.45% 0.45% 1.00x
is_bool_type[invalid] 0.000044335580939639244 0.0000437094880662017 1.41% 1.43% 1.01x
is_bool_type[string] 0.000041739557072435254 0.0000424113478511173 -1.61% -1.58% 0.98x
is_bool_type[tuple-array] 0.000044242258935743284 0.00004385636598706711 0.87% 0.88% 1.01x
is_bool_type[tuple] 0.000042207876256914336 0.00004265266660826428 -1.05% -1.04% 0.99x
is_bool_type[uint256] 0.000043040757594992905 0.0000426331991664496 0.95% 0.96% 1.01x
is_bytes_type[address] 0.0003232348812845533 0.00031463684044432565 2.66% 2.73% 1.03x
is_bytes_type[array] 0.0003157398318342255 0.0003096868142187395 1.92% 1.95% 1.02x
is_bytes_type[bool] 0.0002874501871455823 0.0002776438567611202 3.41% 3.53% 1.04x
is_bytes_type[bytes] 0.00027623649751826174 0.0002852508508861651 -3.26% -3.16% 0.97x
is_bytes_type[bytes32] 0.0002975685916644467 0.000293328590805344 1.42% 1.45% 1.01x
is_bytes_type[bytes33] 0.0003110163955430323 0.00031602834553799057 -1.61% -1.59% 0.98x
is_bytes_type[empty] 0.0002786593627301058 0.0002835365487601413 -1.75% -1.72% 0.98x
is_bytes_type[enum] 0.0002939706345349972 0.0002948978263485166 -0.32% -0.31% 1.00x
is_bytes_type[int256] 0.00030233027223534897 0.00029489917698165594 2.46% 2.52% 1.03x
is_bytes_type[invalid] 0.0002771760078136046 0.0002772024267882346 -0.01% -0.01% 1.00x
is_bytes_type[string] 0.00029843158453723176 0.0002949932346786724 1.15% 1.17% 1.01x
is_bytes_type[tuple-array] 0.0002785148359805637 0.00028255686152895635 -1.45% -1.43% 0.99x
is_bytes_type[tuple] 0.00028933180726362014 0.0002844603918902752 1.68% 1.71% 1.02x
is_bytes_type[uint256] 0.00032347063392758 0.00031522546231353487 2.55% 2.62% 1.03x
is_int_type[address] 0.00020534751844700184 0.0002040595207047479 0.63% 0.63% 1.01x
is_int_type[array] 0.00020468973126723164 0.00020457791953006 0.05% 0.05% 1.00x
is_int_type[bool] 0.00020258240319282972 0.00020358223969403033 -0.49% -0.49% 1.00x
is_int_type[bytes] 0.00021834863575156895 0.0002267518107532237 -3.85% -3.71% 0.96x
is_int_type[bytes32] 0.00020055020012273384 0.0002039582001238431 -1.70% -1.67% 0.98x
is_int_type[bytes33] 0.00020086810374783526 0.00020941167718872575 -4.25% -4.08% 0.96x
is_int_type[empty] 0.00020145542627736252 0.00020856230824064162 -3.53% -3.41% 0.97x
is_int_type[enum] 0.00022787073173284722 0.00022877144611089061 -0.40% -0.39% 1.00x
is_int_type[int256] 0.00023236982248850128 0.00022802309463089356 1.87% 1.91% 1.02x
is_int_type[invalid] 0.00020027329960348652 0.00020831048757089063 -4.01% -3.86% 0.96x
is_int_type[string] 0.00022808486417579262 0.00023229631540358538 -1.85% -1.81% 0.98x
is_int_type[tuple-array] 0.00020123833218930058 0.00020409304170159484 -1.42% -1.40% 0.99x
is_int_type[tuple] 0.00021593128586479922 0.00021488791119706816 0.48% 0.49% 1.00x
is_int_type[uint256] 0.00020174980884932046 0.00020477344651259626 -1.50% -1.48% 0.99x
is_probably_enum[address] 0.0000642510007970536 0.00006613383718793935 -2.93% -2.85% 0.97x
is_probably_enum[empty] 0.00006060659007212223 0.00006252156871428009 -3.16% -3.06% 0.97x
is_probably_enum[enum] 0.00006399801511786233 0.00006589102461986991 -2.96% -2.87% 0.97x
is_probably_enum[lib-dot] 0.00006574003902559159 0.00006746356166713437 -2.62% -2.55% 0.97x
is_probably_enum[lib-enum] 0.00007216114794389764 0.00007566044556303074 -4.85% -4.63% 0.95x
is_probably_enum[uint256] 0.00006448217909700637 0.00006646630235517403 -3.08% -2.99% 0.97x
is_recognized_type[address] 0.00007827672183266949 0.00008275281626283126 -5.72% -5.41% 0.95x
is_recognized_type[array] 0.00008181917753532362 0.00008645307826924972 -5.66% -5.36% 0.95x
is_recognized_type[bool] 0.00007790058018942871 0.00008185175090458611 -5.07% -4.83% 0.95x
is_recognized_type[bytes] 0.0001499379310171151 0.0001602163079480484 -6.86% -6.42% 0.94x
is_recognized_type[bytes32] 0.00014906865122001132 0.00015473012627369986 -3.80% -3.66% 0.96x
is_recognized_type[bytes33] 0.00013900213061456118 0.00014307606207842566 -2.93% -2.85% 0.97x
is_recognized_type[empty] 0.00006065975039797791 0.00006414063214428965 -5.74% -5.43% 0.95x
is_recognized_type[enum] 0.0000819814014608402 0.0000888822454933119 -8.42% -7.76% 0.92x
is_recognized_type[int256] 0.00012362546433649944 0.00012922482938739765 -4.53% -4.33% 0.96x
is_recognized_type[invalid] 0.0000817957430226208 0.00008858735934619157 -8.30% -7.67% 0.92x
is_recognized_type[string] 0.00010116233160614514 0.00010696307847907336 -5.73% -5.42% 0.95x
is_recognized_type[tuple-array] 0.00008192008375713488 0.0000886007624416144 -8.16% -7.54% 0.92x
is_recognized_type[tuple] 0.00008217859791396248 0.00008882994992307192 -8.09% -7.49% 0.93x
is_recognized_type[uint256] 0.0001280738820625567 0.00012947362232087605 -1.09% -1.08% 0.99x
is_string_type[address] 0.00004315206176810609 0.000043033383332029096 0.28% 0.28% 1.00x
is_string_type[array] 0.00004454478772902453 0.00004404860275102078 1.11% 1.13% 1.01x
is_string_type[bool] 0.000043181017225173516 0.00004304104176354569 0.32% 0.33% 1.00x
is_string_type[bytes] 0.00004313325884822269 0.000042826854246648895 0.71% 0.72% 1.01x
is_string_type[bytes32] 0.00004334636309516581 0.000042555584612325944 1.82% 1.86% 1.02x
is_string_type[bytes33] 0.00004477701291201955 0.000044570443364548574 0.46% 0.46% 1.00x
is_string_type[empty] 0.00004320939429292157 0.00004299584737535181 0.49% 0.50% 1.00x
is_string_type[enum] 0.00004643020856420087 0.00004645506128774057 -0.05% -0.05% 1.00x
is_string_type[int256] 0.00004429928255090342 0.00004372376323375613 1.30% 1.32% 1.01x
is_string_type[invalid] 0.000044598692784053644 0.00004412502267307351 1.06% 1.07% 1.01x
is_string_type[string] 0.00004347333748107796 0.00004341340195951632 0.14% 0.14% 1.00x
is_string_type[tuple-array] 0.000043930932980510334 0.00004362296234403422 0.70% 0.71% 1.01x
is_string_type[tuple] 0.000043142000002206393 0.00004264466653440312 1.15% 1.17% 1.01x
is_string_type[uint256] 0.000041973792043211805 0.000043001667160306855 -2.45% -2.39% 0.98x
is_uint_type[address] 0.00022840325673889955 0.00022957055578832228 -0.51% -0.51% 0.99x
is_uint_type[array] 0.00022550487869525722 0.00023099062613692108 -2.43% -2.37% 0.98x
is_uint_type[bool] 0.0001978433110265078 0.0002008595890441818 -1.52% -1.50% 0.98x
is_uint_type[bytes] 0.0001980952336747989 0.00020141364132496035 -1.68% -1.65% 0.98x
is_uint_type[bytes32] 0.0002198637042045358 0.00022709563572955151 -3.29% -3.18% 0.97x
is_uint_type[bytes33] 0.0002303678609436093 0.00023012603987106645 0.10% 0.11% 1.00x
is_uint_type[empty] 0.00020069832921488343 0.00020558013986238068 -2.43% -2.37% 0.98x
is_uint_type[enum] 0.00021115495171889823 0.00021379467628177288 -1.25% -1.23% 0.99x
is_uint_type[int256] 0.00021877049396902142 0.00021491098233638537 1.76% 1.80% 1.02x
is_uint_type[invalid] 0.00020042799979998573 0.00019969247409312534 0.37% 0.37% 1.00x
is_uint_type[string] 0.00021979134417150257 0.00021408785680196142 2.59% 2.66% 1.03x
is_uint_type[tuple-array] 0.00020030330639519888 0.00020025632219289937 0.02% 0.02% 1.00x
is_uint_type[tuple] 0.00020142577550399997 0.00020081918826131176 0.30% 0.30% 1.00x
is_uint_type[uint256] 0.00023093556533807042 0.00023061053759973653 0.14% 0.14% 1.00x
length_of_array_type[dynamic] 0.0001659718772134136 0.00016663539767151534 -0.40% -0.40% 1.00x
length_of_array_type[fixed] 0.00017629728155415842 0.00017648873536724074 -0.11% -0.11% 1.00x
length_of_array_type[nested] 0.00018477234154206214 0.0001842722644617954 0.27% 0.27% 1.00x
map_abi_data 0.006433360866665478 0.005213153168591986 18.97% 23.41% 1.23x
normalize_event_input_types 0.0004215266146775738 0.0004336570802493187 -2.88% -2.80% 0.97x
receive_func_abi_exists 0.0003167860541914765 0.00031860190511986806 -0.57% -0.57% 0.99x
strip_abi_types 0.0016447803616680783 0.0016170598266565623 1.69% 1.71% 1.02x
sub_type_of_array_type[nested] 0.0001787301048331617 0.00018219248936709098 -1.94% -1.90% 0.98x
sub_type_of_array_type[simple] 0.00017107161019370168 0.00017335543654680422 -1.34% -1.32% 0.99x

web3/_utils/blocks - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_hex_encoded_block_hash[int] 0.000020346634832547883 0.00002234259873672628 -9.81% -8.93% 0.91x
is_hex_encoded_block_hash[invalid-g] 0.00008431273456788508 0.0000598123207150024 29.06% 40.96% 1.41x
is_hex_encoded_block_hash[none] 0.00002113957724140489 0.000022501310040034102 -6.44% -6.05% 0.94x
is_hex_encoded_block_hash[short] 0.00004416695195389622 0.000026672662006296662 39.61% 65.59% 1.66x
is_hex_encoded_block_hash[too-long] 0.00004439163406122222 0.00002676072677982743 39.72% 65.88% 1.66x
is_hex_encoded_block_hash[too-short] 0.000044039796123263806 0.000026571525566342847 39.66% 65.74% 1.66x
is_hex_encoded_block_hash[valid-a] 0.00009430740013314094 0.00007173672960247976 23.93% 31.46% 1.31x
is_hex_encoded_block_hash[valid-f] 0.00009388357795658124 0.00007040851240710991 25.00% 33.34% 1.33x
is_hex_encoded_block_number[int] 0.00002073281597602467 0.000022521615045137707 -8.63% -7.94% 0.92x
is_hex_encoded_block_number[invalid-g] 0.0001617193551416961 0.00021961572542317237 -35.80% -26.36% 0.74x
is_hex_encoded_block_number[max-64-a] 0.00010666585804951245 0.00008102076992731025 24.04% 31.65% 1.32x
is_hex_encoded_block_number[max-64-f] 0.00010323330027909006 0.00008228806611874634 20.29% 25.45% 1.25x
is_hex_encoded_block_number[none] 0.000020688109373590916 0.00002270287260857909 -9.74% -8.87% 0.91x
is_hex_encoded_block_number[small] 0.0000895653827227715 0.000043857103218041865 51.03% 104.22% 2.04x
is_hex_encoded_block_number[too-long] 0.00010706840917481892 0.00005967954057560802 44.26% 79.41% 1.79x
is_predefined_block_number[bytes-latest] 0.00003484448849615129 0.000028902688125038174 17.05% 20.56% 1.21x
is_predefined_block_number[bytes-pending] 0.00003268501844296392 0.00002952745971940775 9.66% 10.69% 1.11x
is_predefined_block_number[bytes-random] 0.00003155208915229392 0.000027573672477737336 12.61% 14.43% 1.14x
is_predefined_block_number[int] 0.00003374993934696193 0.000024918697074597335 26.17% 35.44% 1.35x
is_predefined_block_number[none] 0.00012257572482217132 0.00021579394244672476 -76.05% -43.20% 0.57x
is_predefined_block_number[object] 0.00015436456807964587 0.00024874600395557485 -61.14% -37.94% 0.62x
is_predefined_block_number[str-earliest] 0.00001319126427351173 0.000010105339402674096 23.39% 30.54% 1.31x
is_predefined_block_number[str-finalized] 0.000013219277612143231 0.000009915229197865205 24.99% 33.32% 1.33x
is_predefined_block_number[str-foo] 0.000013186570558148986 0.000009957434521070122 24.49% 32.43% 1.32x
is_predefined_block_number[str-latest] 0.000013116192877000624 0.000010159038914910208 22.55% 29.11% 1.29x
is_predefined_block_number[str-pending] 0.000013197726775612219 0.000010191378191335876 22.78% 29.50% 1.29x
is_predefined_block_number[str-safe] 0.000013185448298233044 0.000010096547417653812 23.43% 30.59% 1.31x
select_method_for_block_identifier[hash-bytes] 0.000050872217213117 0.000041372915173430524 18.67% 22.96% 1.23x
select_method_for_block_identifier[hash-hexstr] 0.00012926974529167448 0.000094356956076298 27.01% 37.00% 1.37x
select_method_for_block_identifier[invalid-none] 0.0009147729746157296 0.0010608916424388161 -15.97% -13.77% 0.86x
select_method_for_block_identifier[invalid-object] 0.0009516218473084131 0.0011200023674820447 -17.69% -15.03% 0.85x
select_method_for_block_identifier[number-hexstr] 0.00017127148356851728 0.00008641428816734119 49.55% 98.20% 1.98x
select_method_for_block_identifier[number-int] 0.00011006195961950265 0.00005883044652626954 46.55% 87.08% 1.87x
select_method_for_block_identifier[predefined-bytes] 0.000050037347028867437 0.00004295028292601915 14.16% 16.50% 1.17x
select_method_for_block_identifier[predefined-str] 0.0000271825341865564 0.00002083069888876567 23.37% 30.49% 1.30x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.00046066526144625513 0.0005450505362079631 -18.32% -15.48% 0.85x
PropertyCheckingFactory[big-valid] 0.00045621234510034555 0.000537552448043983 -17.83% -15.13% 0.85x
PropertyCheckingFactory[inheritance] 0.0009852022421682229 0.0009653882321053003 2.01% 2.05% 1.02x
PropertyCheckingFactory[invalid] 0.0004606658806643659 0.000542136525424634 -17.69% -15.03% 0.85x
PropertyCheckingFactory[multi-normalizer] 0.0004638436457350115 0.0005450038085950976 -17.50% -14.89% 0.85x
PropertyCheckingFactory[multi-prop] 0.0004606825712274497 0.0005415875410490084 -17.56% -14.94% 0.85x
PropertyCheckingFactory[normalized] 0.00045979821316576827 0.000543913798946455 -18.29% -15.46% 0.85x
PropertyCheckingFactory[valid] 0.0012408895543439544 0.0010153472396159176 18.18% 22.21% 1.22x
verify_attr[empty] 0.00010043564656448286 0.00015850619494471165 -57.82% -36.64% 0.63x
verify_attr[found-end] 0.000011532263853069705 0.000009972202474892064 13.53% 15.64% 1.16x
verify_attr[found-start] 0.000009352958025420306 0.0000073066019427062104 21.88% 28.01% 1.28x
verify_attr[large-found] 0.00013232050624304386 0.0001329730617343282 -0.49% -0.49% 1.00x
verify_attr[large-notfound] 0.00019708183243024975 0.0002560839311379794 -29.94% -23.04% 0.77x
verify_attr[notfound] 0.00010517954759037185 0.00016314048392183887 -55.11% -35.53% 0.64x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006546292472717565 0.0006576219206497209 -0.46% -0.46% 1.00x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.00007784592696047914 0.000022787500016959106 70.73% 241.62% 3.42x
percentile[100-90th] 0.00011089043504863437 0.000051773605244988704 53.31% 114.18% 2.14x
percentile[100k-99th] 0.036592950500026485 0.03630379224997731 0.79% 0.80% 1.01x
percentile[100k-median] 0.036445790111092384 0.03641498437040085 0.08% 0.08% 1.00x
percentile[10k-10th] 0.003925670270049684 0.003720584143898844 5.22% 5.51% 1.06x
percentile[10k-99th] 0.0037595857153432458 0.0036305859199968504 3.43% 3.55% 1.04x
percentile[10k-median] 0.003766669988736705 0.00367404597048459 2.46% 2.52% 1.03x
percentile[1k-99th] 0.00047923822037783544 0.0004176139555624775 12.86% 14.76% 1.15x
percentile[1M-median] 0.5929943998000453 0.598588228600056 -0.94% -0.93% 0.99x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.000012730146467142436 0.000006665897656432589 47.64% 90.97% 1.91x
to_bytes_if_hex[empty-str] 0.00031412759503964406 0.000037290345908919676 88.13% 742.38% 8.42x
to_bytes_if_hex[hexstr] 0.0003390741330405583 0.00004373984066965187 87.10% 675.21% 7.75x
to_bytes_if_hex[large-hex] 0.00034783813523920574 0.000048896319345787804 85.94% 611.38% 7.11x
to_bytes_if_hex[non-prefixed-hex] 0.00032152513155307743 0.0000406257090558374 87.36% 691.43% 7.91x
to_bytes_if_hex[nothex] 0.0004151514991401352 0.0002625414951583226 36.76% 58.13% 1.58x
to_bytes_if_hex[unicode] 0.0004229303718417336 0.0002714788265312528 35.81% 55.79% 1.56x
to_bytes_if_hex[zero] 0.0003392066519428474 0.00004331024736468728 87.23% 683.20% 7.83x
to_hex_if_bytes[bytes] 0.0002221615655397047 0.00004991921604406553 77.53% 345.04% 4.45x
to_hex_if_bytes[empty-bytes] 0.0002120564634433107 0.000039910660939927946 81.18% 431.33% 5.31x
to_hex_if_bytes[empty-str] 0.00009914909682224465 0.00018874202712248591 -90.36% -47.47% 0.53x
to_hex_if_bytes[hexstr] 0.0002809378619646948 0.00002264308815531573 91.94% 1140.72% 12.41x
to_hex_if_bytes[large-bytes] 0.00022854139132693314 0.00005212038079274161 77.19% 338.49% 4.38x
to_hex_if_bytes[non-prefixed-hex] 0.00010248343157844052 0.00019242678389524092 -87.76% -46.74% 0.53x
to_hex_if_bytes[not-hex] 0.00010417078439109648 0.00019096642480860408 -83.32% -45.45% 0.55x
to_hex_if_bytes[unicode] 0.00010971262819745624 0.00019666426795987335 -79.25% -44.21% 0.56x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.000307035842241267 0.00010108003881835244 67.08% 203.76% 3.04x
all_in_dict[empty-dict] 0.00026492427183785213 0.00007819033046999682 70.49% 238.82% 3.39x
all_in_dict[empty-list] 0.00026082349718942546 0.00008716865437845835 66.58% 199.22% 2.99x
all_in_dict[mixed-types] 0.00030988161576264473 0.00010324251984613121 66.68% 200.15% 3.00x
all_in_dict[no-overlap] 0.0002845010055533816 0.00008888978776533958 68.76% 220.06% 3.20x
all_in_dict[none-in] 0.00028380481936545783 0.00009097067178131554 67.95% 211.97% 3.12x
all_in_dict[one-in] 0.0002806467901241828 0.00009280576499669331 66.93% 202.40% 3.02x
all_in_dict[partial-overlap] 0.0003190887974444682 0.00010071957270732972 68.44% 216.81% 3.17x
all_in_dict[value-none] 0.0002838770973077764 0.00009236558396861991 67.46% 207.34% 3.07x
any_in_dict[all-in] 0.00028523166907655376 0.00008974548805314236 68.54% 217.82% 3.18x
any_in_dict[empty-dict] 0.00030849972857108075 0.00009372305739920751 69.62% 229.16% 3.29x
any_in_dict[empty-list] 0.0002606631825706432 0.00008955924480381837 65.64% 191.05% 2.91x
any_in_dict[mixed-types] 0.00028004602107950175 0.00008953203577916644 68.03% 212.79% 3.13x
any_in_dict[no-overlap] 0.0003269173557778138 0.00010710826464727303 67.24% 205.22% 3.05x
any_in_dict[none-in] 0.00029610007577102323 0.00009457893036736973 68.06% 213.07% 3.13x
any_in_dict[one-in] 0.0002815795575758051 0.00008805934659758468 68.73% 219.76% 3.20x
any_in_dict[partial-overlap] 0.0002814317026783953 0.00008950043525159141 68.20% 214.45% 3.14x
any_in_dict[value-none] 0.0002787923610177711 0.00008766969365097016 68.55% 218.00% 3.18x
either_set_is_a_subset[both-empty] 0.00016946301760445494 0.00015389847710693203 9.18% 10.11% 1.10x
either_set_is_a_subset[empty-set1] 0.0001694494707879877 0.00015507297806252447 8.48% 9.27% 1.09x
either_set_is_a_subset[empty-set2] 0.00025496621045642683 0.0002555181639659977 -0.22% -0.22% 1.00x
either_set_is_a_subset[identical] 0.00019169922052355299 0.00016685572560255492 12.96% 14.89% 1.15x
either_set_is_a_subset[mixed-types] 0.00019563186468280226 0.0001703753430797911 12.91% 14.82% 1.15x
either_set_is_a_subset[not-subset] 0.0002768877223936338 0.0002578348637410289 6.88% 7.39% 1.07x
either_set_is_a_subset[partial-overlap] 0.0002984385517165784 0.0002835154154959447 5.00% 5.26% 1.05x
either_set_is_a_subset[subset] 0.00019250102502350343 0.00016738253629840783 13.05% 15.01% 1.15x
either_set_is_a_subset[superset] 0.0003003701036816598 0.00029254403046168504 2.61% 2.68% 1.03x
none_in_dict[all-in] 0.0002974403040347204 0.00008873842782814046 70.17% 235.19% 3.35x
none_in_dict[empty-dict] 0.0003225890852446371 0.00009486699999816944 70.59% 240.04% 3.40x
none_in_dict[empty-list] 0.0002739580104157599 0.00008807424331598129 67.85% 211.05% 3.11x
none_in_dict[mixed-types] 0.0002966512870514146 0.00009193775273631384 69.01% 222.67% 3.23x
none_in_dict[no-overlap] 0.0003409528797803551 0.00010608888957607645 68.88% 221.38% 3.21x
none_in_dict[none-in] 0.0003012340009363345 0.00009445293884539247 68.64% 218.92% 3.19x
none_in_dict[one-in] 0.0002962320952117384 0.00008623855698819637 70.89% 243.50% 3.44x
none_in_dict[partial-overlap] 0.00029669900678608264 0.00008749338608567146 70.51% 239.11% 3.39x
none_in_dict[value-none] 0.0002949198381516087 0.00008757759630935994 70.30% 236.75% 3.37x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0015421474618904085 0.0015448474507662247 -0.18% -0.17% 1.00x
attributedict_hash[flat] 0.001100793559470448 0.0011187538783782624 -1.63% -1.61% 0.98x
attributedict_hash[nested] 0.0017325193808661193 0.0017658758765197568 -1.93% -1.89% 0.98x
attributedict_init[empty] 0.00008466641106076615 0.00008483149653177979 -0.19% -0.19% 1.00x
attributedict_init[large] 0.0001251580989537369 0.00012617854518258545 -0.82% -0.81% 0.99x
attributedict_init[small] 0.0000911943910178835 0.00009044674347962348 0.82% 0.83% 1.01x
mutableattributedict_delitem 0.0004299688624123312 0.0004006120093327995 6.83% 7.33% 1.07x
mutableattributedict_setitem 0.0003378391836440017 0.00033254258766814246 1.57% 1.59% 1.02x
namedelementonion_add 0.008718401166637099 0.027355394980646274 -213.77% -68.13% 0.32x
namedelementonion_as_tuple_of_middleware 0.00014645023898489067 0.00014634741179467647 0.07% 0.07% 1.00x
namedelementonion_contains 0.000030415148434439286 0.00002997589352877288 1.44% 1.47% 1.01x
namedelementonion_getitem 0.000027018718532260222 0.00002667042982329082 1.29% 1.31% 1.01x
namedelementonion_init[callables2] 0.00012512731418303825 0.00012474065532631391 0.31% 0.31% 1.00x
namedelementonion_init[callables3] 0.00015729143398746646 0.00015722833981613414 0.04% 0.04% 1.00x
namedelementonion_init[empty] 0.000043306907561448406 0.000044117544109651335 -1.87% -1.84% 0.98x
namedelementonion_inject 0.037240257200028284 0.02968939831914619 20.28% 25.43% 1.25x
namedelementonion_iter 0.00015423256237704616 0.00015292156527598876 0.85% 0.86% 1.01x
namedelementonion_remove 0.0006538752487651031 0.0006417749488181922 1.85% 1.89% 1.02x
namedelementonion_replace 0.0025108239668539607 0.002443796215879223 2.67% 2.74% 1.03x
readableattributedict_getitem[large] 0.00001531292051842171 0.000015222323076071878 0.59% 0.60% 1.01x
readableattributedict_getitem[small] 0.00001453895434191473 0.000014571581734396403 -0.22% -0.22% 1.00x
readableattributedict_init[empty] 0.000055292313883654045 0.00005289589754574466 4.33% 4.53% 1.05x
readableattributedict_init[large] 0.00008772053939154678 0.00008660118697456974 1.28% 1.29% 1.01x
readableattributedict_init[small] 0.000058689226899349475 0.00005832644368520134 0.62% 0.62% 1.01x
readableattributedict_recursive[list-in-dict] 0.0008984229653630931 0.0008929150101107887 0.61% 0.62% 1.01x
readableattributedict_recursive[nested-dict] 0.0009246180616033603 0.000921124145322759 0.38% 0.38% 1.00x
readableattributedict_recursive[set] 0.00047287551417410535 0.0004654272398876559 1.58% 1.60% 1.02x
tupleize_lists_nested[list-in-dict] 0.0008514466305101365 0.0008439509833264358 0.88% 0.89% 1.01x
tupleize_lists_nested[tuple-in-dict] 0.0009385777135071625 0.0009298745006277191 0.93% 0.94% 1.01x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.0003310943718872852 0.00024625350771727717 25.62% 34.45% 1.34x
simplecache_cache[100] 0.0027151945340604445 0.001943636665337991 28.42% 39.70% 1.40x
simplecache_cache[1000] 0.027494930594641757 0.018863922716984647 31.39% 45.75% 1.46x
simplecache_eviction[10] 0.0005743151631194286 0.0005749880408226419 -0.12% -0.12% 1.00x
simplecache_eviction[100] 0.0052340670736827485 0.005281038340413905 -0.90% -0.89% 0.99x
simplecache_pop[10] 0.00044255839623570756 0.00035141756660602677 20.59% 25.94% 1.26x
simplecache_pop[100] 0.0038591021395277918 0.0029554195030096347 23.42% 30.58% 1.31x
simplecache_retrieval[10] 0.00009220542375778327 0.00005519499165650539 40.14% 67.05% 1.67x
simplecache_retrieval[100] 0.0008460532419971271 0.00048799229685486493 42.32% 73.37% 1.73x

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