Skip to content

Conversation

@BobTheBuidler
Copy link
Owner

No description provided.

@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.0000018189310270096797 9.720761699867365e-7 46.56% 87.12% 1.87x
is_valid_name[a..eth] 0.000025016867478165776 0.000029546275223294975 -18.11% -15.33% 0.85x
is_valid_name[a.eth..] 0.000025655663725163254 0.000029752982669236634 -15.97% -13.77% 0.86x
is_valid_name[a.eth.] 0.000025535952495314008 0.000029717333222588788 -16.37% -14.07% 0.86x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23004941579997648 0.23472690819999115 -2.03% -1.99% 0.98x
is_valid_name[alice.eth] 0.010597633185573885 0.011118946215033882 -4.92% -4.69% 0.95x
is_valid_name[bob.eth] 0.006266412806250799 0.0067671086233829485 -7.99% -7.40% 0.93x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2564000317999671 0.22946418760002416 10.51% 11.74% 1.12x
is_valid_name[subdomain.alice.eth] 0.03078776087879691 0.03240970143752975 -5.27% -5.00% 0.95x
labelhash[] 0.00015356978310391512 0.00008333386917575422 45.74% 84.28% 1.84x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.252141497599996 0.24095529579999492 4.44% 4.64% 1.05x
labelhash[alice] 0.008574854412287143 0.008594090680663085 -0.22% -0.22% 1.00x
labelhash[bob] 0.0037975338255764584 0.0038750852529176208 -2.04% -2.00% 0.98x
labelhash[emoji\U0001f468\U0001f3fb] 0.31627598979998767 0.2632499041999381 16.77% 20.14% 1.20x
labelhash[xn--fiqs8s] 0.02726510345945138 0.026915123461520078 1.28% 1.30% 1.01x
namehash[] 0.000009877689972485945 0.000003310954369533595 66.48% 198.33% 2.98x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4661892724000154 0.46921464519996336 -0.65% -0.64% 0.99x
namehash[alice.eth] 0.02175930527659283 0.02213674579997031 -1.73% -1.71% 0.98x
namehash[bob.eth] 0.01332458928378536 0.013496147373337711 -1.29% -1.27% 0.99x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.515451349199975 0.45747160119999536 11.25% 12.67% 1.13x
namehash[subdomain.alice.eth] 0.06229359111763616 0.0637802399375147 -2.39% -2.33% 0.98x
nameprep[] 0.000008627924646651584 0.0000030810475007819564 64.29% 180.03% 2.80x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2329747371999929 0.24590217519998986 -5.55% -5.26% 0.95x
nameprep[alice.eth] 0.010541972020615204 0.011146181043961286 -5.73% -5.42% 0.95x
nameprep[bob.eth] 0.006265110183549732 0.006820397111853613 -8.86% -8.14% 0.92x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.2516875532000086 0.24160433259994535 4.01% 4.17% 1.04x
nameprep[subdomain.alice.eth] 0.030388342235275614 0.032370123612919646 -6.52% -6.12% 0.94x
parent[] 9.592670378582682e-7 8.367815779768927e-7 12.77% 14.64% 1.15x
parent[bar.eth] 0.0000036573322377260623 0.000002616787563075234 28.45% 39.76% 1.40x
parent[eth] 0.000002003476343063914 0.0000015374869789411367 23.26% 30.31% 1.30x
parent[foo.bar.eth] 0.000004268814795418852 0.000003297491848273558 22.75% 29.46% 1.29x
parent[sub.sub2.foo.bar.eth] 0.000005097163417272512 0.000004210621619234656 17.39% 21.05% 1.21x
reverse_domain[0x0000000000000000000000000000000000000000] 0.0000508225516896374 0.000016796269586710265 66.95% 202.58% 3.03x
reverse_domain[0x1111111111111111111111111111111111111111] 0.00005119221084497033 0.000016709766417673028 67.36% 206.36% 3.06x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.000051328798928737844 0.000016827549494881664 67.22% 205.03% 3.05x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.000013839833750097802 0.00001371572774650762 0.90% 0.90% 1.01x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00001372447657032532 0.00001369990925364334 0.18% 0.18% 1.00x
address[alice.eth] 0.000013978960452015876 0.000013614020572187814 2.61% 2.68% 1.03x
address[bob.eth] 0.000013792705951470148 0.000014160302005156092 -2.67% -2.60% 0.97x
address[emoji\U0001f468\U0001f3fb.eth] 0.000013711913699156086 0.000014130885230174298 -3.06% -2.96% 0.97x
address[subdomain.alice.eth] 0.000013628352756020836 0.000013640781517944709 -0.09% -0.09% 1.00x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.000145405909316675 0.00014494817986159675 0.31% 0.32% 1.00x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00014358509378081395 0.00014394962550994385 -0.25% -0.25% 1.00x
normalize_name_ensip15[alice.eth] 0.00014882367951420068 0.00014675222754719668 1.39% 1.41% 1.01x
normalize_name_ensip15[bob.eth] 0.0001451526629998264 0.0001464134967907874 -0.87% -0.86% 0.99x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.00014893339830556005 0.00014498575924092968 2.65% 2.72% 1.03x
normalize_name_ensip15[subdomain.alice.eth] 0.00014384336632515996 0.00014459179792304845 -0.52% -0.52% 0.99x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.0025418003531034374 0.0008081317837190969 68.21% 214.53% 3.15x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.0025530644511857076 0.0008137951129166001 68.12% 213.72% 3.14x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.0025571046437976425 0.0008128749724068847 68.21% 214.58% 3.15x
dns_encode_name[] 0.000006687029061722807 0.000004365911784822077 34.71% 53.16% 1.53x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22457143700003143 0.24403065980000066 -8.67% -7.97% 0.92x
dns_encode_name[alice.eth] 0.01065337970967497 0.010951798521748811 -2.80% -2.72% 0.97x
dns_encode_name[bob.eth] 0.006545127434215577 0.006682084925677606 -2.09% -2.05% 0.98x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.23589084939999339 0.22272280980000686 5.58% 5.91% 1.06x
dns_encode_name[subdomain.alice.eth] 0.030363998454545668 0.03189560553126114 -5.04% -4.80% 0.95x
estimate_auction_start_gas[labels0] 0.00007470345510518824 0.00004533451367728512 39.31% 64.78% 1.65x
estimate_auction_start_gas[labels1] 0.00007557924900646354 0.00004587788575551299 39.30% 64.74% 1.65x
estimate_auction_start_gas[labels2] 0.00006607527947706593 0.000045360102508106576 31.35% 45.67% 1.46x
is_empty_name[ ] 0.000055836057934596924 0.000040081304955706335 28.22% 39.31% 1.39x
is_empty_name[.] 0.00005476101300910615 0.00003972735525635096 27.45% 37.84% 1.38x
is_empty_name[0] 0.00005568635013829721 0.00003964971514105444 28.80% 40.45% 1.40x
is_empty_name[1] 0.000054880259543036493 0.000040200354289884256 26.75% 36.52% 1.37x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000057146292796455184 0.00003927427264036752 31.27% 45.51% 1.46x
is_empty_name[alice.eth] 0.00005723488019654314 0.00003921815262385368 31.48% 45.94% 1.46x
is_empty_name[bob.eth] 0.00005612203751400196 0.00003948546961847444 29.64% 42.13% 1.42x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.00006047891009383018 0.00004231607896329593 30.03% 42.92% 1.43x
is_empty_name[subdomain.alice.eth] 0.00005627885912334015 0.000039362911583551544 30.06% 42.97% 1.43x
is_none_or_zero_address[] 0.000042903203154226845 0.00004279423105795063 0.25% 0.25% 1.00x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.000049816629404716326 0.000048800805272659834 2.04% 2.08% 1.02x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.000053365566744491847 0.00004878347982019373 8.59% 9.39% 1.09x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.000051375663373332715 0.0000484838368497983 5.63% 5.96% 1.06x
is_valid_ens_name[] 0.0000018436344265377164 0.0000014082718197427108 23.61% 30.91% 1.31x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22717355459990357 0.23992900920006832 -5.61% -5.32% 0.95x
is_valid_ens_name[alice.eth] 0.010337499618553358 0.01109450996738281 -7.32% -6.82% 0.93x
is_valid_ens_name[bar] 0.000001934014833871895 0.000001462193648630139 24.40% 32.27% 1.32x
is_valid_ens_name[baz] 0.000001892930496847822 0.0000014381416744625279 24.03% 31.62% 1.32x
is_valid_ens_name[bob.eth] 0.006164621148146288 0.006638615974028736 -7.69% -7.14% 0.93x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.2542606412000623 0.2367795770000157 6.88% 7.38% 1.07x
is_valid_ens_name[foo] 0.0000019416929421771646 0.0000014447900272627245 25.59% 34.39% 1.34x
is_valid_ens_name[subdomain.alice.eth] 0.0303822474242376 0.035444983103443836 -16.66% -14.28% 0.86x
is_valid_name[] 0.0000016310831939813267 9.47084028205598e-7 41.94% 72.22% 1.72x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22829998580000394 0.24598687319999044 -7.75% -7.19% 0.93x
is_valid_name[alice.eth] 0.01026712179593316 0.011059326239121772 -7.72% -7.16% 0.93x
is_valid_name[bob.eth] 0.006167858243746593 0.006773131355255433 -9.81% -8.94% 0.91x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.25611180539995076 0.2298179935999997 10.27% 11.44% 1.11x
is_valid_name[subdomain.alice.eth] 0.030531541242453386 0.032598445516126257 -6.77% -6.34% 0.94x
label_to_hash[] 0.00013677526011834953 0.00008472698147458699 38.05% 61.43% 1.61x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.22913681740005815 0.2529059678000067 -10.37% -9.40% 0.91x
label_to_hash[alice] 0.007689609877848602 0.007730561095235721 -0.53% -0.53% 0.99x
label_to_hash[bob] 0.0034374921896532496 0.0034200299014083982 0.51% 0.51% 1.01x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.2751333726000212 0.24270623460001844 11.79% 13.36% 1.13x
label_to_hash[xn--fiqs8s] 0.024215226690465726 0.024990685829257793 -3.20% -3.10% 0.97x
normal_name_to_hash[] 0.0000017298687079915345 9.704422542285306e-7 43.90% 78.26% 1.78x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.25155673799999934 0.2451402465999763 2.55% 2.62% 1.03x
normal_name_to_hash[alice.eth] 0.012282816589737568 0.011359143746995507 7.52% 8.13% 1.08x
normal_name_to_hash[bob.eth] 0.007687044134901577 0.006970591615384053 9.32% 10.28% 1.10x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.28307302540010826 0.24038933860001635 15.08% 17.76% 1.18x
normal_name_to_hash[subdomain.alice.eth] 0.0358315354827592 0.033680717935472025 6.00% 6.39% 1.06x
normalize_name[] 0.000008294964876481216 0.000003082359605745168 62.84% 169.11% 2.69x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23127925200005847 0.24006826300001194 -3.80% -3.66% 0.96x
normalize_name[alice.eth] 0.010357373783506905 0.011066334260867141 -6.84% -6.41% 0.94x
normalize_name[bob.eth] 0.006260074403724683 0.006745490506498802 -7.75% -7.20% 0.93x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.25314940939997543 0.2295923703999506 9.31% 10.26% 1.10x
normalize_name[subdomain.alice.eth] 0.03063038884846664 0.0327744249032387 -7.00% -6.54% 0.93x
raw_name_to_hash[] 0.000009551157526312016 0.0000034083475528600664 64.31% 180.23% 2.80x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4554884155999844 0.5109881878000124 -12.18% -10.86% 0.89x
raw_name_to_hash[alice.eth] 0.021892434574472142 0.023874005886362036 -9.05% -8.30% 0.92x
raw_name_to_hash[bob.eth] 0.013411336306665664 0.014709668826098083 -9.68% -8.83% 0.91x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5094575149999855 0.5132045661999655 -0.74% -0.73% 0.99x
raw_name_to_hash[subdomain.alice.eth] 0.0629465261765076 0.0697649261333178 -10.83% -9.77% 0.90x
sha3_text[0] 0.00012125254230811588 0.00007641895253341477 36.98% 58.67% 1.59x
sha3_text[1] 0.00011993121712067758 0.00007651828638972491 36.20% 56.74% 1.57x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00012981269082122727 0.00008474741342431619 34.72% 53.18% 1.53x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.00012686649980069112 0.00008421739224633482 33.62% 50.64% 1.51x
sha3_text[alice.eth] 0.0001297051706028739 0.00008486615114413492 34.57% 52.83% 1.53x
sha3_text[alice] 0.00013014975720750875 0.00008531662040161132 34.45% 52.55% 1.53x
sha3_text[bob.eth] 0.00012964532857405673 0.00008552031966704699 34.04% 51.60% 1.52x
sha3_text[bob] 0.00013020288566368773 0.00008477437768034166 34.89% 53.59% 1.54x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00012995748144449271 0.00008563894781309412 34.10% 51.75% 1.52x
sha3_text[emoji\U0001f468\U0001f3fb] 0.00013037860956009723 0.00008543283076324339 34.47% 52.61% 1.53x
sha3_text[subdomain.alice.eth] 0.00012900066023617597 0.00008545995036465906 33.75% 50.95% 1.51x
sha3_text[xn--fiqs8s] 0.0001302871350443904 0.00008467356271754665 35.01% 53.87% 1.54x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.0002912101362678472 0.00025666617892323903 11.86% 13.46% 1.13x
fallback_func_abi_exists 0.0002556878566888055 0.00025341822099432895 0.89% 0.90% 1.01x
filter_by_argument_name[a] 0.0006527884852285873 0.00038834253855344334 40.51% 68.10% 1.68x
filter_by_argument_name[a+b] 0.0006803652854182364 0.0004159418584776077 38.86% 63.57% 1.64x
filter_by_argument_name[b] 0.0006574273638187356 0.00038505243446154057 41.43% 70.74% 1.71x
filter_by_argument_name[c] 0.0006567023980980418 0.0003859869034783236 41.22% 70.14% 1.70x
filter_by_argument_name[notfound] 0.0006417729869322191 0.00037835666613305106 41.05% 69.62% 1.70x
filter_by_argument_type[address] 0.000583963197870079 0.0005902607976332725 -1.08% -1.07% 0.99x
filter_by_argument_type[notatype] 0.0005799132393448983 0.0005891077988763254 -1.59% -1.56% 0.98x
filter_by_argument_type[string] 0.0005873663146640303 0.0005941096766915372 -1.15% -1.14% 0.99x
filter_by_argument_type[uint+address] 0.0005972987922968923 0.0006013185264491002 -0.67% -0.67% 0.99x
filter_by_argument_type[uint256] 0.0005948561702977449 0.0005957193844574051 -0.15% -0.14% 1.00x
filter_by_types[constructor] 0.000037075026735928684 0.000037974213592878105 -2.43% -2.37% 0.98x
filter_by_types[event] 0.00003709875202058531 0.00003710360922607051 -0.01% -0.01% 1.00x
filter_by_types[fallback] 0.00003739488531335827 0.000038035526686463246 -1.71% -1.68% 0.98x
filter_by_types[func+event] 0.000042024853912339495 0.00004225766003722369 -0.55% -0.55% 0.99x
filter_by_types[function] 0.00003712006026980325 0.000037333303207470955 -0.57% -0.57% 0.99x
filter_by_types[none] 0.000036432849137265655 0.00003646489300930609 -0.09% -0.09% 1.00x
filter_by_types[receive] 0.00003882913693291842 0.00003862824303872872 0.52% 0.52% 1.01x
find_constructor_abi_element_by_type 0.000034097849998300216 0.000033660753376426517 1.28% 1.30% 1.01x
get_abi_element_signature[custom] 0.00005294210184404245 0.000049721911238757154 6.08% 6.48% 1.06x
get_abi_element_signature[fallback] 0.00002122824073670569 0.00002118392722992715 0.21% 0.21% 1.00x
get_abi_element_signature[receive] 0.00002842481164803018 0.00002833459486471096 0.32% 0.32% 1.00x
get_abi_element_signature[transfer] 0.000057404632253508914 0.000054287241113457166 5.43% 5.74% 1.06x
get_name_from_abi_element_identifier[custom] 0.00004248808901403977 0.000038510740755612505 9.36% 10.33% 1.10x
get_name_from_abi_element_identifier[fallback] 0.000012171915038438793 0.000012076712851225757 0.78% 0.79% 1.01x
get_name_from_abi_element_identifier[func] 0.00004201893974133684 0.000038452293757786776 8.49% 9.28% 1.09x
get_name_from_abi_element_identifier[receive] 0.00001849667606704161 0.000017890333663639412 3.28% 3.39% 1.03x
get_tuple_type_str_parts[not-tuple] 0.000022352091570351896 0.00002275329467913599 -1.79% -1.76% 0.98x
get_tuple_type_str_parts[one-dim] 0.00007214300469003629 0.0000730854921765959 -1.31% -1.29% 0.99x
get_tuple_type_str_parts[plain] 0.00004749657134464536 0.00004708208104369989 0.87% 0.88% 1.01x
get_tuple_type_str_parts[two-dim] 0.00009310169383249683 0.0000916476921309036 1.56% 1.59% 1.02x
is_address_type[address] 0.00004292304657196254 0.00004256396997203058 0.84% 0.84% 1.01x
is_address_type[array] 0.00004624193909656703 0.000046198597785253705 0.09% 0.09% 1.00x
is_address_type[bool] 0.00004297291008682702 0.00004251483578827926 1.07% 1.08% 1.01x
is_address_type[bytes] 0.0000423273720755943 0.00004258826811418586 -0.62% -0.61% 0.99x
is_address_type[bytes32] 0.000044004188484410684 0.00004453974255501692 -1.22% -1.20% 0.99x
is_address_type[bytes33] 0.00004545936674793024 0.00004592207271227314 -1.02% -1.01% 0.99x
is_address_type[empty] 0.000042512945003715724 0.00004253007940683293 -0.04% -0.04% 1.00x
is_address_type[enum] 0.00004400318746521599 0.00004346574274058903 1.22% 1.24% 1.01x
is_address_type[int256] 0.000042859962414452356 0.00004238262507032501 1.11% 1.13% 1.01x
is_address_type[invalid] 0.000044049280520365845 0.000043744592690250455 0.69% 0.70% 1.01x
is_address_type[string] 0.0000421203125980667 0.00004290148353786828 -1.85% -1.82% 0.98x
is_address_type[tuple-array] 0.00004384273757817485 0.00004430474155513358 -1.05% -1.04% 0.99x
is_address_type[tuple] 0.00004274445266615945 0.000042451467208884974 0.69% 0.69% 1.01x
is_address_type[uint256] 0.00004568952033483453 0.00004519501005808825 1.08% 1.09% 1.01x
is_array_type[address] 0.00039216103900459125 0.00040304016294315145 -2.77% -2.70% 0.97x
is_array_type[array] 0.0003996481811939081 0.0004178057526088594 -4.54% -4.35% 0.96x
is_array_type[bool] 0.0003628114251481768 0.0003753165554658253 -3.45% -3.33% 0.97x
is_array_type[bytes] 0.0003727519256035191 0.0003947130696794546 -5.89% -5.56% 0.94x
is_array_type[bytes32] 0.00039245895899789806 0.0004044095523137536 -3.05% -2.96% 0.97x
is_array_type[bytes33] 0.0003918006979817522 0.0004080733263538592 -4.15% -3.99% 0.96x
is_array_type[empty] 0.00030002287752500394 0.0003196968048887863 -6.56% -6.15% 0.94x
is_array_type[enum] 0.00038284689767430983 0.00039704796344082986 -3.71% -3.58% 0.96x
is_array_type[int256] 0.00038260285377913865 0.00039999036170255297 -4.54% -4.35% 0.96x
is_array_type[invalid] 0.00039767595465450964 0.0004171807805303545 -4.90% -4.68% 0.95x
is_array_type[string] 0.0003807345230463128 0.00040057614738921675 -5.21% -4.95% 0.95x
is_array_type[tuple-array] 0.0004035769267905523 0.00041504742268545075 -2.84% -2.76% 0.97x
is_array_type[tuple] 0.0003748528581548775 0.00039080509434507866 -4.26% -4.08% 0.96x
is_array_type[uint256] 0.000391704068626354 0.00040249730434809385 -2.76% -2.68% 0.97x
is_bool_type[address] 0.0000434699042744028 0.00004375783071100098 -0.66% -0.66% 0.99x
is_bool_type[array] 0.00004484149161201328 0.00004367691686216744 2.60% 2.67% 1.03x
is_bool_type[bool] 0.00004286426203618354 0.00004431084471540112 -3.37% -3.26% 0.97x
is_bool_type[bytes] 0.000043868242347120156 0.000042531081571945104 3.05% 3.14% 1.03x
is_bool_type[bytes32] 0.00004335898850860212 0.00004378911018153263 -0.99% -0.98% 0.99x
is_bool_type[bytes33] 0.000044887092712238507 0.000043711762277833664 2.62% 2.69% 1.03x
is_bool_type[empty] 0.00004339669525047596 0.00004232460877769556 2.47% 2.53% 1.03x
is_bool_type[enum] 0.000045633093939560823 0.00004369347087699078 4.25% 4.44% 1.04x
is_bool_type[int256] 0.00004316039121514372 0.0000436727829010267 -1.19% -1.17% 0.99x
is_bool_type[invalid] 0.00004535743183713774 0.0000442555860431357 2.43% 2.49% 1.02x
is_bool_type[string] 0.00004385779881234014 0.00004362311112051552 0.54% 0.54% 1.01x
is_bool_type[tuple-array] 0.00004556930089900645 0.00004443556373530234 2.49% 2.55% 1.03x
is_bool_type[tuple] 0.000043752489535269245 0.00004282144038611186 2.13% 2.17% 1.02x
is_bool_type[uint256] 0.000043159101402208656 0.000044322094072172835 -2.69% -2.62% 0.97x
is_bytes_type[address] 0.00031878727758356926 0.00030725183945103904 3.62% 3.75% 1.04x
is_bytes_type[array] 0.0003176084287526563 0.00031291280245759884 1.48% 1.50% 1.02x
is_bytes_type[bool] 0.00028299128954811917 0.0002830115650836969 -0.01% -0.01% 1.00x
is_bytes_type[bytes] 0.0002757428124632258 0.0002798057504907068 -1.47% -1.45% 0.99x
is_bytes_type[bytes32] 0.0003142502800348864 0.0003051826892678548 2.89% 2.97% 1.03x
is_bytes_type[bytes33] 0.00030128897667751933 0.0003199358961215544 -6.19% -5.83% 0.94x
is_bytes_type[empty] 0.0002830861169750449 0.00028253107535832975 0.20% 0.20% 1.00x
is_bytes_type[enum] 0.00029773876627707904 0.0003021608257663214 -1.49% -1.46% 0.99x
is_bytes_type[int256] 0.00030749791513507227 0.00029539572583967894 3.94% 4.10% 1.04x
is_bytes_type[invalid] 0.00028257910488390964 0.00028263882321254873 -0.02% -0.02% 1.00x
is_bytes_type[string] 0.00029843607680930063 0.00028975153938036094 2.91% 3.00% 1.03x
is_bytes_type[tuple-array] 0.0002836895436048234 0.00027829349590190866 1.90% 1.94% 1.02x
is_bytes_type[tuple] 0.0002840783885734735 0.00028336337823359474 0.25% 0.25% 1.00x
is_bytes_type[uint256] 0.0003195289612309282 0.00031428747895274065 1.64% 1.67% 1.02x
is_int_type[address] 0.00019966542180590934 0.00020967721931955104 -5.01% -4.77% 0.95x
is_int_type[array] 0.00020014494862224955 0.00020319542154843386 -1.52% -1.50% 0.98x
is_int_type[bool] 0.0002009591860272113 0.0002021318722845674 -0.58% -0.58% 0.99x
is_int_type[bytes] 0.00022257440163803103 0.0002214304505613911 0.51% 0.52% 1.01x
is_int_type[bytes32] 0.00019996823230736832 0.00020413597700531756 -2.08% -2.04% 0.98x
is_int_type[bytes33] 0.0001987811847498741 0.00020420900205500502 -2.73% -2.66% 0.97x
is_int_type[empty] 0.00020533687556386707 0.00020028319261501356 2.46% 2.52% 1.03x
is_int_type[enum] 0.00023242580574522792 0.00022963511187287013 1.20% 1.22% 1.01x
is_int_type[int256] 0.00022950058453725445 0.00023861230342817237 -3.97% -3.82% 0.96x
is_int_type[invalid] 0.00020581007538877455 0.00020053635712912062 2.56% 2.63% 1.03x
is_int_type[string] 0.0002294472250213462 0.0002385882771229068 -3.98% -3.83% 0.96x
is_int_type[tuple-array] 0.00020107424320094485 0.00020283576550166168 -0.88% -0.87% 0.99x
is_int_type[tuple] 0.00021024359512211363 0.00022129473412255894 -5.26% -4.99% 0.95x
is_int_type[uint256] 0.00020174173554244866 0.0001975183265908028 2.09% 2.14% 1.02x
is_probably_enum[address] 0.00006517699785800425 0.00006882484567467732 -5.60% -5.30% 0.95x
is_probably_enum[empty] 0.00006267032701761582 0.00006379175584799884 -1.79% -1.76% 0.98x
is_probably_enum[enum] 0.00006642721210646277 0.00006872758072467097 -3.46% -3.35% 0.97x
is_probably_enum[lib-dot] 0.00006801462414069537 0.00006965514930755991 -2.41% -2.36% 0.98x
is_probably_enum[lib-enum] 0.00007424808242082167 0.00007551620269479744 -1.71% -1.68% 0.98x
is_probably_enum[uint256] 0.00006711845878119392 0.00006893164190506955 -2.70% -2.63% 0.97x
is_recognized_type[address] 0.00007808973220950789 0.00008398748361005189 -7.55% -7.02% 0.93x
is_recognized_type[array] 0.00008260357788089859 0.00008850030946958765 -7.14% -6.66% 0.93x
is_recognized_type[bool] 0.00007714771300321738 0.00008331355441226815 -7.99% -7.40% 0.93x
is_recognized_type[bytes] 0.00014967511595245314 0.0001611410915787631 -7.66% -7.12% 0.93x
is_recognized_type[bytes32] 0.0001477613807184197 0.00015479727140941112 -4.76% -4.55% 0.95x
is_recognized_type[bytes33] 0.00013954318347553216 0.00014529642094261686 -4.12% -3.96% 0.96x
is_recognized_type[empty] 0.00006176108533531758 0.00006642982647060309 -7.56% -7.03% 0.93x
is_recognized_type[enum] 0.00008385067697304534 0.00008948961392966355 -6.72% -6.30% 0.94x
is_recognized_type[int256] 0.00012396724241910687 0.0001306738170517622 -5.41% -5.13% 0.95x
is_recognized_type[invalid] 0.00008345833392398577 0.00009074152390804702 -8.73% -8.03% 0.92x
is_recognized_type[string] 0.00010012606758503437 0.00010711730704967399 -6.98% -6.53% 0.93x
is_recognized_type[tuple-array] 0.0000828679448192591 0.00008938283262530745 -7.86% -7.29% 0.93x
is_recognized_type[tuple] 0.00008374164904957336 0.00008955650234872877 -6.94% -6.49% 0.94x
is_recognized_type[uint256] 0.0001252693980984274 0.0001317905150972032 -5.21% -4.95% 0.95x
is_string_type[address] 0.00004266991106863606 0.00004240665518482844 0.62% 0.62% 1.01x
is_string_type[array] 0.00004411764181895747 0.000043701757047577933 0.94% 0.95% 1.01x
is_string_type[bool] 0.000043063617916887 0.000041230611508760895 4.26% 4.45% 1.04x
is_string_type[bytes] 0.00004285442659082082 0.000042543075262095956 0.73% 0.73% 1.01x
is_string_type[bytes32] 0.00004260078337094521 0.00004242158757966072 0.42% 0.42% 1.00x
is_string_type[bytes33] 0.000043684315004768435 0.00004364879083207961 0.08% 0.08% 1.00x
is_string_type[empty] 0.000042120516651951625 0.000042282151500213266 -0.38% -0.38% 1.00x
is_string_type[enum] 0.00004637165821783475 0.00004585568192534981 1.11% 1.13% 1.01x
is_string_type[int256] 0.00004430217273370793 0.000043901497867550353 0.90% 0.91% 1.01x
is_string_type[invalid] 0.00004387859325274763 0.000044289032498298177 -0.94% -0.93% 0.99x
is_string_type[string] 0.000042257654263070105 0.000042564828112729385 -0.73% -0.72% 0.99x
is_string_type[tuple-array] 0.00004446207053952617 0.00004409207411200457 0.83% 0.84% 1.01x
is_string_type[tuple] 0.00004249943767712559 0.00004299175086445335 -1.16% -1.15% 0.99x
is_string_type[uint256] 0.00004289063818006881 0.00004230165717906378 1.37% 1.39% 1.01x
is_uint_type[address] 0.00022401188832909248 0.00022677363492818253 -1.23% -1.22% 0.99x
is_uint_type[array] 0.0002324796847475862 0.0002166655850729666 6.80% 7.30% 1.07x
is_uint_type[bool] 0.00019798528419924164 0.00020989765344548106 -6.02% -5.68% 0.94x
is_uint_type[bytes] 0.00020087515137260525 0.0002052573115913841 -2.18% -2.13% 0.98x
is_uint_type[bytes32] 0.00023052158779780072 0.00022676903758678368 1.63% 1.65% 1.02x
is_uint_type[bytes33] 0.00022631513089695359 0.0002288845458087075 -1.14% -1.12% 0.99x
is_uint_type[empty] 0.0002003277135702148 0.00020483546054098816 -2.25% -2.20% 0.98x
is_uint_type[enum] 0.0002162828443019813 0.00021676149164532015 -0.22% -0.22% 1.00x
is_uint_type[int256] 0.00021146158684681423 0.00022272548571897134 -5.33% -5.06% 0.95x
is_uint_type[invalid] 0.00020930487716488055 0.00019987963170490012 4.50% 4.72% 1.05x
is_uint_type[string] 0.00021700282760004426 0.00021690331258234315 0.05% 0.05% 1.00x
is_uint_type[tuple-array] 0.00020437890790403652 0.00020392673825025073 0.22% 0.22% 1.00x
is_uint_type[tuple] 0.0002016338091087096 0.0002058246041212576 -2.08% -2.04% 0.98x
is_uint_type[uint256] 0.0002254377088399684 0.00023709812796119623 -5.17% -4.92% 0.95x
length_of_array_type[dynamic] 0.00016475965054019764 0.00016817643019243416 -2.07% -2.03% 0.98x
length_of_array_type[fixed] 0.00017814097064470532 0.00017754414092675783 0.34% 0.34% 1.00x
length_of_array_type[nested] 0.0001870677650746118 0.00018552695076983023 0.82% 0.83% 1.01x
map_abi_data 0.006353091832116548 0.005202374584270954 18.11% 22.12% 1.22x
normalize_event_input_types 0.0004231763191500906 0.0004293251526563538 -1.45% -1.43% 0.99x
receive_func_abi_exists 0.0003220480827648224 0.0003234817519825541 -0.45% -0.44% 1.00x
strip_abi_types 0.0016275060150958982 0.0015821979302351893 2.78% 2.86% 1.03x
sub_type_of_array_type[nested] 0.00018143998742307832 0.00018536644067070643 -2.16% -2.12% 0.98x
sub_type_of_array_type[simple] 0.00017430563074494646 0.00017772609836746845 -1.96% -1.92% 0.98x

web3/_utils/blocks - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_hex_encoded_block_hash[int] 0.000020491442614372492 0.00002221953731585688 -8.43% -7.78% 0.92x
is_hex_encoded_block_hash[invalid-g] 0.00008439515239756854 0.00006150036737640258 27.13% 37.23% 1.37x
is_hex_encoded_block_hash[none] 0.000020731665151050844 0.000022538631619439304 -8.72% -8.02% 0.92x
is_hex_encoded_block_hash[short] 0.0000444504370041094 0.000028096528797910204 36.79% 58.21% 1.58x
is_hex_encoded_block_hash[too-long] 0.00004565240123290521 0.000027538694154559126 39.68% 65.78% 1.66x
is_hex_encoded_block_hash[too-short] 0.00004504542037684137 0.000027578856808638113 38.78% 63.33% 1.63x
is_hex_encoded_block_hash[valid-a] 0.00009555644343203349 0.00007220078688782627 24.44% 32.35% 1.32x
is_hex_encoded_block_hash[valid-f] 0.00009541115583063855 0.00007276511797297188 23.74% 31.12% 1.31x
is_hex_encoded_block_number[int] 0.00002053457020620628 0.00002126632150298441 -3.56% -3.44% 0.97x
is_hex_encoded_block_number[invalid-g] 0.00016397536177425925 0.00022637840787798544 -38.06% -27.57% 0.72x
is_hex_encoded_block_number[max-64-a] 0.0001058584958891002 0.00008439996180676154 20.27% 25.42% 1.25x
is_hex_encoded_block_number[max-64-f] 0.00010075506030698835 0.00008434962002811441 16.28% 19.45% 1.19x
is_hex_encoded_block_number[none] 0.00002061086674324379 0.00002186818223440172 -6.10% -5.75% 0.94x
is_hex_encoded_block_number[small] 0.00009116128632282118 0.00004864745641037382 46.64% 87.39% 1.87x
is_hex_encoded_block_number[too-long] 0.00010760943332774309 0.00006350298327686208 40.99% 69.46% 1.69x
is_predefined_block_number[bytes-latest] 0.00003266760969144471 0.000028883390101669064 11.58% 13.10% 1.13x
is_predefined_block_number[bytes-pending] 0.00003215855148764755 0.000028716848719626606 10.70% 11.98% 1.12x
is_predefined_block_number[bytes-random] 0.00003166129437992285 0.000028171554396454304 11.02% 12.39% 1.12x
is_predefined_block_number[int] 0.000033316401846856034 0.000024056335402497406 27.79% 38.49% 1.38x
is_predefined_block_number[none] 0.00012316471011900433 0.00021497329664580192 -74.54% -42.71% 0.57x
is_predefined_block_number[object] 0.00015523298766966426 0.00025233046859395204 -62.55% -38.48% 0.62x
is_predefined_block_number[str-earliest] 0.000013208670539569026 0.00000954929758317612 27.70% 38.32% 1.38x
is_predefined_block_number[str-finalized] 0.000013218029711324529 0.000009528092517942244 27.92% 38.73% 1.39x
is_predefined_block_number[str-foo] 0.000013172465181556363 0.00000925253687945516 29.76% 42.37% 1.42x
is_predefined_block_number[str-latest] 0.000013237119680809099 0.000009622350576661729 27.31% 37.57% 1.38x
is_predefined_block_number[str-pending] 0.000013148588276923826 0.000009682449660909859 26.36% 35.80% 1.36x
is_predefined_block_number[str-safe] 0.000013170653176357007 0.000009428272301656948 28.41% 39.69% 1.40x
select_method_for_block_identifier[hash-bytes] 0.00005101326060940127 0.00004293908981436834 15.83% 18.80% 1.19x
select_method_for_block_identifier[hash-hexstr] 0.00012927484189542617 0.00009150029516892043 29.22% 41.28% 1.41x
select_method_for_block_identifier[invalid-none] 0.0009007508660778657 0.0010679320424338238 -18.56% -15.65% 0.84x
select_method_for_block_identifier[invalid-object] 0.0009351761671620513 0.0011016668317645726 -17.80% -15.11% 0.85x
select_method_for_block_identifier[number-hexstr] 0.00016918676112609015 0.00008680598546592947 48.69% 94.90% 1.95x
select_method_for_block_identifier[number-int] 0.00011210601222187127 0.00006052858633704982 46.01% 85.21% 1.85x
select_method_for_block_identifier[predefined-bytes] 0.000050606621551976076 0.00004398781523817809 13.08% 15.05% 1.15x
select_method_for_block_identifier[predefined-str] 0.000027282842756428287 0.000019961734516038528 26.83% 36.68% 1.37x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.0004702223073211491 0.0005457065061148531 -16.05% -13.83% 0.86x
PropertyCheckingFactory[big-valid] 0.00046692108932994863 0.0005469755119285289 -17.15% -14.64% 0.85x
PropertyCheckingFactory[inheritance] 0.0009845411409600715 0.0009629655215276447 2.19% 2.24% 1.02x
PropertyCheckingFactory[invalid] 0.0004657357547287335 0.0005445030289294542 -16.91% -14.47% 0.86x
PropertyCheckingFactory[multi-normalizer] 0.00046785817886521645 0.0005507708559698149 -17.72% -15.05% 0.85x
PropertyCheckingFactory[multi-prop] 0.00046679187180873727 0.0005653121182845747 -21.11% -17.43% 0.83x
PropertyCheckingFactory[normalized] 0.00047094552826035935 0.0005477206971191946 -16.30% -14.02% 0.86x
PropertyCheckingFactory[valid] 0.001262328065050961 0.0010164178264940738 19.48% 24.19% 1.24x
verify_attr[empty] 0.00010199955437092731 0.00016048674045768954 -57.34% -36.44% 0.64x
verify_attr[found-end] 0.000011704028500336894 0.000009884153801560611 15.55% 18.41% 1.18x
verify_attr[found-start] 0.000009252790015795931 0.000007475406162033843 19.21% 23.78% 1.24x
verify_attr[large-found] 0.00012785957208176499 0.00012556167001154627 1.80% 1.83% 1.02x
verify_attr[large-notfound] 0.00019982196588708387 0.00025833876117560024 -29.28% -22.65% 0.77x
verify_attr[notfound] 0.00011031711716381125 0.00016602929095530772 -50.50% -33.56% 0.66x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006519594406283356 0.0006649512289561661 -1.99% -1.95% 0.98x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.00007912404064609985 0.000023288005205514305 70.57% 239.76% 3.40x
percentile[100-90th] 0.0001110815629929251 0.00005227252450479153 52.94% 112.50% 2.13x
percentile[100k-99th] 0.036390684518530045 0.03643471589284023 -0.12% -0.12% 1.00x
percentile[100k-median] 0.036469188481490805 0.03635994903703687 0.30% 0.30% 1.00x
percentile[10k-10th] 0.003799980768052983 0.0036354140693385926 4.33% 4.53% 1.05x
percentile[10k-99th] 0.0037408257196990358 0.003641869204372172 2.65% 2.72% 1.03x
percentile[10k-median] 0.003699448704456637 0.0036581566483617433 1.12% 1.13% 1.01x
percentile[1k-99th] 0.00046562696068574533 0.000394457376880332 15.28% 18.04% 1.18x
percentile[1M-median] 0.5590149010000005 0.5608756386000096 -0.33% -0.33% 1.00x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.00001263847161593117 0.0000068280402452199 45.97% 85.10% 1.85x
to_bytes_if_hex[empty-str] 0.00030751018151132083 0.000036389363714741674 88.17% 745.06% 8.45x
to_bytes_if_hex[hexstr] 0.0003362920548112451 0.000046368678554867914 86.21% 625.26% 7.25x
to_bytes_if_hex[large-hex] 0.0003389924520908286 0.000051663565843533775 84.76% 556.15% 6.56x
to_bytes_if_hex[non-prefixed-hex] 0.0003195374694566242 0.000043662477426501195 86.34% 631.84% 7.32x
to_bytes_if_hex[nothex] 0.0004115128673833981 0.0002722734570283 33.84% 51.14% 1.51x
to_bytes_if_hex[unicode] 0.00042726689699192956 0.0002783854560302628 34.85% 53.48% 1.53x
to_bytes_if_hex[zero] 0.00033492450944192247 0.00004664523008699432 86.07% 618.03% 7.18x
to_hex_if_bytes[bytes] 0.00022791576520255743 0.000050731978934303905 77.74% 349.25% 4.49x
to_hex_if_bytes[empty-bytes] 0.00021049324035778423 0.000038576237501341874 81.67% 445.66% 5.46x
to_hex_if_bytes[empty-str] 0.00010228854254522696 0.00019287009752777485 -88.55% -46.97% 0.53x
to_hex_if_bytes[hexstr] 0.00028036358386598404 0.000023766609972710324 91.52% 1079.65% 11.80x
to_hex_if_bytes[large-bytes] 0.00022751135267587696 0.00005337375878619153 76.54% 326.26% 4.26x
to_hex_if_bytes[non-prefixed-hex] 0.00010407472479399157 0.00019453273869982895 -86.92% -46.50% 0.53x
to_hex_if_bytes[not-hex] 0.00010423746363913313 0.0001950019027853916 -87.07% -46.55% 0.53x
to_hex_if_bytes[unicode] 0.00010920642347309474 0.00019982104546462041 -82.98% -45.35% 0.55x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.0003066697053988704 0.00010472707738920511 65.85% 192.83% 2.93x
all_in_dict[empty-dict] 0.0002608489094952177 0.00007754706466463394 70.27% 236.37% 3.36x
all_in_dict[empty-list] 0.00025718726814457407 0.00009026758693386573 64.90% 184.92% 2.85x
all_in_dict[mixed-types] 0.0003137366201955314 0.00010675217376545146 65.97% 193.89% 2.94x
all_in_dict[no-overlap] 0.0002801761903733554 0.00009146799525874603 67.35% 206.31% 3.06x
all_in_dict[none-in] 0.00027906236475468864 0.0000914964387171279 67.21% 205.00% 3.05x
all_in_dict[one-in] 0.0002823450853131962 0.00009684985534911948 65.70% 191.53% 2.92x
all_in_dict[partial-overlap] 0.0003256420706072257 0.0001019736714223999 68.69% 219.34% 3.19x
all_in_dict[value-none] 0.00028653022660348436 0.00009701842285088357 66.14% 195.34% 2.95x
any_in_dict[all-in] 0.0002788004810330053 0.00009008746602543736 67.69% 209.48% 3.09x
any_in_dict[empty-dict] 0.0003192889758381776 0.00009139042824722016 71.38% 249.37% 3.49x
any_in_dict[empty-list] 0.0002640144747202699 0.00008705801045331139 67.03% 203.26% 3.03x
any_in_dict[mixed-types] 0.0002779664140676249 0.00009268101111387455 66.66% 199.92% 3.00x
any_in_dict[no-overlap] 0.00032430385269176254 0.00010663791028729616 67.12% 204.12% 3.04x
any_in_dict[none-in] 0.0002906271196740881 0.00009454754091749707 67.47% 207.39% 3.07x
any_in_dict[one-in] 0.00027534934664072565 0.00008940466905681933 67.53% 207.98% 3.08x
any_in_dict[partial-overlap] 0.000277546942382992 0.00009040452034085181 67.43% 207.01% 3.07x
any_in_dict[value-none] 0.0002743502016002708 0.00008927968724148475 67.46% 207.29% 3.07x
either_set_is_a_subset[both-empty] 0.0001736804175101099 0.000153790908489579 11.45% 12.93% 1.13x
either_set_is_a_subset[empty-set1] 0.00017204696643562253 0.0001543735132154459 10.27% 11.45% 1.11x
either_set_is_a_subset[empty-set2] 0.000257401576515119 0.00024824694270631344 3.56% 3.69% 1.04x
either_set_is_a_subset[identical] 0.00018857012577748868 0.00017032273616111803 9.68% 10.71% 1.11x
either_set_is_a_subset[mixed-types] 0.00019358542332286482 0.00017423063227697667 10.00% 11.11% 1.11x
either_set_is_a_subset[not-subset] 0.000273195792693312 0.0002597863111368626 4.91% 5.16% 1.05x
either_set_is_a_subset[partial-overlap] 0.0003008288082807499 0.0002830525190022669 5.91% 6.28% 1.06x
either_set_is_a_subset[subset] 0.00019404169100417605 0.0001776090878590426 8.47% 9.25% 1.09x
either_set_is_a_subset[superset] 0.0002983161568436577 0.0002906752678514345 2.56% 2.63% 1.03x
none_in_dict[all-in] 0.0002929739666667176 0.00009023932757803523 69.20% 224.66% 3.25x
none_in_dict[empty-dict] 0.00032031276532686894 0.00009177481615492228 71.35% 249.02% 3.49x
none_in_dict[empty-list] 0.0002761180101234025 0.0000869091961294898 68.52% 217.71% 3.18x
none_in_dict[mixed-types] 0.0002970374320200101 0.00008992299015151758 69.73% 230.32% 3.30x
none_in_dict[no-overlap] 0.00033667457596068206 0.00010603534242981948 68.51% 217.51% 3.18x
none_in_dict[none-in] 0.00030317576946220124 0.00009432000800983587 68.89% 221.43% 3.21x
none_in_dict[one-in] 0.0002922600143894885 0.00008836470520614653 69.77% 230.74% 3.31x
none_in_dict[partial-overlap] 0.00029270915147154645 0.00008919947549172841 69.53% 228.15% 3.28x
none_in_dict[value-none] 0.00028937620928890347 0.00008918670276316454 69.18% 224.46% 3.24x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0014887398931764694 0.0014808866396419985 0.53% 0.53% 1.01x
attributedict_hash[flat] 0.0011372698453976612 0.0011057305943193217 2.77% 2.85% 1.03x
attributedict_hash[nested] 0.001748154616433651 0.0017339250728821492 0.81% 0.82% 1.01x
attributedict_init[empty] 0.00008542577925580973 0.00008723070329796791 -2.11% -2.07% 0.98x
attributedict_init[large] 0.00012613755977004086 0.00012769511344641756 -1.23% -1.22% 0.99x
attributedict_init[small] 0.00009208853869657367 0.00009100385244139996 1.18% 1.19% 1.01x
mutableattributedict_delitem 0.000405747527247395 0.00040496989793298044 0.19% 0.19% 1.00x
mutableattributedict_setitem 0.0003375232395643251 0.00034017258080807966 -0.78% -0.78% 0.99x
namedelementonion_add 0.028616113103447364 0.024867454095229617 13.10% 15.07% 1.15x
namedelementonion_as_tuple_of_middleware 0.0001486566911546425 0.0001465533526293762 1.41% 1.44% 1.01x
namedelementonion_contains 0.00003148300383560204 0.00003143882699885073 0.14% 0.14% 1.00x
namedelementonion_getitem 0.000028614865173587775 0.000027575363563045252 3.63% 3.77% 1.04x
namedelementonion_init[callables2] 0.00013351517230923696 0.00013327494607382487 0.18% 0.18% 1.00x
namedelementonion_init[callables3] 0.00016698215868913386 0.00016635381949720637 0.38% 0.38% 1.00x
namedelementonion_init[empty] 0.000043093683181367295 0.00004325527353562224 -0.37% -0.37% 1.00x
namedelementonion_inject 0.033481251556965234 0.03153659244185556 5.81% 6.17% 1.06x
namedelementonion_iter 0.00015296102082195236 0.0001535638301948704 -0.39% -0.39% 1.00x
namedelementonion_remove 0.0007161485954060654 0.0006942840808440521 3.05% 3.15% 1.03x
namedelementonion_replace 0.002581902194377182 0.0025816023953425557 0.01% 0.01% 1.00x
readableattributedict_getitem[large] 0.00001540280669818685 0.0000151082418146084 1.91% 1.95% 1.02x
readableattributedict_getitem[small] 0.000014634769017864688 0.000014608312040872906 0.18% 0.18% 1.00x
readableattributedict_init[empty] 0.000052342344748532715 0.0000523522189244519 -0.02% -0.02% 1.00x
readableattributedict_init[large] 0.00008625067811636046 0.00008921608407281934 -3.44% -3.32% 0.97x
readableattributedict_init[small] 0.000056176868659776026 0.000056599821979365234 -0.75% -0.75% 0.99x
readableattributedict_recursive[list-in-dict] 0.0008775374128857182 0.0008877256288358399 -1.16% -1.15% 0.99x
readableattributedict_recursive[nested-dict] 0.0009176388483760418 0.0009000371018734947 1.92% 1.96% 1.02x
readableattributedict_recursive[set] 0.00046794578947529226 0.0004592080500243408 1.87% 1.90% 1.02x
tupleize_lists_nested[list-in-dict] 0.0008562170836795002 0.0008426880799686921 1.58% 1.61% 1.02x
tupleize_lists_nested[tuple-in-dict] 0.0009359802950797768 0.0009134240071503148 2.41% 2.47% 1.02x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.00033400216998753204 0.00026188538290643627 21.59% 27.54% 1.28x
simplecache_cache[100] 0.0026708117526610255 0.0019879947145705324 25.57% 34.35% 1.34x
simplecache_cache[1000] 0.028269608111145317 0.019095681754701013 32.45% 48.04% 1.48x
simplecache_eviction[10] 0.0005913530837325109 0.0005964247460319384 -0.86% -0.85% 0.99x
simplecache_eviction[100] 0.005282109322740359 0.005273007813833432 0.17% 0.17% 1.00x
simplecache_pop[10] 0.00046563906556609667 0.0003760677393539429 19.24% 23.82% 1.24x
simplecache_pop[100] 0.0037973393224454374 0.0029891101533713687 21.28% 27.04% 1.27x
simplecache_retrieval[10] 0.00009192333071354403 0.000059994383479148394 34.73% 53.22% 1.53x
simplecache_retrieval[100] 0.0007982736116468988 0.0004838532971780031 39.39% 64.98% 1.65x

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 17, 2025

CodSpeed Performance Report

Merging #129 will not alter performance

Comparing websocket (e36eda2) with master (5d1dd0e)

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
Copy link

Pytest Benchmark Diff

ens/base_ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_valid_name[] 0.0000018872320328693047 9.96657858896755e-7 47.19% 89.36% 1.89x
is_valid_name[a..eth] 0.000024731836434055543 0.000029171815235552085 -17.95% -15.22% 0.85x
is_valid_name[a.eth..] 0.000025592791344203404 0.00002925458845860564 -14.31% -12.52% 0.87x
is_valid_name[a.eth.] 0.000025365371751381975 0.00002941061649858202 -15.95% -13.75% 0.86x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22449179860000185 0.2325092230001246 -3.57% -3.45% 0.97x
is_valid_name[alice.eth] 0.010372568958773533 0.010899870923930908 -5.08% -4.84% 0.95x
is_valid_name[bob.eth] 0.006185639515720798 0.006777361993249235 -9.57% -8.73% 0.91x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.23894179100007024 0.24589523100007682 -2.91% -2.83% 0.97x
is_valid_name[subdomain.alice.eth] 0.030534664441167 0.03142297331250177 -2.91% -2.83% 0.97x
labelhash[] 0.00013414115152230076 0.00008193959997614657 38.92% 63.71% 1.64x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.22554388600001402 0.23105592959996102 -2.44% -2.39% 0.98x
labelhash[alice] 0.007681255070302484 0.007760776352008179 -1.04% -1.02% 0.99x
labelhash[bob] 0.0033792691172328856 0.0034783152342653056 -2.93% -2.85% 0.97x
labelhash[emoji\U0001f468\U0001f3fb] 0.2574970656000005 0.24144455919999927 6.23% 6.65% 1.07x
labelhash[xn--fiqs8s] 0.023871084738077895 0.02477256243900029 -3.78% -3.64% 0.96x
namehash[] 0.000009626504251595273 0.0000031748618097228293 67.02% 203.21% 3.03x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4516160271999524 0.4715444185999786 -4.41% -4.23% 0.96x
namehash[alice.eth] 0.02203134272341192 0.022461468456511917 -1.95% -1.91% 0.98x
namehash[bob.eth] 0.01402142605405282 0.013455700239974248 4.03% 4.20% 1.04x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.5308229942000253 0.4910327034000147 7.50% 8.10% 1.08x
namehash[subdomain.alice.eth] 0.06366717950002965 0.06482977843751314 -1.83% -1.79% 0.98x
nameprep[] 0.00000869357124629591 0.0000029539520495809473 66.02% 194.30% 2.94x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2290428575999613 0.23414785679997294 -2.23% -2.18% 0.98x
nameprep[alice.eth] 0.010224388144333903 0.010822112450523991 -5.85% -5.52% 0.94x
nameprep[bob.eth] 0.006364120981602438 0.006568712084420251 -3.21% -3.11% 0.97x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.2722429925999677 0.23820257700003822 12.50% 14.29% 1.14x
nameprep[subdomain.alice.eth] 0.030844341939372855 0.031431901968765885 -1.90% -1.87% 0.98x
parent[] 9.730101458642083e-7 8.542153082355068e-7 12.21% 13.91% 1.14x
parent[bar.eth] 0.000003673864284581332 0.000002651453487507834 27.83% 38.56% 1.39x
parent[eth] 0.000002067850359026969 0.0000014390426390418999 30.41% 43.70% 1.44x
parent[foo.bar.eth] 0.00000434616541172201 0.0000032105691591173973 26.13% 35.37% 1.35x
parent[sub.sub2.foo.bar.eth] 0.0000050858701272373255 0.00000416781763032073 18.05% 22.03% 1.22x
reverse_domain[0x0000000000000000000000000000000000000000] 0.00005119754224894659 0.00001649887211773393 67.77% 210.31% 3.10x
reverse_domain[0x1111111111111111111111111111111111111111] 0.000051170321148895705 0.000016576785063473257 67.60% 208.69% 3.09x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005133536262960275 0.00001651660083735766 67.83% 210.81% 3.11x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.00001392413146804608 0.000014056536664386144 -0.95% -0.94% 0.99x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000014063366424236548 0.00001386769381233193 1.39% 1.41% 1.01x
address[alice.eth] 0.000014548052818625154 0.000014018085222902083 3.64% 3.78% 1.04x
address[bob.eth] 0.000013864488850207386 0.000013772273984702347 0.67% 0.67% 1.01x
address[emoji\U0001f468\U0001f3fb.eth] 0.000013920787659129018 0.000013793943377546128 0.91% 0.92% 1.01x
address[subdomain.alice.eth] 0.000014064950257771882 0.000013809012273828053 1.82% 1.85% 1.02x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.00014166193181191063 0.00014302733527393207 -0.96% -0.95% 0.99x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.0001418513622541338 0.00014285902366997864 -0.71% -0.71% 0.99x
normalize_name_ensip15[alice.eth] 0.0001425229680007105 0.00014350664167273353 -0.69% -0.69% 0.99x
normalize_name_ensip15[bob.eth] 0.00014283260407386218 0.00014364955975810215 -0.57% -0.57% 0.99x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.0001500338793864248 0.00014665628683812216 2.25% 2.30% 1.02x
normalize_name_ensip15[subdomain.alice.eth] 0.000143939082513787 0.00014491668897013244 -0.68% -0.67% 0.99x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.0024507399668381165 0.0008248765143130554 66.34% 197.10% 2.97x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.002494641055687979 0.0008058796026361076 67.70% 209.56% 3.10x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.0025090768600518343 0.0007999089585428161 68.12% 213.67% 3.14x
dns_encode_name[] 0.000006531665384867474 0.000004292967152645411 34.27% 52.15% 1.52x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22553476499997488 0.23403220360000887 -3.77% -3.63% 0.96x
dns_encode_name[alice.eth] 0.010719890548392457 0.010710517304361296 0.09% 0.09% 1.00x
dns_encode_name[bob.eth] 0.006766489695360028 0.006454217895422808 4.61% 4.84% 1.05x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.2718819145999987 0.243921477000049 10.28% 11.46% 1.11x
dns_encode_name[subdomain.alice.eth] 0.03203136978786323 0.031417585562479644 1.92% 1.95% 1.02x
estimate_auction_start_gas[labels0] 0.00007562561391343948 0.00004759676484337992 37.06% 58.89% 1.59x
estimate_auction_start_gas[labels1] 0.00007622485827240294 0.000047724125546976785 37.39% 59.72% 1.60x
estimate_auction_start_gas[labels2] 0.00007066652608721506 0.000048475767057472674 31.40% 45.78% 1.46x
is_empty_name[ ] 0.00006431311310461169 0.00004057406794656595 36.91% 58.51% 1.59x
is_empty_name[.] 0.00006349207049248904 0.00004236038304992416 33.28% 49.89% 1.50x
is_empty_name[0] 0.00006446769740781407 0.00004091276180047878 36.54% 57.57% 1.58x
is_empty_name[1] 0.00006427163740243157 0.000040671490623460415 36.72% 58.03% 1.58x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00006403761976719664 0.00004120614420967102 35.65% 55.41% 1.55x
is_empty_name[alice.eth] 0.00006379676279727634 0.00004057175434098635 36.40% 57.24% 1.57x
is_empty_name[bob.eth] 0.00006564574354932987 0.0000407655652507133 37.90% 61.03% 1.61x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.00006437277745155466 0.000041995442458545226 34.76% 53.29% 1.53x
is_empty_name[subdomain.alice.eth] 0.00006399666394312193 0.000041545980189829133 35.08% 54.04% 1.54x
is_none_or_zero_address[] 0.00005227224083545621 0.00004120080736842227 21.18% 26.87% 1.27x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.00005839073453894989 0.000047463870530563463 18.71% 23.02% 1.23x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.000057980444973088104 0.00004878450671189899 15.86% 18.85% 1.19x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005945439726445141 0.00004969845473803915 16.41% 19.63% 1.20x
is_valid_ens_name[] 0.000001879269237096024 0.0000014298547044849267 23.91% 31.43% 1.31x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23726178560000336 0.24765015319990197 -4.38% -4.19% 0.96x
is_valid_ens_name[alice.eth] 0.010689126718749739 0.010846076709681891 -1.47% -1.45% 0.99x
is_valid_ens_name[bar] 0.0000019675387450511985 0.0000015028479135933221 23.62% 30.92% 1.31x
is_valid_ens_name[baz] 0.0000019512495419030727 0.0000015072793617650153 22.75% 29.46% 1.29x
is_valid_ens_name[bob.eth] 0.006564303993707699 0.006639345923073774 -1.14% -1.13% 0.99x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.280434331799961 0.23744705699996302 15.33% 18.10% 1.18x
is_valid_ens_name[foo] 0.0000019591936420615275 0.000001498229511666137 23.53% 30.77% 1.31x
is_valid_ens_name[subdomain.alice.eth] 0.032013501333308755 0.032588204343745986 -1.80% -1.76% 0.98x
is_valid_name[] 0.0000016780477526865175 0.0000010189600252538078 39.28% 64.68% 1.65x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22414901440001814 0.23600770060002105 -5.29% -5.02% 0.95x
is_valid_name[alice.eth] 0.010334089062491595 0.01093239899998519 -5.79% -5.47% 0.95x
is_valid_name[bob.eth] 0.006227528069179952 0.0064159519038461885 -3.03% -2.94% 0.97x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2373342232000141 0.2563619497999753 -8.02% -7.42% 0.93x
is_valid_name[subdomain.alice.eth] 0.02999662485295657 0.03206169653124391 -6.88% -6.44% 0.94x
label_to_hash[] 0.0001339735273989849 0.00008148450700809013 39.18% 64.42% 1.64x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.22804190260008 0.22947818059997188 -0.63% -0.63% 0.99x
label_to_hash[alice] 0.007569299832062089 0.007672389696006576 -1.36% -1.34% 0.99x
label_to_hash[bob] 0.0034571877241323192 0.003377060083055918 2.32% 2.37% 1.02x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.26430304420005085 0.23560362060002263 10.86% 12.18% 1.12x
label_to_hash[xn--fiqs8s] 0.023679325767436112 0.02466516904999594 -4.16% -4.00% 0.96x
normal_name_to_hash[] 0.000001760170754755946 9.59760136215522e-7 45.47% 83.40% 1.83x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23329252080002333 0.23528680840004199 -0.85% -0.85% 0.99x
normal_name_to_hash[alice.eth] 0.011417346511362584 0.011348744586199956 0.60% 0.60% 1.01x
normal_name_to_hash[bob.eth] 0.007138326093517986 0.00700226613475321 1.91% 1.94% 1.02x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.28040544919999777 0.24395628020001822 13.00% 14.94% 1.15x
normal_name_to_hash[subdomain.alice.eth] 0.0328926370645252 0.032262024451593756 1.92% 1.95% 1.02x
normalize_name[] 0.000008354536525315888 0.0000028875599254386346 65.44% 189.33% 2.89x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2242171946000326 0.23321244999992813 -4.01% -3.86% 0.96x
normalize_name[alice.eth] 0.010786527677100347 0.010864990500015605 -0.73% -0.72% 0.99x
normalize_name[bob.eth] 0.006337981906846089 0.006456553389616838 -1.87% -1.84% 0.98x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.26775470699994913 0.25017680139999354 6.56% 7.03% 1.07x
normalize_name[subdomain.alice.eth] 0.03091117121214142 0.03227892943751698 -4.42% -4.24% 0.96x
raw_name_to_hash[] 0.000009556439117609316 0.0000031532175609430826 67.00% 203.07% 3.03x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4683492931999808 0.4759288910000123 -1.62% -1.59% 0.98x
raw_name_to_hash[alice.eth] 0.021639362638296085 0.02214254313333489 -2.33% -2.27% 0.98x
raw_name_to_hash[bob.eth] 0.013482926493340226 0.013487608279989823 -0.03% -0.03% 1.00x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5592199684001116 0.4963532091999241 11.24% 12.67% 1.13x
raw_name_to_hash[subdomain.alice.eth] 0.06424198131246328 0.06405256087499822 0.29% 0.30% 1.00x
sha3_text[0] 0.00011787955475373503 0.00007584802318454108 35.66% 55.42% 1.55x
sha3_text[1] 0.00011739889393236088 0.0000758078717843484 35.43% 54.86% 1.55x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00012726562929837133 0.00008444896149734232 33.64% 50.70% 1.51x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.0001258404118061341 0.00008487252136037159 32.56% 48.27% 1.48x
sha3_text[alice.eth] 0.00012686787618967538 0.00008487333289007321 33.10% 49.48% 1.49x
sha3_text[alice] 0.0001269233386748164 0.00008396636739780553 33.84% 51.16% 1.51x
sha3_text[bob.eth] 0.00012726732645527205 0.00008406176284571401 33.95% 51.40% 1.51x
sha3_text[bob] 0.00012797115837804234 0.00008409230963467302 34.29% 52.18% 1.52x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00012564205738452863 0.00008470058783313644 32.59% 48.34% 1.48x
sha3_text[emoji\U0001f468\U0001f3fb] 0.00012788474867773153 0.00008437265406183655 34.02% 51.57% 1.52x
sha3_text[subdomain.alice.eth] 0.0001257929833325005 0.00008435978172592557 32.94% 49.11% 1.49x
sha3_text[xn--fiqs8s] 0.00012685039900549593 0.00008428965181102764 33.55% 50.49% 1.50x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.0002925405244316063 0.0002536195670762037 13.30% 15.35% 1.15x
fallback_func_abi_exists 0.0002514075693894481 0.0002454725010181731 2.36% 2.42% 1.02x
filter_by_argument_name[a] 0.0006646897748203419 0.00038700617663577953 41.78% 71.75% 1.72x
filter_by_argument_name[a+b] 0.0006746276747472079 0.0003949861709614398 41.45% 70.80% 1.71x
filter_by_argument_name[b] 0.0006741364770146764 0.0003887337607847664 42.34% 73.42% 1.73x
filter_by_argument_name[c] 0.0006940711562451598 0.0003827042570835315 44.86% 81.36% 1.81x
filter_by_argument_name[notfound] 0.0006545196015942188 0.000379514097731722 42.02% 72.46% 1.72x
filter_by_argument_type[address] 0.0005953944669161753 0.0005873483630875145 1.35% 1.37% 1.01x
filter_by_argument_type[notatype] 0.0005960177386328435 0.000576818456265032 3.22% 3.33% 1.03x
filter_by_argument_type[string] 0.0005923191701647779 0.0005930769224566008 -0.13% -0.13% 1.00x
filter_by_argument_type[uint+address] 0.0005907755074132845 0.0005915613176751583 -0.13% -0.13% 1.00x
filter_by_argument_type[uint256] 0.0005925171348482583 0.0005809127993537505 1.96% 2.00% 1.02x
filter_by_types[constructor] 0.00003717826758683546 0.00003725874217971147 -0.22% -0.22% 1.00x
filter_by_types[event] 0.000037329914041278485 0.000037278703201438923 0.14% 0.14% 1.00x
filter_by_types[fallback] 0.000037301213526411444 0.00003779188340907647 -1.32% -1.30% 0.99x
filter_by_types[func+event] 0.000042512908619778974 0.00004231230674730997 0.47% 0.47% 1.00x
filter_by_types[function] 0.00003719215407647217 0.00003752891078806225 -0.91% -0.90% 0.99x
filter_by_types[none] 0.00003643220806299723 0.000036535230555678487 -0.28% -0.28% 1.00x
filter_by_types[receive] 0.00003830764380495342 0.00003840950206484841 -0.27% -0.27% 1.00x
find_constructor_abi_element_by_type 0.000034909695549805754 0.000035485288875066984 -1.65% -1.62% 0.98x
get_abi_element_signature[custom] 0.000053346282502686345 0.00004979157456780068 6.66% 7.14% 1.07x
get_abi_element_signature[fallback] 0.000021673281750138584 0.000021572665087849655 0.46% 0.47% 1.00x
get_abi_element_signature[receive] 0.000029014018312060314 0.00002880974062911148 0.70% 0.71% 1.01x
get_abi_element_signature[transfer] 0.00005714446311177486 0.00005504693497775374 3.67% 3.81% 1.04x
get_name_from_abi_element_identifier[custom] 0.00004035307986984901 0.0000379174193060706 6.04% 6.42% 1.06x
get_name_from_abi_element_identifier[fallback] 0.000012578886750215098 0.000012196985349323858 3.04% 3.13% 1.03x
get_name_from_abi_element_identifier[func] 0.00004056338285460699 0.000038897381786772997 4.11% 4.28% 1.04x
get_name_from_abi_element_identifier[receive] 0.000018407781455604906 0.00001826734793212128 0.76% 0.77% 1.01x
get_tuple_type_str_parts[not-tuple] 0.000023164997461052926 0.000023193330786646646 -0.12% -0.12% 1.00x
get_tuple_type_str_parts[one-dim] 0.00007552188773994235 0.00007378968175100909 2.29% 2.35% 1.02x
get_tuple_type_str_parts[plain] 0.00004894849500255561 0.00004809915026338621 1.74% 1.77% 1.02x
get_tuple_type_str_parts[two-dim] 0.00009411394023837452 0.00009396798208281082 0.16% 0.16% 1.00x
is_address_type[address] 0.000045435498148493424 0.00004433514374886036 2.42% 2.48% 1.02x
is_address_type[array] 0.00004505419010039373 0.000045562284977408935 -1.13% -1.12% 0.99x
is_address_type[bool] 0.00004509145368636816 0.00004506601502386187 0.06% 0.06% 1.00x
is_address_type[bytes] 0.00004462619646018549 0.00004521089761744349 -1.31% -1.29% 0.99x
is_address_type[bytes32] 0.00004679884890301023 0.000046558487043117015 0.51% 0.52% 1.01x
is_address_type[bytes33] 0.000046057066085623196 0.00004586357389218518 0.42% 0.42% 1.00x
is_address_type[empty] 0.000045025330581774496 0.00004501531030968557 0.02% 0.02% 1.00x
is_address_type[enum] 0.000044629655999916 0.00004512473047573855 -1.11% -1.10% 0.99x
is_address_type[int256] 0.000044988486201635535 0.00004485070603509472 0.31% 0.31% 1.00x
is_address_type[invalid] 0.0000436430411734553 0.000044780659373379154 -2.61% -2.54% 0.97x
is_address_type[string] 0.00004525752197280875 0.00004500559523153073 0.56% 0.56% 1.01x
is_address_type[tuple-array] 0.0000444231466520303 0.000044461617328521764 -0.09% -0.09% 1.00x
is_address_type[tuple] 0.000045358199625571046 0.000044480390906417385 1.94% 1.97% 1.02x
is_address_type[uint256] 0.00004595203704844494 0.000046307951894884505 -0.77% -0.77% 0.99x
is_array_type[address] 0.0003914528404613698 0.00040021563575625503 -2.24% -2.19% 0.98x
is_array_type[array] 0.0004071850375464568 0.0004177198558447533 -2.59% -2.52% 0.97x
is_array_type[bool] 0.00036635597956248994 0.0003765539076392078 -2.78% -2.71% 0.97x
is_array_type[bytes] 0.0003741323312580453 0.000380331808053445 -1.66% -1.63% 0.98x
is_array_type[bytes32] 0.00039828935354008194 0.000401774831463144 -0.88% -0.87% 0.99x
is_array_type[bytes33] 0.00038923684784064675 0.0004031984440765969 -3.59% -3.46% 0.97x
is_array_type[empty] 0.00030107322737811564 0.0003056820381899083 -1.53% -1.51% 0.98x
is_array_type[enum] 0.000380425841216344 0.0003967760275259305 -4.30% -4.12% 0.96x
is_array_type[int256] 0.00038729334438174467 0.00039277080283993925 -1.41% -1.39% 0.99x
is_array_type[invalid] 0.0004047588577182521 0.00040755540320303166 -0.69% -0.69% 0.99x
is_array_type[string] 0.0003839923048880532 0.00039606291692751913 -3.14% -3.05% 0.97x
is_array_type[tuple-array] 0.0004117127511265742 0.00041846259273389374 -1.64% -1.61% 0.98x
is_array_type[tuple] 0.00037514622783068355 0.00038558252002897543 -2.78% -2.71% 0.97x
is_array_type[uint256] 0.00039623741525479997 0.0004018691097222703 -1.42% -1.40% 0.99x
is_bool_type[address] 0.00004331310098142553 0.000044971054269863865 -3.83% -3.69% 0.96x
is_bool_type[array] 0.000044093181813604265 0.00004425921995150455 -0.38% -0.38% 1.00x
is_bool_type[bool] 0.000043906501992075535 0.000044694803604293734 -1.80% -1.76% 0.98x
is_bool_type[bytes] 0.00004524539615735231 0.000044641258632966526 1.34% 1.35% 1.01x
is_bool_type[bytes32] 0.000044860763182596886 0.0000445722062130159 0.64% 0.65% 1.01x
is_bool_type[bytes33] 0.00004464917818277508 0.000044956100957157864 -0.69% -0.68% 0.99x
is_bool_type[empty] 0.00004515184813976316 0.000045703513638699105 -1.22% -1.21% 0.99x
is_bool_type[enum] 0.00004521522749664293 0.00004488099668641561 0.74% 0.74% 1.01x
is_bool_type[int256] 0.00004347758121715845 0.00004526783060742908 -4.12% -3.95% 0.96x
is_bool_type[invalid] 0.000046178718828481884 0.00004472883546373953 3.14% 3.24% 1.03x
is_bool_type[string] 0.00004488131475938886 0.00004478390897441483 0.22% 0.22% 1.00x
is_bool_type[tuple-array] 0.00004469773568556232 0.000044477813696701864 0.49% 0.49% 1.00x
is_bool_type[tuple] 0.00004492130990770797 0.000044932120725187574 -0.02% -0.02% 1.00x
is_bool_type[uint256] 0.00004399267909017496 0.000044796668429235955 -1.83% -1.79% 0.98x
is_bytes_type[address] 0.00030641485004604855 0.00030701116988405083 -0.19% -0.19% 1.00x
is_bytes_type[array] 0.0003061330793861405 0.00030245943228766187 1.20% 1.21% 1.01x
is_bytes_type[bool] 0.00028234063882274347 0.00028172200029769805 0.22% 0.22% 1.00x
is_bytes_type[bytes] 0.00028102085095148694 0.00028457978151668256 -1.27% -1.25% 0.99x
is_bytes_type[bytes32] 0.00029416496919905497 0.0002967699162209252 -0.89% -0.88% 0.99x
is_bytes_type[bytes33] 0.0003191619171588114 0.00031108936978177905 2.53% 2.59% 1.03x
is_bytes_type[empty] 0.00028146535157595764 0.0002840822566862355 -0.93% -0.92% 0.99x
is_bytes_type[enum] 0.00029013077922187104 0.0002901857303750298 -0.02% -0.02% 1.00x
is_bytes_type[int256] 0.0002900477621381329 0.00028860664192070795 0.50% 0.50% 1.00x
is_bytes_type[invalid] 0.00028220059869714 0.0002833778585697313 -0.42% -0.42% 1.00x
is_bytes_type[string] 0.0002904441078768498 0.00028895859617445276 0.51% 0.51% 1.01x
is_bytes_type[tuple-array] 0.0002835380082063366 0.0002811988909528808 0.82% 0.83% 1.01x
is_bytes_type[tuple] 0.00028178402310779214 0.0002882332834334333 -2.29% -2.24% 0.98x
is_bytes_type[uint256] 0.00030884201867427906 0.0003043237931537924 1.46% 1.48% 1.01x
is_int_type[address] 0.00020364501330196776 0.000204381466308794 -0.36% -0.36% 1.00x
is_int_type[array] 0.00020418218638784363 0.00020202771251145917 1.06% 1.07% 1.01x
is_int_type[bool] 0.000201520299032489 0.00020454754770185337 -1.50% -1.48% 0.99x
is_int_type[bytes] 0.00021202583786752115 0.00021555463327120996 -1.66% -1.64% 0.98x
is_int_type[bytes32] 0.00020381097760071383 0.00020357738453693716 0.11% 0.11% 1.00x
is_int_type[bytes33] 0.0002023454370359545 0.0002037445354813974 -0.69% -0.69% 0.99x
is_int_type[empty] 0.00020410653056294084 0.00020216777507606703 0.95% 0.96% 1.01x
is_int_type[enum] 0.00021980559524899566 0.00022784717964829544 -3.66% -3.53% 0.96x
is_int_type[int256] 0.00023374278680584574 0.00022989939143290458 1.64% 1.67% 1.02x
is_int_type[invalid] 0.00020232263648183146 0.00020461699286935771 -1.13% -1.12% 0.99x
is_int_type[string] 0.00022193133733254035 0.0002357458845160942 -6.22% -5.86% 0.94x
is_int_type[tuple-array] 0.00020407957107780575 0.0002041193897779176 -0.02% -0.02% 1.00x
is_int_type[tuple] 0.0002109332311363019 0.0002126773749720437 -0.83% -0.82% 0.99x
is_int_type[uint256] 0.00020164094104656977 0.0002049605382741842 -1.65% -1.62% 0.98x
is_probably_enum[address] 0.00006927318683481986 0.00007139270074119184 -3.06% -2.97% 0.97x
is_probably_enum[empty] 0.00006437356326054586 0.00006768272772183014 -5.14% -4.89% 0.95x
is_probably_enum[enum] 0.00006914865667567336 0.00007022631986103577 -1.56% -1.53% 0.98x
is_probably_enum[lib-dot] 0.00007039896409149529 0.0000719526719289193 -2.21% -2.16% 0.98x
is_probably_enum[lib-enum] 0.0000777946762133128 0.00008009756607193691 -2.96% -2.88% 0.97x
is_probably_enum[uint256] 0.00006916388921611211 0.00007167295810059519 -3.63% -3.50% 0.96x
is_recognized_type[address] 0.00007887493389742922 0.00008308995726575506 -5.34% -5.07% 0.95x
is_recognized_type[array] 0.00008394286818986752 0.00008828180524281801 -5.17% -4.91% 0.95x
is_recognized_type[bool] 0.00008354521499086332 0.00008243440310838335 1.33% 1.35% 1.01x
is_recognized_type[bytes] 0.00015131430893988368 0.00015930199247683822 -5.28% -5.01% 0.95x
is_recognized_type[bytes32] 0.00015159875924644804 0.00015803650602511356 -4.25% -4.07% 0.96x
is_recognized_type[bytes33] 0.00013855324470706925 0.00014513126660633795 -4.75% -4.53% 0.95x
is_recognized_type[empty] 0.00006064907291804673 0.00006454312284429314 -6.42% -6.03% 0.94x
is_recognized_type[enum] 0.0000823951812961723 0.00008855169007468724 -7.47% -6.95% 0.93x
is_recognized_type[int256] 0.0001256963159080151 0.00012993963729351693 -3.38% -3.27% 0.97x
is_recognized_type[invalid] 0.00008215839085768007 0.00008863909809303341 -7.89% -7.31% 0.93x
is_recognized_type[string] 0.00010020857757730631 0.00010850802510964545 -8.28% -7.65% 0.92x
is_recognized_type[tuple-array] 0.00008147371765415283 0.00008958482546263264 -9.96% -9.05% 0.91x
is_recognized_type[tuple] 0.00008275566511780654 0.0000889069217617911 -7.43% -6.92% 0.93x
is_recognized_type[uint256] 0.00012752842740362678 0.00013177653007281803 -3.33% -3.22% 0.97x
is_string_type[address] 0.00004471629600107927 0.00004468380920854667 0.07% 0.07% 1.00x
is_string_type[array] 0.00004346505784583316 0.00004433225028059487 -2.00% -1.96% 0.98x
is_string_type[bool] 0.00004439203743798092 0.000044551370081592366 -0.36% -0.36% 1.00x
is_string_type[bytes] 0.00004380907123855684 0.00004513379755093221 -3.02% -2.94% 0.97x
is_string_type[bytes32] 0.00004410794957404845 0.00004459410064606059 -1.10% -1.09% 0.99x
is_string_type[bytes33] 0.00004450367713856554 0.00004426764053528741 0.53% 0.53% 1.01x
is_string_type[empty] 0.00004459774624024199 0.000044457004081338964 0.32% 0.32% 1.00x
is_string_type[enum] 0.00004500567877769861 0.00004426513489888086 1.65% 1.67% 1.02x
is_string_type[int256] 0.00004596348201374319 0.00004600071309171406 -0.08% -0.08% 1.00x
is_string_type[invalid] 0.000044539069184864795 0.000044450890106554486 0.20% 0.20% 1.00x
is_string_type[string] 0.00004384150591684612 0.0000444437478398825 -1.37% -1.36% 0.99x
is_string_type[tuple-array] 0.00004350135181351461 0.00004415047445807472 -1.49% -1.47% 0.99x
is_string_type[tuple] 0.00004448569568844262 0.000045247805056259526 -1.71% -1.68% 0.98x
is_string_type[uint256] 0.0000448947748964191 0.000044869835148227396 0.06% 0.06% 1.00x
is_uint_type[address] 0.00022108494953747876 0.00022967606745687982 -3.89% -3.74% 0.96x
is_uint_type[array] 0.00022243800764532086 0.00022035755083438873 0.94% 0.94% 1.01x
is_uint_type[bool] 0.0002040945266155771 0.00020335940538984687 0.36% 0.36% 1.00x
is_uint_type[bytes] 0.00020384336208406905 0.0002011662569051183 1.31% 1.33% 1.01x
is_uint_type[bytes32] 0.0002234680803502561 0.000223633694617809 -0.07% -0.07% 1.00x
is_uint_type[bytes33] 0.00023080229720340731 0.0002283220569922756 1.07% 1.09% 1.01x
is_uint_type[empty] 0.00020203299097302423 0.0002004019240584189 0.81% 0.81% 1.01x
is_uint_type[enum] 0.00021107095608213026 0.0002136672001287961 -1.23% -1.22% 0.99x
is_uint_type[int256] 0.00021267044541069068 0.0002116751045856423 0.47% 0.47% 1.00x
is_uint_type[invalid] 0.00020957658205175182 0.00020180247093154168 3.71% 3.85% 1.04x
is_uint_type[string] 0.0002123756853114042 0.00021132219420698427 0.50% 0.50% 1.00x
is_uint_type[tuple-array] 0.00020999236549912648 0.00020118449192183218 4.19% 4.38% 1.04x
is_uint_type[tuple] 0.0002038774464057389 0.0002014203661784809 1.21% 1.22% 1.01x
is_uint_type[uint256] 0.0002333538002494606 0.00022028931616070805 5.60% 5.93% 1.06x
length_of_array_type[dynamic] 0.0001695909086107875 0.00016258434588379203 4.13% 4.31% 1.04x
length_of_array_type[fixed] 0.00018178384744527178 0.00018013949788040203 0.90% 0.91% 1.01x
length_of_array_type[nested] 0.00018977827508587233 0.00018964536122276603 0.07% 0.07% 1.00x
map_abi_data 0.006240406302158393 0.005015914879122847 19.62% 24.41% 1.24x
normalize_event_input_types 0.000417026279965884 0.0004327219364568822 -3.76% -3.63% 0.96x
receive_func_abi_exists 0.0003186887717137714 0.00031344244578836785 1.65% 1.67% 1.02x
strip_abi_types 0.0015913198136352817 0.0015666207718418278 1.55% 1.58% 1.02x
sub_type_of_array_type[nested] 0.00018367440355036594 0.0001881530957582496 -2.44% -2.38% 0.98x
sub_type_of_array_type[simple] 0.00017580785949718457 0.00018076585907350523 -2.82% -2.74% 0.97x

web3/_utils/blocks - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_hex_encoded_block_hash[int] 0.0000211963932914179 0.000021572546939295377 -1.77% -1.74% 0.98x
is_hex_encoded_block_hash[invalid-g] 0.00008619089198483937 0.00005976332266025205 30.66% 44.22% 1.44x
is_hex_encoded_block_hash[none] 0.000021041663275550884 0.000021625790411525186 -2.78% -2.70% 0.97x
is_hex_encoded_block_hash[short] 0.00004662439454455516 0.000028389818418385554 39.11% 64.23% 1.64x
is_hex_encoded_block_hash[too-long] 0.00004611616825668703 0.00002831874717223225 38.59% 62.85% 1.63x
is_hex_encoded_block_hash[too-short] 0.000046280648199354446 0.00002751226453454147 40.55% 68.22% 1.68x
is_hex_encoded_block_hash[valid-a] 0.00009500294389735009 0.00007093251655521016 25.34% 33.93% 1.34x
is_hex_encoded_block_hash[valid-f] 0.00009480748698957282 0.00007112138078777311 24.98% 33.30% 1.33x
is_hex_encoded_block_number[int] 0.00002138695091638656 0.000022404648084880213 -4.76% -4.54% 0.95x
is_hex_encoded_block_number[invalid-g] 0.00016380784331370855 0.0002218977486262665 -35.46% -26.18% 0.74x
is_hex_encoded_block_number[max-64-a] 0.00010515557666142935 0.00007959742041065405 24.31% 32.11% 1.32x
is_hex_encoded_block_number[max-64-f] 0.00010612982148123856 0.00008123884528315983 23.45% 30.64% 1.31x
is_hex_encoded_block_number[none] 0.000021278208943683876 0.000021956780467413392 -3.19% -3.09% 0.97x
is_hex_encoded_block_number[small] 0.00009314642227411057 0.00004589540990105957 50.73% 102.95% 2.03x
is_hex_encoded_block_number[too-long] 0.00010724128695060358 0.00006098189377461169 43.14% 75.86% 1.76x
is_predefined_block_number[bytes-latest] 0.00003237009180111981 0.00002908843831518205 10.14% 11.28% 1.11x
is_predefined_block_number[bytes-pending] 0.0000323885103176914 0.000029046385012945417 10.32% 11.51% 1.12x
is_predefined_block_number[bytes-random] 0.000031817177240691494 0.000027771535736484545 12.72% 14.57% 1.15x
is_predefined_block_number[int] 0.000034286312403852506 0.000024647912555053488 28.11% 39.10% 1.39x
is_predefined_block_number[none] 0.00012333625256740247 0.00020835198361393164 -68.93% -40.80% 0.59x
is_predefined_block_number[object] 0.0001514290228022683 0.00024492842574532853 -61.74% -38.17% 0.62x
is_predefined_block_number[str-earliest] 0.000014075249487609943 0.00001019584551307021 27.56% 38.05% 1.38x
is_predefined_block_number[str-finalized] 0.00001418738195273368 0.000010249947441652173 27.75% 38.41% 1.38x
is_predefined_block_number[str-foo] 0.000014013152112411584 0.000010315552050786681 26.39% 35.84% 1.36x
is_predefined_block_number[str-latest] 0.000014043040868190414 0.000010216582412941129 27.25% 37.45% 1.37x
is_predefined_block_number[str-pending] 0.000014225194655819306 0.000010538967020870196 25.91% 34.98% 1.35x
is_predefined_block_number[str-safe] 0.000014066119934187856 0.00001020994143160038 27.41% 37.77% 1.38x
select_method_for_block_identifier[hash-bytes] 0.00005291247400738538 0.000041517966766805596 21.53% 27.44% 1.27x
select_method_for_block_identifier[hash-hexstr] 0.0001296717041530649 0.00009109660760087602 29.75% 42.35% 1.42x
select_method_for_block_identifier[invalid-none] 0.0008873026692173024 0.001061203463905258 -19.60% -16.39% 0.84x
select_method_for_block_identifier[invalid-object] 0.0009394811641984776 0.0011183584581289777 -19.04% -15.99% 0.84x
select_method_for_block_identifier[number-hexstr] 0.00017383323608952144 0.00008389587906142849 51.74% 107.20% 2.07x
select_method_for_block_identifier[number-int] 0.00011080553552757164 0.0000566367211549824 48.89% 95.64% 1.96x
select_method_for_block_identifier[predefined-bytes] 0.00004954541232740871 0.00004252618612903972 14.17% 16.51% 1.17x
select_method_for_block_identifier[predefined-str] 0.000027583042034088236 0.00002045363964165305 25.85% 34.86% 1.35x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.0004461757747267104 0.0005297718446272963 -18.74% -15.78% 0.84x
PropertyCheckingFactory[big-valid] 0.00044599744969513113 0.0005264004861614373 -18.03% -15.27% 0.85x
PropertyCheckingFactory[inheritance] 0.0009649378755155104 0.0009474223048541319 1.82% 1.85% 1.02x
PropertyCheckingFactory[invalid] 0.00044422211273597315 0.0005293750376455029 -19.17% -16.09% 0.84x
PropertyCheckingFactory[multi-normalizer] 0.00045050341430828586 0.0005368738041876846 -19.17% -16.09% 0.84x
PropertyCheckingFactory[multi-prop] 0.00044734821097155915 0.0005278561592211332 -18.00% -15.25% 0.85x
PropertyCheckingFactory[normalized] 0.0004480944124793549 0.0005292311986122976 -18.11% -15.33% 0.85x
PropertyCheckingFactory[valid] 0.001211792827184186 0.000983541745541621 18.84% 23.21% 1.23x
verify_attr[empty] 0.00009839840872067905 0.00015715830348733248 -59.72% -37.39% 0.63x
verify_attr[found-end] 0.000012524923551915019 0.000010944859100439638 12.62% 14.44% 1.14x
verify_attr[found-start] 0.000009336684914213291 0.00000828203083166172 11.30% 12.73% 1.13x
verify_attr[large-found] 0.00012902316504267433 0.00012441162686935468 3.57% 3.71% 1.04x
verify_attr[large-notfound] 0.00019514281038248714 0.0002593613193478664 -32.91% -24.76% 0.75x
verify_attr[notfound] 0.00010209703309645548 0.00016510959347092112 -61.72% -38.16% 0.62x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006414876132084694 0.0006386887882342691 0.44% 0.44% 1.00x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.00007852522766797635 0.000022198444338517545 71.73% 253.74% 3.54x
percentile[100-90th] 0.00011243983351377024 0.0000544034896964994 51.62% 106.68% 2.07x
percentile[100k-99th] 0.03763168200000817 0.03685494381476962 2.06% 2.11% 1.02x
percentile[100k-median] 0.03704528353843601 0.036909642846152425 0.37% 0.37% 1.00x
percentile[10k-10th] 0.0039144677175499965 0.003540724570895229 9.55% 10.56% 1.11x
percentile[10k-99th] 0.0037829135735291054 0.003681009725930077 2.69% 2.77% 1.03x
percentile[10k-median] 0.0038119788819130918 0.00362181638947253 4.99% 5.25% 1.05x
percentile[1k-99th] 0.0004831569056474728 0.00040480670107802757 16.22% 19.35% 1.19x
percentile[1M-median] 0.6356923596001252 0.6237825449999036 1.87% 1.91% 1.02x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.0000138644864415446 0.0000070786433624343075 48.94% 95.86% 1.96x
to_bytes_if_hex[empty-str] 0.000301227881990165 0.00003845174588313286 87.23% 683.39% 7.83x
to_bytes_if_hex[hexstr] 0.0003313940728200355 0.00004485385469884124 86.47% 638.83% 7.39x
to_bytes_if_hex[large-hex] 0.00033918956282780427 0.00005115176085105408 84.92% 563.10% 6.63x
to_bytes_if_hex[non-prefixed-hex] 0.0003182807295198604 0.0000431103754801587 86.46% 638.29% 7.38x
to_bytes_if_hex[nothex] 0.00042073039531135214 0.00026038127059908016 38.11% 61.58% 1.62x
to_bytes_if_hex[unicode] 0.0004241518729515502 0.00027584159510283396 34.97% 53.77% 1.54x
to_bytes_if_hex[zero] 0.0003318560790911944 0.00004548066884890619 86.30% 629.66% 7.30x
to_hex_if_bytes[bytes] 0.00022256368222017313 0.000049449140966887564 77.78% 350.09% 4.50x
to_hex_if_bytes[empty-bytes] 0.00020914671224385667 0.00003989845052438391 80.92% 424.20% 5.24x
to_hex_if_bytes[empty-str] 0.00010423936634773409 0.00018235996659771565 -74.94% -42.84% 0.57x
to_hex_if_bytes[hexstr] 0.0002761144956286713 0.000023486832465943176 91.49% 1075.61% 11.76x
to_hex_if_bytes[large-bytes] 0.00022618462301240083 0.000052097482258002574 76.97% 334.16% 4.34x
to_hex_if_bytes[non-prefixed-hex] 0.00010300249832933816 0.00018762995011494934 -82.16% -45.10% 0.55x
to_hex_if_bytes[not-hex] 0.00010241618807775318 0.00018574202384160583 -81.36% -44.86% 0.55x
to_hex_if_bytes[unicode] 0.00010512039755480933 0.0001925661016216456 -83.19% -45.41% 0.55x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.0003001533037990941 0.00010601448320557388 64.68% 183.12% 2.83x
all_in_dict[empty-dict] 0.00026998949944543547 0.00007804549511038261 71.09% 245.94% 3.46x
all_in_dict[empty-list] 0.0002571094234321842 0.00008946954856583709 65.20% 187.37% 2.87x
all_in_dict[mixed-types] 0.00032495094737050606 0.00010897184147435477 66.47% 198.20% 2.98x
all_in_dict[no-overlap] 0.0002753973117206906 0.00009109455926800869 66.92% 202.32% 3.02x
all_in_dict[none-in] 0.00028184001697203104 0.00009256027920778445 67.16% 204.49% 3.04x
all_in_dict[one-in] 0.0002791156542165679 0.00009900778785331222 64.53% 181.91% 2.82x
all_in_dict[partial-overlap] 0.0003124501871455317 0.00010312674351929782 66.99% 202.98% 3.03x
all_in_dict[value-none] 0.0002784979958325676 0.00009795294426058296 64.83% 184.32% 2.84x
any_in_dict[all-in] 0.0002794436929414225 0.00009497944132500234 66.01% 194.21% 2.94x
any_in_dict[empty-dict] 0.00029608861791641065 0.00009365883707788177 68.37% 216.14% 3.16x
any_in_dict[empty-list] 0.00026062758139802644 0.00008897522194305495 65.86% 192.92% 2.93x
any_in_dict[mixed-types] 0.0002800857374781128 0.00009067773480865029 67.63% 208.88% 3.09x
any_in_dict[no-overlap] 0.00031750919629586135 0.000106252978383504 66.54% 198.82% 2.99x
any_in_dict[none-in] 0.00028161715067910814 0.00009572420416494112 66.01% 194.20% 2.94x
any_in_dict[one-in] 0.0002763184540111245 0.00009386176495030849 66.03% 194.39% 2.94x
any_in_dict[partial-overlap] 0.0002789846305449918 0.00009156032462580951 67.18% 204.70% 3.05x
any_in_dict[value-none] 0.00027624254057498777 0.00009143944038035613 66.90% 202.10% 3.02x
either_set_is_a_subset[both-empty] 0.00016635270844778786 0.00015088649853767667 9.30% 10.25% 1.10x
either_set_is_a_subset[empty-set1] 0.0001642268441150759 0.00015288777830985422 6.90% 7.42% 1.07x
either_set_is_a_subset[empty-set2] 0.00025261945528669776 0.0002486587522157881 1.57% 1.59% 1.02x
either_set_is_a_subset[identical] 0.0001783229663228228 0.00016286017201118394 8.67% 9.49% 1.09x
either_set_is_a_subset[mixed-types] 0.00018336120352954624 0.00016680297403831994 9.03% 9.93% 1.10x
either_set_is_a_subset[not-subset] 0.00026856326850713876 0.0002475378924424629 7.83% 8.49% 1.08x
either_set_is_a_subset[partial-overlap] 0.00029519082324580727 0.0002827545490154258 4.21% 4.40% 1.04x
either_set_is_a_subset[subset] 0.00018151840464068173 0.00016839390903756446 7.23% 7.79% 1.08x
either_set_is_a_subset[superset] 0.0002849670170416454 0.00028584266073282855 -0.31% -0.31% 1.00x
none_in_dict[all-in] 0.0002977283049191068 0.00009094548989679233 69.45% 227.37% 3.27x
none_in_dict[empty-dict] 0.00030791217320326047 0.00009589362806491302 68.86% 221.10% 3.21x
none_in_dict[empty-list] 0.0002732812451153564 0.0000877862303041784 67.88% 211.30% 3.11x
none_in_dict[mixed-types] 0.00029272053184260246 0.00009194481390057039 68.59% 218.37% 3.18x
none_in_dict[no-overlap] 0.00032812292305280723 0.00010675485039145847 67.46% 207.36% 3.07x
none_in_dict[none-in] 0.0002938180731002986 0.00009622557040589658 67.25% 205.34% 3.05x
none_in_dict[one-in] 0.0002939251685123116 0.0000940379059653807 68.01% 212.56% 3.13x
none_in_dict[partial-overlap] 0.00029322443648337724 0.00009113469886598884 68.92% 221.75% 3.22x
none_in_dict[value-none] 0.000292260600987173 0.00009149992716868524 68.69% 219.41% 3.19x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0014161227078089878 0.001430622592499987 -1.02% -1.01% 0.99x
attributedict_hash[flat] 0.0010876134367309265 0.0010654600410189615 2.04% 2.08% 1.02x
attributedict_hash[nested] 0.001704348502550882 0.0016914832003340917 0.75% 0.76% 1.01x
attributedict_init[empty] 0.00008875893584091724 0.0000865532708503527 2.49% 2.55% 1.03x
attributedict_init[large] 0.0001262866202964029 0.0001275249286597338 -0.98% -0.97% 0.99x
attributedict_init[small] 0.00009043276504587338 0.00009076328702414485 -0.37% -0.36% 1.00x
mutableattributedict_delitem 0.0003878676075849287 0.0003991422068385984 -2.91% -2.82% 0.97x
mutableattributedict_setitem 0.00031391187533050637 0.0003185154633654876 -1.47% -1.45% 0.99x
namedelementonion_add 0.00826851199995612 0.007799918428515541 5.67% 6.01% 1.06x
namedelementonion_as_tuple_of_middleware 0.00015011095667993247 0.00015063159309781744 -0.35% -0.35% 1.00x
namedelementonion_contains 0.000030186117628229245 0.000029940492393316077 0.81% 0.82% 1.01x
namedelementonion_getitem 0.000027916184185555284 0.000027901447834876956 0.05% 0.05% 1.00x
namedelementonion_init[callables2] 0.00012461424816995626 0.00012485496041198346 -0.19% -0.19% 1.00x
namedelementonion_init[callables3] 0.00015935929930915177 0.0001578417643346669 0.95% 0.96% 1.01x
namedelementonion_init[empty] 0.00004298843661287883 0.0000431239143536916 -0.32% -0.31% 1.00x
namedelementonion_inject 0.01223201383337861 0.032898378989388063 -168.95% -62.82% 0.37x
namedelementonion_iter 0.00015410451469616084 0.00015375755070027284 0.23% 0.23% 1.00x
namedelementonion_remove 0.0006650055492681462 0.0006674493788293152 -0.37% -0.37% 1.00x
namedelementonion_replace 0.0024699035378751323 0.002464408935158413 0.22% 0.22% 1.00x
readableattributedict_getitem[large] 0.00001607769997849691 0.00001621461519695943 -0.85% -0.84% 0.99x
readableattributedict_getitem[small] 0.000015217804244333189 0.00001544451490553175 -1.49% -1.47% 0.99x
readableattributedict_init[empty] 0.00005226336293509826 0.000051487896595154705 1.48% 1.51% 1.02x
readableattributedict_init[large] 0.00008924018173140647 0.00008694677079372445 2.57% 2.64% 1.03x
readableattributedict_init[small] 0.00005768874625777135 0.00005585091656201152 3.19% 3.29% 1.03x
readableattributedict_recursive[list-in-dict] 0.0009049713102515013 0.0009036876054670224 0.14% 0.14% 1.00x
readableattributedict_recursive[nested-dict] 0.0009247084610257604 0.0009281898127400624 -0.38% -0.38% 1.00x
readableattributedict_recursive[set] 0.000486009480606684 0.00047827887252614997 1.59% 1.62% 1.02x
tupleize_lists_nested[list-in-dict] 0.0008371812445194731 0.0008370772725847536 0.01% 0.01% 1.00x
tupleize_lists_nested[tuple-in-dict] 0.0009288378638841603 0.0009073802874851153 2.31% 2.36% 1.02x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.0003340113755759169 0.00025253608411478885 24.39% 32.26% 1.32x
simplecache_cache[100] 0.002784580456342847 0.0019387533168549337 30.38% 43.63% 1.44x
simplecache_cache[1000] 0.028686890250027217 0.018966884566040943 33.88% 51.25% 1.51x
simplecache_eviction[10] 0.0005863064792136425 0.0005861784875002112 0.02% 0.02% 1.00x
simplecache_eviction[100] 0.00525901439792001 0.005204761442126638 1.03% 1.04% 1.01x
simplecache_pop[10] 0.00046369175097284155 0.00036006059377256274 22.35% 28.78% 1.29x
simplecache_pop[100] 0.003878546359366908 0.0029125555014698793 24.91% 33.17% 1.33x
simplecache_retrieval[10] 0.00009159530628010431 0.00005417600542043674 40.85% 69.07% 1.69x
simplecache_retrieval[100] 0.0008100691764213496 0.00043434346764763406 46.38% 86.50% 1.87x

@BobTheBuidler BobTheBuidler force-pushed the websocket branch 4 times, most recently from 6d5b3f8 to b563d31 Compare October 17, 2025 21:38
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