Skip to content

Conversation

@BobTheBuidler
Copy link
Owner

No description provided.

@BobTheBuidler BobTheBuidler changed the title fix: TypeError in faster_ens.utils.is_none_or_zero_address feat: try singledispatch Oct 9, 2025
@github-actions
Copy link

github-actions bot commented Oct 9, 2025

Pytest Benchmark Diff

ens/base_ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_valid_name[] 0.0000017942026081630981 0.000001460089098922 18.62% 22.88% 1.23x
is_valid_name[a..eth] 0.00002491574029837435 0.000030721731205161516 -23.30% -18.90% 0.81x
is_valid_name[a.eth..] 0.000025820529118017948 0.000030866918693904925 -19.54% -16.35% 0.84x
is_valid_name[a.eth.] 0.00002592074158880234 0.00003125781353425579 -20.59% -17.07% 0.83x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2274710475999882 0.24756418860000623 -8.83% -8.12% 0.92x
is_valid_name[alice.eth] 0.010339674917529395 0.011122200505377761 -7.57% -7.04% 0.93x
is_valid_name[bob.eth] 0.006312018975309268 0.0066581539935079 -5.48% -5.20% 0.95x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.25352917079999315 0.24005885919999628 5.31% 5.61% 1.06x
is_valid_name[subdomain.alice.eth] 0.030558193333328716 0.033339804249999716 -9.10% -8.34% 0.92x
labelhash[] 0.00013716986869385356 0.00008340502199320618 39.20% 64.46% 1.64x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.2285939964000022 0.23358822619998137 -2.18% -2.14% 0.98x
labelhash[alice] 0.007605242043014578 0.007814552543307643 -2.75% -2.68% 0.97x
labelhash[bob] 0.003446177581883622 0.0034270040716705033 0.56% 0.56% 1.01x
labelhash[emoji\U0001f468\U0001f3fb] 0.25493788620001395 0.2669288837999943 -4.70% -4.49% 0.96x
labelhash[xn--fiqs8s] 0.0243836003902474 0.02504436832499408 -2.71% -2.64% 0.97x
namehash[] 0.000009916654912387177 0.000003902890619934483 60.64% 154.08% 2.54x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.46346045240001105 0.4781038989999843 -3.16% -3.06% 0.97x
namehash[alice.eth] 0.02220570532608443 0.022503653822223493 -1.34% -1.32% 0.99x
namehash[bob.eth] 0.013862853098588326 0.013881268277779826 -0.13% -0.13% 1.00x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.5573559235999938 0.49704906379998876 10.82% 12.13% 1.12x
namehash[subdomain.alice.eth] 0.06455956312500888 0.06460026387500406 -0.06% -0.06% 1.00x
nameprep[] 0.000008803685019322118 0.00000333049867073728 62.17% 164.34% 2.64x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2276437881999982 0.24541617600001472 -7.81% -7.24% 0.93x
nameprep[alice.eth] 0.01064115049473637 0.010932886619563622 -2.74% -2.67% 0.97x
nameprep[bob.eth] 0.006246947767296629 0.006791641751633774 -8.72% -8.02% 0.92x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.25465019519999715 0.24429457520000142 4.07% 4.24% 1.04x
nameprep[subdomain.alice.eth] 0.03014804502941067 0.0325294770624982 -7.90% -7.32% 0.93x
parent[] 9.639716546662087e-7 8.338800405413258e-7 13.50% 15.60% 1.16x
parent[bar.eth] 0.000003644480739061066 0.0000025217506043698753 30.81% 44.52% 1.45x
parent[eth] 0.000001941201325057867 0.0000014426912769210633 25.68% 34.55% 1.35x
parent[foo.bar.eth] 0.000004259884383951443 0.0000032061404702925543 24.74% 32.87% 1.33x
parent[sub.sub2.foo.bar.eth] 0.000005034430315155492 0.000003922369555668457 22.09% 28.35% 1.28x
reverse_domain[0x0000000000000000000000000000000000000000] 0.00004977463686469234 0.000017055087918372325 65.74% 191.85% 2.92x
reverse_domain[0x1111111111111111111111111111111111111111] 0.0000503988271733198 0.00001675994965691392 66.75% 200.71% 3.01x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005068955671688375 0.000017075753116420882 66.31% 196.85% 2.97x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.000013561531954911447 0.000013615090735816602 -0.39% -0.39% 1.00x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000013723033555649892 0.000013705066725673164 0.13% 0.13% 1.00x
address[alice.eth] 0.000013575941520314435 0.000013654088566434714 -0.58% -0.57% 0.99x
address[bob.eth] 0.000013747237876885748 0.000013650676325929568 0.70% 0.71% 1.01x
address[emoji\U0001f468\U0001f3fb.eth] 0.000013659295478354941 0.000013585865037308114 0.54% 0.54% 1.01x
address[subdomain.alice.eth] 0.000013921438012541288 0.000013754589196856315 1.20% 1.21% 1.01x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.00014381718119440553 0.00014711279423750652 -2.29% -2.24% 0.98x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00014645635136047042 0.0001468574368721394 -0.27% -0.27% 1.00x
normalize_name_ensip15[alice.eth] 0.000143844724007895 0.00015013164507414248 -4.37% -4.19% 0.96x
normalize_name_ensip15[bob.eth] 0.00014313069226326377 0.00014396177660323914 -0.58% -0.58% 0.99x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.0001444680325652834 0.00014579384896718704 -0.92% -0.91% 0.99x
normalize_name_ensip15[subdomain.alice.eth] 0.00014445166104382735 0.00014566484568847137 -0.84% -0.83% 0.99x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.00004939796666656897 0.00001701095622170326 65.56% 190.39% 2.90x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.000050485683705899915 0.00001685066887427867 66.62% 199.61% 3.00x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005013379176291975 0.000016878023293381015 66.33% 197.04% 2.97x
dns_encode_name[] 0.000006723173139717754 0.0000047593844295827805 29.21% 41.26% 1.41x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23039151240000139 0.2536789047999946 -10.11% -9.18% 0.91x
dns_encode_name[alice.eth] 0.010685832934070407 0.011149824728265834 -4.34% -4.16% 0.96x
dns_encode_name[bob.eth] 0.006626763907895476 0.0067317245294106175 -1.58% -1.56% 0.98x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.25178126539997264 0.24736553539999023 1.75% 1.79% 1.02x
dns_encode_name[subdomain.alice.eth] 0.031156237906255768 0.033202110843735255 -6.57% -6.16% 0.94x
estimate_auction_start_gas[labels0] 0.0000018248100631026594 0.0000015495746470846078 15.08% 17.76% 1.18x
estimate_auction_start_gas[labels1] 0.0000017401496382414075 0.0000014589033035932203 16.16% 19.28% 1.19x
estimate_auction_start_gas[labels2] 0.0000015473766660086267 0.0000014382503758748852 7.05% 7.59% 1.08x
is_empty_name[ ] 0.0000013031532247983851 0.0000010734517835581205 17.63% 21.40% 1.21x
is_empty_name[.] 0.000001297143764157924 0.0000011027482410696276 14.99% 17.63% 1.18x
is_empty_name[0] 0.0000012943419684397044 0.0000010996875351146508 15.04% 17.70% 1.18x
is_empty_name[1] 0.000001270695990673271 0.0000010578269543058916 16.75% 20.12% 1.20x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.0000013273714262383348 0.0000010919347134683704 17.74% 21.56% 1.22x
is_empty_name[alice.eth] 0.0000013307069617559762 0.0000011966332575085985 10.08% 11.20% 1.11x
is_empty_name[bob.eth] 0.0000013265236970524034 0.0000010867760052130557 18.07% 22.06% 1.22x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.0000013603604921526556 0.0000011526545924897206 15.27% 18.02% 1.18x
is_empty_name[subdomain.alice.eth] 0.0000013400331619656012 0.00000111693466201895 16.65% 19.97% 1.20x
is_none_or_zero_address[] 9.808438348950004e-7 0.0000010888858472863423 -11.02% -9.92% 0.90x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.000001167353239785415 0.0000013467498057865297 -15.37% -13.32% 0.87x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.000001267648940593648 0.000001307969576644161 -3.18% -3.08% 0.97x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.0000012303403562714037 0.0000013014614123010482 -5.78% -5.46% 0.95x
is_valid_ens_name[] 0.0000018450179779411936 0.0000014144559347986593 23.34% 30.44% 1.30x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22893798019997574 0.2511048265999989 -9.68% -8.83% 0.91x
is_valid_ens_name[alice.eth] 0.010285923591837042 0.011321920804344581 -10.07% -9.15% 0.91x
is_valid_ens_name[bar] 0.0000019247240758133487 0.0000015104238520216232 21.53% 27.43% 1.27x
is_valid_ens_name[baz] 0.0000019002605467821304 0.0000015113526077092016 20.47% 25.73% 1.26x
is_valid_ens_name[bob.eth] 0.006225587430383026 0.006854235119204676 -10.10% -9.17% 0.91x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.27706258279997653 0.2643748484000071 4.58% 4.80% 1.05x
is_valid_ens_name[foo] 0.0000019339902178885825 0.0000015075831656418847 22.05% 28.28% 1.28x
is_valid_ens_name[subdomain.alice.eth] 0.031028173969685446 0.033531624387100854 -8.07% -7.47% 0.93x
is_valid_name[] 0.0000015951630558874863 0.000001381477806797912 13.40% 15.47% 1.15x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2304267444000061 0.24692155120001189 -7.16% -6.68% 0.93x
is_valid_name[alice.eth] 0.010266383020624622 0.01132436426086483 -10.31% -9.34% 0.91x
is_valid_name[bob.eth] 0.006349989757959114 0.006688399794702551 -5.33% -5.06% 0.95x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.25368887320000794 0.2441514414000494 3.76% 3.91% 1.04x
is_valid_name[subdomain.alice.eth] 0.030807375333335007 0.03317845586667545 -7.70% -7.15% 0.93x
label_to_hash[] 0.00013595894230030011 0.00008222838359921054 39.52% 65.34% 1.65x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.22696147520002796 0.23882987680001405 -5.23% -4.97% 0.95x
label_to_hash[alice] 0.007659413914731618 0.007836024688012913 -2.31% -2.25% 0.98x
label_to_hash[bob] 0.0034168895901024684 0.0034580147128002656 -1.20% -1.19% 0.99x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.2678708056000005 0.2412498843999856 9.94% 11.03% 1.11x
label_to_hash[xn--fiqs8s] 0.023769422139535933 0.02529142582500583 -6.40% -6.02% 0.94x
normal_name_to_hash[] 0.0000017542027741349304 0.0000014840880449440137 15.40% 18.20% 1.18x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23512545560001855 0.23696159180001358 -0.78% -0.77% 0.99x
normal_name_to_hash[alice.eth] 0.01157450246511665 0.011430676022988681 1.24% 1.26% 1.01x
normal_name_to_hash[bob.eth] 0.007127202413037271 0.00703439862856661 1.30% 1.32% 1.01x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.2782097942000291 0.2531090725999775 9.02% 9.92% 1.10x
normal_name_to_hash[subdomain.alice.eth] 0.03313317190323291 0.03269700441935144 1.32% 1.33% 1.01x
normalize_name[] 0.000008508335879142186 0.0000033927434276805633 60.12% 150.78% 2.51x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23764875020000317 0.23660062860000153 0.44% 0.44% 1.00x
normalize_name[alice.eth] 0.010529873040814075 0.01157508136666239 -9.93% -9.03% 0.91x
normalize_name[bob.eth] 0.006483533624202882 0.006934756369862607 -6.96% -6.51% 0.93x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.2640805482000019 0.2445719583999903 7.39% 7.98% 1.08x
normalize_name[subdomain.alice.eth] 0.03170447899999651 0.03296467906452086 -3.97% -3.82% 0.96x
raw_name_to_hash[] 0.000009733808999508224 0.000003992666064474172 58.98% 143.79% 2.44x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.44570622720002573 0.4772637557999815 -7.08% -6.61% 0.93x
raw_name_to_hash[alice.eth] 0.02194161882978472 0.022383184044456862 -2.01% -1.97% 0.98x
raw_name_to_hash[bob.eth] 0.013405915571429108 0.013742562208337163 -2.51% -2.45% 0.98x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5050437482000006 0.47888209839998125 5.18% 5.46% 1.05x
raw_name_to_hash[subdomain.alice.eth] 0.06259766668750899 0.06474858450000909 -3.44% -3.32% 0.97x
sha3_text[0] 0.00012068065811137116 0.00007590909088865638 37.10% 58.98% 1.59x
sha3_text[1] 0.00011940022832627128 0.00007621912043738376 36.17% 56.65% 1.57x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00012889644416646482 0.00008498753896487115 34.07% 51.67% 1.52x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.0001280367305359286 0.0000841770698577418 34.26% 52.10% 1.52x
sha3_text[alice.eth] 0.00012888125947922369 0.00008478993727068118 34.21% 52.00% 1.52x
sha3_text[alice] 0.00012777663364699524 0.00008429089680088619 34.03% 51.59% 1.52x
sha3_text[bob.eth] 0.00012960735133572257 0.00008496532380984601 34.44% 52.54% 1.53x
sha3_text[bob] 0.00012904901193495525 0.000084916320932564 34.20% 51.97% 1.52x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00013000253492519208 0.00008521720668470763 34.45% 52.55% 1.53x
sha3_text[emoji\U0001f468\U0001f3fb] 0.0001331661479561754 0.00008560612480993545 35.71% 55.56% 1.56x
sha3_text[subdomain.alice.eth] 0.00012819064948956375 0.0000842854406117873 34.25% 52.09% 1.52x
sha3_text[xn--fiqs8s] 0.00012965193699409386 0.00008406026596750889 35.16% 54.24% 1.54x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.00029382488145397495 0.00029045622239122796 1.15% 1.16% 1.01x
fallback_func_abi_exists 0.00025937442131770846 0.0002550687465011999 1.66% 1.69% 1.02x
filter_by_argument_name[a] 0.0006358302764380758 0.00037358824709159046 41.24% 70.20% 1.70x
filter_by_argument_name[a+b] 0.0006428670917196552 0.0003851526528004043 40.09% 66.91% 1.67x
filter_by_argument_name[b] 0.0006391610345044915 0.0003804848169240877 40.47% 67.99% 1.68x
filter_by_argument_name[c] 0.0006417023231195257 0.0003818314362826383 40.50% 68.06% 1.68x
filter_by_argument_name[notfound] 0.0006334355479362299 0.0003769968688381809 40.48% 68.02% 1.68x
filter_by_argument_type[address] 0.0005841364004754102 0.0005890346569834046 -0.84% -0.83% 0.99x
filter_by_argument_type[notatype] 0.0005743401031328202 0.0005867330553796937 -2.16% -2.11% 0.98x
filter_by_argument_type[string] 0.0005878642414673759 0.0005986999692413434 -1.84% -1.81% 0.98x
filter_by_argument_type[uint+address] 0.0005849916918397515 0.0005890250373357939 -0.69% -0.68% 0.99x
filter_by_argument_type[uint256] 0.000585455615999448 0.0005912452958510046 -0.99% -0.98% 0.99x
filter_by_types[constructor] 0.000037005697986627333 0.00003699016968230728 0.04% 0.04% 1.00x
filter_by_types[event] 0.000038221670083676154 0.000036007998290196685 5.79% 6.15% 1.06x
filter_by_types[fallback] 0.00003689011265707293 0.0000382735846798418 -3.75% -3.61% 0.96x
filter_by_types[func+event] 0.0000426632465784095 0.00004128559560501151 3.23% 3.34% 1.03x
filter_by_types[function] 0.00003741032368879253 0.000037384602485365146 0.07% 0.07% 1.00x
filter_by_types[none] 0.00003623084257930012 0.00003710779341711904 -2.42% -2.36% 0.98x
filter_by_types[receive] 0.000038417831865942864 0.000038748476706971765 -0.86% -0.85% 0.99x
find_constructor_abi_element_by_type 0.0000332926867624708 0.000033764274336591 -1.42% -1.40% 0.99x
get_abi_element_signature[custom] 0.00005292895182933614 0.00004964068366279984 6.21% 6.62% 1.07x
get_abi_element_signature[fallback] 0.000020986014075525205 0.000021330980156218312 -1.64% -1.62% 0.98x
get_abi_element_signature[receive] 0.000028201305699091674 0.00002829191705766192 -0.32% -0.32% 1.00x
get_abi_element_signature[transfer] 0.000057421472218406106 0.00005527492139823092 3.74% 3.88% 1.04x
get_name_from_abi_element_identifier[custom] 0.00004223430414105773 0.00003812174029790064 9.74% 10.79% 1.11x
get_name_from_abi_element_identifier[fallback] 0.00001186491331575486 0.000012033277326777272 -1.42% -1.40% 0.99x
get_name_from_abi_element_identifier[func] 0.00004199624576696059 0.000037962803117754334 9.60% 10.62% 1.11x
get_name_from_abi_element_identifier[receive] 0.000018157809586281636 0.000018324566119641995 -0.92% -0.91% 0.99x
get_tuple_type_str_parts[not-tuple] 0.000022096320690427047 0.000022836261973865814 -3.35% -3.24% 0.97x
get_tuple_type_str_parts[one-dim] 0.00007493305612305889 0.0000766943880232556 -2.35% -2.30% 0.98x
get_tuple_type_str_parts[plain] 0.00004797978781899257 0.000047440613158879064 1.12% 1.14% 1.01x
get_tuple_type_str_parts[two-dim] 0.00008841859743762195 0.000093290426892813 -5.51% -5.22% 0.95x
is_address_type[address] 0.000008111917793831752 0.000008030851729253249 1.00% 1.01% 1.01x
is_address_type[array] 0.000008483261446766268 0.000008873102435787123 -4.60% -4.39% 0.96x
is_address_type[bool] 0.000008018152869033848 0.000008055665841365584 -0.47% -0.47% 1.00x
is_address_type[bytes] 0.000008062656262098385 0.000008006519624357605 0.70% 0.70% 1.01x
is_address_type[bytes32] 0.000008271450023144535 0.00000842169483739697 -1.82% -1.78% 0.98x
is_address_type[bytes33] 0.000008804976209596514 0.000008744466225201682 0.69% 0.69% 1.01x
is_address_type[empty] 0.000008102064294254221 0.000007949047475972726 1.89% 1.92% 1.02x
is_address_type[enum] 0.000008413548614381451 0.000008651928045317278 -2.83% -2.76% 0.97x
is_address_type[int256] 0.000007993342944394445 0.000008021240857573369 -0.35% -0.35% 1.00x
is_address_type[invalid] 0.00000858637574935852 0.000008508181036423005 0.91% 0.92% 1.01x
is_address_type[string] 0.00000799647738706494 0.000008087259649252227 -1.14% -1.12% 0.99x
is_address_type[tuple-array] 0.000008609787248119851 0.000008536404405880639 0.85% 0.86% 1.01x
is_address_type[tuple] 0.00000794756755252734 0.000008126219153336611 -2.25% -2.20% 0.98x
is_address_type[uint256] 0.000008483279745827021 0.000008426692532300393 0.67% 0.67% 1.01x
is_array_type[address] 0.00007783572791999234 0.00008001065510140807 -2.79% -2.72% 0.97x
is_array_type[array] 0.00008049014821145274 0.00008177920046697282 -1.60% -1.58% 0.98x
is_array_type[bool] 0.0000727976281009817 0.00007453207269796359 -2.38% -2.33% 0.98x
is_array_type[bytes] 0.00007450184657838943 0.00007632036266150937 -2.44% -2.38% 0.98x
is_array_type[bytes32] 0.00007780512180262412 0.00007968621254337017 -2.42% -2.36% 0.98x
is_array_type[bytes33] 0.00007825422667967605 0.00008000354260025841 -2.24% -2.19% 0.98x
is_array_type[empty] 0.0000602441028164517 0.00006198753498678575 -2.89% -2.81% 0.97x
is_array_type[enum] 0.00007578129476285475 0.00007863169437319225 -3.76% -3.63% 0.96x
is_array_type[int256] 0.00007615932423578597 0.00007838445873132083 -2.92% -2.84% 0.97x
is_array_type[invalid] 0.00007971485163201686 0.00008236163340814624 -3.32% -3.21% 0.97x
is_array_type[string] 0.00007598618769363532 0.00007761335436248359 -2.14% -2.10% 0.98x
is_array_type[tuple-array] 0.00008012522732241203 0.00008224528190635905 -2.65% -2.58% 0.97x
is_array_type[tuple] 0.00007517332646083694 0.00007641201213075431 -1.65% -1.62% 0.98x
is_array_type[uint256] 0.00007811034757057063 0.00008089743079669238 -3.57% -3.45% 0.97x
is_bool_type[address] 0.000008057763128979253 0.000007914626910252933 1.78% 1.81% 1.02x
is_bool_type[array] 0.000008604115015626855 0.000008555080540808754 0.57% 0.57% 1.01x
is_bool_type[bool] 0.000008147003380868463 0.00000810214283481195 0.55% 0.55% 1.01x
is_bool_type[bytes] 0.00000800935184929319 0.00000809053504158718 -1.01% -1.00% 0.99x
is_bool_type[bytes32] 0.000008052348308826717 0.00000799490570726399 0.71% 0.72% 1.01x
is_bool_type[bytes33] 0.000008507043555480893 0.000008613962815245714 -1.26% -1.24% 0.99x
is_bool_type[empty] 0.000008092258042412753 0.000008031873677639686 0.75% 0.75% 1.01x
is_bool_type[enum] 0.000008611798756797547 0.000008546487546622773 0.76% 0.76% 1.01x
is_bool_type[int256] 0.000007990630580827537 0.000007999899744582908 -0.12% -0.12% 1.00x
is_bool_type[invalid] 0.000008631772202245987 0.000008583880920463055 0.55% 0.56% 1.01x
is_bool_type[string] 0.000008086552023061433 0.000008080736680853503 0.07% 0.07% 1.00x
is_bool_type[tuple-array] 0.000008505940506362481 0.00000862724665400029 -1.43% -1.41% 0.99x
is_bool_type[tuple] 0.000007740347257476303 0.000007983214316648375 -3.14% -3.04% 0.97x
is_bool_type[uint256] 0.000008029004488707905 0.000008023642435489586 0.07% 0.07% 1.00x
is_bytes_type[address] 0.00006293532735443473 0.0000642240039396234 -2.05% -2.01% 0.98x
is_bytes_type[array] 0.000060644843964996546 0.000060332744145001056 0.51% 0.52% 1.01x
is_bytes_type[bool] 0.00005558765649646526 0.00005706448088010604 -2.66% -2.59% 0.97x
is_bytes_type[bytes] 0.00005496857202525889 0.00005660234086569058 -2.97% -2.89% 0.97x
is_bytes_type[bytes32] 0.000060936940303946496 0.00005767590240975508 5.35% 5.65% 1.06x
is_bytes_type[bytes33] 0.00006200683593017513 0.00006449904062895961 -4.02% -3.86% 0.96x
is_bytes_type[empty] 0.000054677265975301156 0.000055840292723913076 -2.13% -2.08% 0.98x
is_bytes_type[enum] 0.000057807343617423676 0.000057820981286020274 -0.02% -0.02% 1.00x
is_bytes_type[int256] 0.000060447284530806894 0.00005990629694659377 0.89% 0.90% 1.01x
is_bytes_type[invalid] 0.00005699388302568666 0.000056757335735871395 0.42% 0.42% 1.00x
is_bytes_type[string] 0.00005928994130863706 0.00005777403109838674 2.56% 2.62% 1.03x
is_bytes_type[tuple-array] 0.00005606808337066446 0.000058118760275458686 -3.66% -3.53% 0.96x
is_bytes_type[tuple] 0.00005629593284220688 0.000058442402101465826 -3.81% -3.67% 0.96x
is_bytes_type[uint256] 0.0000641794019041485 0.00006227663460058108 2.96% 3.06% 1.03x
is_int_type[address] 0.00004018237036051418 0.000039313300924242476 2.16% 2.21% 1.02x
is_int_type[array] 0.00003932685529341089 0.000039208098579971797 0.30% 0.30% 1.00x
is_int_type[bool] 0.00004041842101417818 0.000039568979391148054 2.10% 2.15% 1.02x
is_int_type[bytes] 0.00004193483162012579 0.000043690973392897586 -4.19% -4.02% 0.96x
is_int_type[bytes32] 0.000039261541025585994 0.000039170386061551006 0.23% 0.23% 1.00x
is_int_type[bytes33] 0.00003949365422377102 0.00004121612985297344 -4.36% -4.18% 0.96x
is_int_type[empty] 0.00003928751650803798 0.0000413102804143751 -5.15% -4.90% 0.95x
is_int_type[enum] 0.00004376542341395243 0.000045257694862012226 -3.41% -3.30% 0.97x
is_int_type[int256] 0.00004581400023308802 0.000045163544360289424 1.42% 1.44% 1.01x
is_int_type[invalid] 0.00003870650337897027 0.00003930689518134105 -1.55% -1.53% 0.98x
is_int_type[string] 0.00004447153026279068 0.00004618278469233675 -3.85% -3.71% 0.96x
is_int_type[tuple-array] 0.00003937037024202541 0.00004029515224613316 -2.35% -2.30% 0.98x
is_int_type[tuple] 0.00004309054740984228 0.00004346981501877817 -0.88% -0.87% 0.99x
is_int_type[uint256] 0.000039395685983148796 0.000040167401057774065 -1.96% -1.92% 0.98x
is_probably_enum[address] 0.00006979356293942992 0.00007160234169431378 -2.59% -2.53% 0.97x
is_probably_enum[empty] 0.00006499010557216975 0.00006666124657552095 -2.57% -2.51% 0.97x
is_probably_enum[enum] 0.0000664795078630628 0.0000714751575585502 -7.51% -6.99% 0.93x
is_probably_enum[lib-dot] 0.00007070756878329843 0.00007299769701415251 -3.24% -3.14% 0.97x
is_probably_enum[lib-enum] 0.00007470372717266214 0.00007895615325484998 -5.69% -5.39% 0.95x
is_probably_enum[uint256] 0.00006987167745508587 0.000071668073491875 -2.57% -2.51% 0.97x
is_recognized_type[address] 0.0000810112523661164 0.00008650394592845318 -6.78% -6.35% 0.94x
is_recognized_type[array] 0.0000890683695913303 0.00009047484859194568 -1.58% -1.55% 0.98x
is_recognized_type[bool] 0.00008385068965198712 0.00008805180329650133 -5.01% -4.77% 0.95x
is_recognized_type[bytes] 0.00016005922532869507 0.00016098339037516163 -0.58% -0.57% 0.99x
is_recognized_type[bytes32] 0.00015598910289177213 0.0001564863610220061 -0.32% -0.32% 1.00x
is_recognized_type[bytes33] 0.0001399702465277661 0.00014596471627792415 -4.28% -4.11% 0.96x
is_recognized_type[empty] 0.00006503927231671639 0.00006635031614309553 -2.02% -1.98% 0.98x
is_recognized_type[enum] 0.00008761695100418924 0.000090569292921088 -3.37% -3.26% 0.97x
is_recognized_type[int256] 0.00012593474655527728 0.00013384406553378113 -6.28% -5.91% 0.94x
is_recognized_type[invalid] 0.00008349193705386017 0.0000906456889708617 -8.57% -7.89% 0.92x
is_recognized_type[string] 0.00010255403314949622 0.00011154714382985244 -8.77% -8.06% 0.92x
is_recognized_type[tuple-array] 0.00008365890083622594 0.00009066502588326945 -8.37% -7.73% 0.92x
is_recognized_type[tuple] 0.00008364805079431225 0.00009054555929172423 -8.25% -7.62% 0.92x
is_recognized_type[uint256] 0.0001343724694315003 0.0001331253976946878 0.93% 0.94% 1.01x
is_string_type[address] 0.000007981727536234837 0.000007887647968412568 1.18% 1.19% 1.01x
is_string_type[array] 0.000008565241854837827 0.000008583635962467286 -0.21% -0.21% 1.00x
is_string_type[bool] 0.000007900878511600535 0.000007967603163484989 -0.84% -0.84% 0.99x
is_string_type[bytes] 0.000008004885766361003 0.00000791567670293302 1.11% 1.13% 1.01x
is_string_type[bytes32] 0.000007965266921034596 0.000008056265517503538 -1.14% -1.13% 0.99x
is_string_type[bytes33] 0.000008538777860138067 0.00000846512130668428 0.86% 0.87% 1.01x
is_string_type[empty] 0.000007996568561611699 0.0000079109435751041 1.07% 1.08% 1.01x
is_string_type[enum] 0.00000869833678989664 0.000008755786617784339 -0.66% -0.66% 0.99x
is_string_type[int256] 0.000008162209443265393 0.000008241551867066898 -0.97% -0.96% 0.99x
is_string_type[invalid] 0.000008489116962254661 0.000008517453434150607 -0.33% -0.33% 1.00x
is_string_type[string] 0.0000080771965610741 0.000008170674815124637 -1.16% -1.14% 0.99x
is_string_type[tuple-array] 0.00000856366963853562 0.000008616100827029272 -0.61% -0.61% 0.99x
is_string_type[tuple] 0.000007952682680334717 0.000008022707340398162 -0.88% -0.87% 0.99x
is_string_type[uint256] 0.000007975781102550401 0.00000803059923067552 -0.69% -0.68% 0.99x
is_uint_type[address] 0.000044740989879135076 0.00004621562250736045 -3.30% -3.19% 0.97x
is_uint_type[array] 0.00004447459614124323 0.00004498320592695052 -1.14% -1.13% 0.99x
is_uint_type[bool] 0.00004028940123473819 0.00004186126565547756 -3.90% -3.75% 0.96x
is_uint_type[bytes] 0.000039309334359064916 0.00004007153007027751 -1.94% -1.90% 0.98x
is_uint_type[bytes32] 0.00004438707935640216 0.000045298459917601743 -2.05% -2.01% 0.98x
is_uint_type[bytes33] 0.00004731275632390515 0.000046317773501796926 2.10% 2.15% 1.02x
is_uint_type[empty] 0.00004038932427423404 0.00004009786587079897 0.72% 0.73% 1.01x
is_uint_type[enum] 0.0000426287733909798 0.00004262608633187398 0.01% 0.01% 1.00x
is_uint_type[int256] 0.00004245230107865878 0.00004393074162788177 -3.48% -3.37% 0.97x
is_uint_type[invalid] 0.00003954334495936306 0.0000400203546489464 -1.21% -1.19% 0.99x
is_uint_type[string] 0.00004253771184966407 0.000042628788573676795 -0.21% -0.21% 1.00x
is_uint_type[tuple-array] 0.000039278443577987505 0.00003934361171682151 -0.17% -0.17% 1.00x
is_uint_type[tuple] 0.000040432676759625826 0.000039594609305267706 2.07% 2.12% 1.02x
is_uint_type[uint256] 0.0000448823044052407 0.000047748213227154335 -6.39% -6.00% 0.94x
length_of_array_type[dynamic] 0.00016851217012152383 0.00017088660239803375 -1.41% -1.39% 0.99x
length_of_array_type[fixed] 0.00017217627381314668 0.00018213652726701334 -5.78% -5.47% 0.95x
length_of_array_type[nested] 0.00018466168476661337 0.00018462248924261317 0.02% 0.02% 1.00x
map_abi_data 0.006498672913047041 0.006503639062939615 -0.08% -0.08% 1.00x
normalize_event_input_types 0.0004210916528505698 0.00042890821646216013 -1.86% -1.82% 0.98x
receive_func_abi_exists 0.0003246451400061841 0.00032088409605348175 1.16% 1.17% 1.01x
strip_abi_types 0.0016348463827968295 0.001669179281784394 -2.10% -2.06% 0.98x
sub_type_of_array_type[nested] 0.00017976576044910456 0.00018011714211368704 -0.20% -0.20% 1.00x
sub_type_of_array_type[simple] 0.0001730154382577901 0.00017652992019331833 -2.03% -1.99% 0.98x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.00046826081809317726 0.0005519665410223066 -17.88% -15.16% 0.85x
PropertyCheckingFactory[big-valid] 0.0004689517981977723 0.0005491776181728151 -17.11% -14.61% 0.85x
PropertyCheckingFactory[inheritance] 0.001234173274177597 0.0009652342805241494 21.79% 27.86% 1.28x
PropertyCheckingFactory[invalid] 0.0004778800331391004 0.0005496407271110716 -15.02% -13.06% 0.87x
PropertyCheckingFactory[multi-normalizer] 0.0004666670736268886 0.0005484417615876991 -17.52% -14.91% 0.85x
PropertyCheckingFactory[multi-prop] 0.00047009031484294235 0.0005502984681951938 -17.06% -14.58% 0.85x
PropertyCheckingFactory[normalized] 0.0004694464174507818 0.0005504867243113504 -17.26% -14.72% 0.85x
PropertyCheckingFactory[valid] 0.001051732142854011 0.001005363193480308 4.41% 4.61% 1.05x
verify_attr[empty] 0.00010262610008568772 0.0001647875307043323 -60.57% -37.72% 0.62x
verify_attr[found-end] 0.000011487011965961039 0.000009697086384734615 15.58% 18.46% 1.18x
verify_attr[found-start] 0.000009495104587002002 0.00000783048687948394 17.53% 21.26% 1.21x
verify_attr[large-found] 0.00013121404860369403 0.00013150221180603333 -0.22% -0.22% 1.00x
verify_attr[large-notfound] 0.00019862143305866717 0.0002617420865021813 -31.78% -24.12% 0.76x
verify_attr[notfound] 0.00010694752889609183 0.00016804522701820222 -57.13% -36.36% 0.64x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006491848788678647 0.0006413850181352988 1.20% 1.22% 1.01x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.00007860138838195122 0.000023820396416431963 69.69% 229.98% 3.30x
percentile[100-90th] 0.0001118391312722564 0.000052516453211271805 53.04% 112.96% 2.13x
percentile[100k-99th] 0.03650257678570564 0.0365051693214176 -0.01% -0.01% 1.00x
percentile[100k-median] 0.03641514114813752 0.03639280696297562 0.06% 0.06% 1.00x
percentile[10k-10th] 0.0037483631153861553 0.0036269701391931394 3.24% 3.35% 1.03x
percentile[10k-99th] 0.0037423593097023413 0.003639216307694549 2.76% 2.83% 1.03x
percentile[10k-median] 0.0037416574482719567 0.0036770229853439994 1.73% 1.76% 1.02x
percentile[1k-99th] 0.0004793156020244894 0.0004041401393044019 15.68% 18.60% 1.19x
percentile[1M-median] 0.6241636711999945 0.6132165146000034 1.75% 1.79% 1.02x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.000012693891176954218 0.0000070434391805053615 44.51% 80.22% 1.80x
to_bytes_if_hex[empty-str] 0.0003104856834392484 0.00003685570937783719 88.13% 742.44% 8.42x
to_bytes_if_hex[hexstr] 0.0003418425652977893 0.000046700306088846906 86.34% 631.99% 7.32x
to_bytes_if_hex[large-hex] 0.00034345818253034575 0.000052645410521797486 84.67% 552.40% 6.52x
to_bytes_if_hex[non-prefixed-hex] 0.00032387687231984636 0.000043642425350692486 86.52% 642.11% 7.42x
to_bytes_if_hex[nothex] 0.0004207182773455405 0.0002682827198724213 36.23% 56.82% 1.57x
to_bytes_if_hex[unicode] 0.000424263045229528 0.00027564154933759405 35.03% 53.92% 1.54x
to_bytes_if_hex[zero] 0.00033957294590452475 0.00004684073536671783 86.21% 624.95% 7.25x
to_hex_if_bytes[bytes] 0.00022612532102169852 0.000049908493201262325 77.93% 353.08% 4.53x
to_hex_if_bytes[empty-bytes] 0.00021518599331398974 0.00003764676136570298 82.51% 471.59% 5.72x
to_hex_if_bytes[empty-str] 0.0001042062637822517 0.00019208864582582124 -84.34% -45.75% 0.54x
to_hex_if_bytes[hexstr] 0.00028361642738255783 0.000022694929003837775 92.00% 1149.69% 12.50x
to_hex_if_bytes[large-bytes] 0.00023287450236126258 0.000052369979495174754 77.51% 344.67% 4.45x
to_hex_if_bytes[non-prefixed-hex] 0.0001078734206109736 0.00019333727359048555 -79.23% -44.20% 0.56x
to_hex_if_bytes[not-hex] 0.00010649103663898097 0.00019548423747237916 -83.57% -45.52% 0.54x
to_hex_if_bytes[unicode] 0.00011071709270753192 0.00019918683718053945 -79.91% -44.42% 0.56x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.00031173217094668747 0.00010478007897179962 66.39% 197.51% 2.98x
all_in_dict[empty-dict] 0.00026043093541494995 0.0000784509507732713 69.88% 231.97% 3.32x
all_in_dict[empty-list] 0.0002605581131903709 0.00009108598824483654 65.04% 186.06% 2.86x
all_in_dict[mixed-types] 0.00031081058770529774 0.00010616810009696462 65.84% 192.75% 2.93x
all_in_dict[no-overlap] 0.00028048154751435223 0.00009264432488384575 66.97% 202.75% 3.03x
all_in_dict[none-in] 0.0002815515780368444 0.0000937508707730298 66.70% 200.32% 3.00x
all_in_dict[one-in] 0.0002878979942499967 0.00009909391708135486 65.58% 190.53% 2.91x
all_in_dict[partial-overlap] 0.0003194379969438219 0.00010153591344195968 68.21% 214.61% 3.15x
all_in_dict[value-none] 0.0002866119068832691 0.00009812452709156443 65.76% 192.09% 2.92x
any_in_dict[all-in] 0.00028282940655764563 0.00009045764512931686 68.02% 212.67% 3.13x
any_in_dict[empty-dict] 0.0003050352319576031 0.00009286083647706527 69.56% 228.49% 3.28x
any_in_dict[empty-list] 0.00026585244675278436 0.00008716119372497516 67.21% 205.01% 3.05x
any_in_dict[mixed-types] 0.0002815466129411405 0.00008887979826028336 68.43% 216.77% 3.17x
any_in_dict[no-overlap] 0.0003238450213065576 0.00010671141232804873 67.05% 203.48% 3.03x
any_in_dict[none-in] 0.0002896745521858959 0.00009419858724875071 67.48% 207.51% 3.08x
any_in_dict[one-in] 0.0002801570977761811 0.00008872819157655437 68.33% 215.75% 3.16x
any_in_dict[partial-overlap] 0.0002890638709287665 0.00008928913799785218 69.11% 223.74% 3.24x
any_in_dict[value-none] 0.000279543828215087 0.00008921345472799658 68.09% 213.34% 3.13x
either_set_is_a_subset[both-empty] 0.00016857118092134188 0.00015310416265137703 9.18% 10.10% 1.10x
either_set_is_a_subset[empty-set1] 0.00016860674212119603 0.0001558492060043566 7.57% 8.19% 1.08x
either_set_is_a_subset[empty-set2] 0.0002487585722980817 0.00025171731966792943 -1.19% -1.18% 0.99x
either_set_is_a_subset[identical] 0.0001853559592945467 0.0001643080874430363 11.36% 12.81% 1.13x
either_set_is_a_subset[mixed-types] 0.0001881093340824416 0.00016880806058157548 10.26% 11.43% 1.11x
either_set_is_a_subset[not-subset] 0.0002699370929424382 0.0002599811288539121 3.69% 3.83% 1.04x
either_set_is_a_subset[partial-overlap] 0.00029556732393665555 0.000286635936326423 3.02% 3.12% 1.03x
either_set_is_a_subset[subset] 0.00019129599526823641 0.0001707693766010668 10.73% 12.02% 1.12x
either_set_is_a_subset[superset] 0.00029166737393110327 0.0002933544203128987 -0.58% -0.58% 0.99x
none_in_dict[all-in] 0.0003012546142000601 0.00008956036292946039 70.27% 236.37% 3.36x
none_in_dict[empty-dict] 0.00032234720436877956 0.00009238469119038045 71.34% 248.92% 3.49x
none_in_dict[empty-list] 0.00027924656318229586 0.00008685781310352825 68.90% 221.50% 3.21x
none_in_dict[mixed-types] 0.00029277386963009214 0.00008941271706850997 69.46% 227.44% 3.27x
none_in_dict[no-overlap] 0.000339433470779232 0.00010548840437891912 68.92% 221.77% 3.22x
none_in_dict[none-in] 0.0003058963773845816 0.00009659955365871535 68.42% 216.66% 3.17x
none_in_dict[one-in] 0.00029716623620628605 0.00008855478715714632 70.20% 235.57% 3.36x
none_in_dict[partial-overlap] 0.0002966286163797801 0.00008913611009664196 69.95% 232.78% 3.33x
none_in_dict[value-none] 0.00029432835648230765 0.00008760411101248115 70.24% 235.98% 3.36x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0014698015423471442 0.0014843007488982772 -0.99% -0.98% 0.99x
attributedict_hash[flat] 0.0011252207081779888 0.0010955170022534117 2.64% 2.71% 1.03x
attributedict_hash[nested] 0.00172890208361513 0.0017655688758761333 -2.12% -2.08% 0.98x
attributedict_init[empty] 0.00008765165752177356 0.00008637843333346482 1.45% 1.47% 1.01x
attributedict_init[large] 0.0001278368943596219 0.0001273549762682681 0.38% 0.38% 1.00x
attributedict_init[small] 0.00009287286265218238 0.0000923771634583843 0.53% 0.54% 1.01x
mutableattributedict_delitem 0.000402942188126734 0.00039743764666091383 1.37% 1.39% 1.01x
mutableattributedict_setitem 0.00033586083544019185 0.0003362424843855396 -0.11% -0.11% 1.00x
namedelementonion_add 0.03523729047321516 0.030249909294958906 14.15% 16.49% 1.16x
namedelementonion_as_tuple_of_middleware 0.00014607179950067173 0.00014685947863473119 -0.54% -0.54% 0.99x
namedelementonion_contains 0.000030180597640542407 0.000030133568024850247 0.16% 0.16% 1.00x
namedelementonion_getitem 0.000026536721412085104 0.000026589252729703656 -0.20% -0.20% 1.00x
namedelementonion_init[callables2] 0.00012620833123351885 0.00012597556723551508 0.18% 0.18% 1.00x
namedelementonion_init[callables3] 0.0001584823317981106 0.00015957401313780752 -0.69% -0.68% 0.99x
namedelementonion_init[empty] 0.00004433252298390279 0.00004360369957568477 1.64% 1.67% 1.02x
namedelementonion_inject 0.03586234326191592 0.039525837526877786 -10.22% -9.27% 0.91x
namedelementonion_iter 0.00015302537554337945 0.0001531219115328417 -0.06% -0.06% 1.00x
namedelementonion_remove 0.0006504386997990119 0.0006575442557323217 -1.09% -1.08% 0.99x
namedelementonion_replace 0.002451074767496948 0.0024377814005045783 0.54% 0.55% 1.01x
readableattributedict_getitem[large] 0.000015634910468803577 0.000015471818853677242 1.04% 1.05% 1.01x
readableattributedict_getitem[small] 0.000014657979674754923 0.000014675752107827036 -0.12% -0.12% 1.00x
readableattributedict_init[empty] 0.00005303641909623654 0.00005205427403717713 1.85% 1.89% 1.02x
readableattributedict_init[large] 0.00008785620954334755 0.00008656984825275945 1.46% 1.49% 1.01x
readableattributedict_init[small] 0.000057402804776948875 0.000057717443635449174 -0.55% -0.55% 0.99x
readableattributedict_recursive[list-in-dict] 0.0008925914223052931 0.0008811803165021107 1.28% 1.29% 1.01x
readableattributedict_recursive[nested-dict] 0.0009286271999987578 0.0009018876352241235 2.88% 2.96% 1.03x
readableattributedict_recursive[set] 0.00047251153325044977 0.00045736813143600963 3.20% 3.31% 1.03x
tupleize_lists_nested[list-in-dict] 0.0008552112456872519 0.0008617743863063094 -0.77% -0.76% 0.99x
tupleize_lists_nested[tuple-in-dict] 0.0009312546477687586 0.0009423273553774028 -1.19% -1.18% 0.99x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.0003333147096317769 0.00025294399972868357 24.11% 31.77% 1.32x
simplecache_cache[100] 0.0027224251885218606 0.001943394321501432 28.62% 40.09% 1.40x
simplecache_cache[1000] 0.027273702054049567 0.01864330416666841 31.64% 46.29% 1.46x
simplecache_eviction[10] 0.0005859722712994301 0.0005837641819301323 0.38% 0.38% 1.00x
simplecache_eviction[100] 0.0052012632513080215 0.005198625523555251 0.05% 0.05% 1.00x
simplecache_pop[10] 0.0004535428070748385 0.0003621351593968625 20.15% 25.24% 1.25x
simplecache_pop[100] 0.0037943321450362795 0.0028844500997014955 23.98% 31.54% 1.32x
simplecache_retrieval[10] 0.00009274427536121493 0.00005692665619248906 38.62% 62.92% 1.63x
simplecache_retrieval[100] 0.0008214601884372244 0.0004716225436717832 42.59% 74.18% 1.74x

@BobTheBuidler BobTheBuidler force-pushed the BobTheBuidler-patch-2 branch from 68a139b to 11c2b5c Compare October 9, 2025 03:18
@github-actions
Copy link

github-actions bot commented Oct 9, 2025

Pytest Benchmark Diff

ens/base_ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_valid_name[] 0.0000017721882438846156 0.0000014359919123102732 18.97% 23.41% 1.23x
is_valid_name[a..eth] 0.000024905114059981037 0.00003159189959569601 -26.85% -21.17% 0.79x
is_valid_name[a.eth..] 0.00002565681524418226 0.00003166248797963808 -23.41% -18.97% 0.81x
is_valid_name[a.eth.] 0.000025482131162331404 0.000031632748322777386 -24.14% -19.44% 0.81x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23772275360001913 0.23543692839998584 0.96% 0.97% 1.01x
is_valid_name[alice.eth] 0.010623359366667274 0.010910524855557293 -2.70% -2.63% 0.97x
is_valid_name[bob.eth] 0.006160028792455147 0.006634389424831315 -7.70% -7.15% 0.93x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.25890273899999555 0.24506266600001253 5.35% 5.65% 1.06x
is_valid_name[subdomain.alice.eth] 0.03193921456250415 0.03190016365624615 0.12% 0.12% 1.00x
labelhash[] 0.0001343976660085378 0.00008358306487642746 37.81% 60.80% 1.61x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.23089007379999202 0.23149990680000201 -0.26% -0.26% 1.00x
labelhash[alice] 0.007598210203125344 0.007735589771649628 -1.81% -1.78% 0.98x
labelhash[bob] 0.003425915275262372 0.003398251703449934 0.81% 0.81% 1.01x
labelhash[emoji\U0001f468\U0001f3fb] 0.2532979677999947 0.22424814260000403 11.47% 12.95% 1.13x
labelhash[xn--fiqs8s] 0.02473354602439419 0.02472854268292328 0.02% 0.02% 1.00x
namehash[] 0.000009819498506893387 0.000003869993008293047 60.59% 153.73% 2.54x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.47108667359998435 0.470668958400006 0.09% 0.09% 1.00x
namehash[alice.eth] 0.02198407086956422 0.022395372869562665 -1.87% -1.84% 0.98x
namehash[bob.eth] 0.01338642466666594 0.013608839679998255 -1.66% -1.63% 0.98x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.517685789799998 0.4488829335999867 13.29% 15.33% 1.15x
namehash[subdomain.alice.eth] 0.06464118237499861 0.06433074062499955 0.48% 0.48% 1.00x
nameprep[] 0.00000862093222817495 0.000003482187912140102 59.61% 147.57% 2.48x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2277190946000019 0.23592202739999948 -3.60% -3.48% 0.97x
nameprep[alice.eth] 0.01038897480208334 0.011532244266667628 -11.00% -9.91% 0.90x
nameprep[bob.eth] 0.006443063792453387 0.007066938465754902 -9.68% -8.83% 0.91x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.2836340719999839 0.258090307000009 9.01% 9.90% 1.10x
nameprep[subdomain.alice.eth] 0.03242292453125373 0.03196531825806636 1.41% 1.43% 1.01x
parent[] 9.750602429528623e-7 8.384322078469457e-7 14.01% 16.30% 1.16x
parent[bar.eth] 0.000003656807527835451 0.000002609327098314752 28.64% 40.14% 1.40x
parent[eth] 0.0000020680848287595583 0.000001537349528507296 25.66% 34.52% 1.35x
parent[foo.bar.eth] 0.000004294358737618483 0.0000032560560780907996 24.18% 31.89% 1.32x
parent[sub.sub2.foo.bar.eth] 0.000004965246419266336 0.000004006351844698515 19.31% 23.93% 1.24x
reverse_domain[0x0000000000000000000000000000000000000000] 0.000050446290671604195 0.000016874987611378686 66.55% 198.94% 2.99x
reverse_domain[0x1111111111111111111111111111111111111111] 0.00005130182256244846 0.000016553976247651423 67.73% 209.91% 3.10x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.000051861234479661365 0.000016765167533355945 67.67% 209.34% 3.09x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.000013860135648069115 0.000014064070968744507 -1.47% -1.45% 0.99x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000013829671499695723 0.000014040167371236058 -1.52% -1.50% 0.99x
address[alice.eth] 0.000014049229876756465 0.00001397663231741728 0.52% 0.52% 1.01x
address[bob.eth] 0.000014020484365545778 0.00001434322827533811 -2.30% -2.25% 0.98x
address[emoji\U0001f468\U0001f3fb.eth] 0.000013849263658490783 0.00001388057361710367 -0.23% -0.23% 1.00x
address[subdomain.alice.eth] 0.000014041346562456199 0.00001419880609348807 -1.12% -1.11% 0.99x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.0001457823649913537 0.0001430422187361455 1.88% 1.92% 1.02x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.0001439253426605563 0.00014450216787876958 -0.40% -0.40% 1.00x
normalize_name_ensip15[alice.eth] 0.00014484808588772008 0.00014961047462191195 -3.29% -3.18% 0.97x
normalize_name_ensip15[bob.eth] 0.00014698077458308493 0.00014388715376913478 2.10% 2.15% 1.02x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.00014689879666352114 0.00014238343717176807 3.07% 3.17% 1.03x
normalize_name_ensip15[subdomain.alice.eth] 0.0001459924950185127 0.00014686759559455427 -0.60% -0.60% 0.99x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.00005032525298408403 0.00001730864876210736 65.61% 190.75% 2.91x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.0000510253245471582 0.000017596968147219016 65.51% 189.97% 2.90x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005059545734772766 0.000017274135921682917 65.86% 192.90% 2.93x
dns_encode_name[] 0.000006645348755265029 0.0000047726143528162545 28.18% 39.24% 1.39x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23621373919999086 0.23988801559999046 -1.56% -1.53% 0.98x
dns_encode_name[alice.eth] 0.010677260372341622 0.011063661714284525 -3.62% -3.49% 0.97x
dns_encode_name[bob.eth] 0.0065910391699364685 0.006699537826666907 -1.65% -1.62% 0.98x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.26577528059998484 0.245954818000007 7.46% 8.06% 1.08x
dns_encode_name[subdomain.alice.eth] 0.03190162799999818 0.03242293129032107 -1.63% -1.61% 0.98x
estimate_auction_start_gas[labels0] 0.0000017698581643843984 0.000001101403663693133 37.77% 60.69% 1.61x
estimate_auction_start_gas[labels1] 0.0000016794585335344458 0.0000011107361912165276 33.86% 51.20% 1.51x
estimate_auction_start_gas[labels2] 0.0000015075146005155953 0.0000010859380308758974 27.97% 38.82% 1.39x
is_empty_name[ ] 0.0000013099217607663203 0.0000011259036899777774 14.05% 16.34% 1.16x
is_empty_name[.] 0.0000012910801514127652 0.0000011699119723019753 9.39% 10.36% 1.10x
is_empty_name[0] 0.0000012759605182621208 0.0000011216850480110578 12.09% 13.75% 1.14x
is_empty_name[1] 0.0000012856197580886718 0.0000011129919421735098 13.43% 15.51% 1.16x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.0000012976268103001992 0.00000111644890339996 13.96% 16.23% 1.16x
is_empty_name[alice.eth] 0.0000012999412565352138 0.0000012255136636478918 5.73% 6.07% 1.06x
is_empty_name[bob.eth] 0.0000013038564181464793 0.0000011150207379094293 14.48% 16.94% 1.17x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.0000013113546920955066 0.0000011323390196978422 13.65% 15.81% 1.16x
is_empty_name[subdomain.alice.eth] 0.0000013052521522749682 0.000001112095793516601 14.80% 17.37% 1.17x
is_none_or_zero_address[] 9.945976251353905e-7 0.0000010903006916103788 -9.62% -8.78% 0.91x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.000001138034379274574 0.0000012169129611351874 -6.93% -6.48% 0.94x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.00000121258261046813 0.0000011433952740544627 5.71% 6.05% 1.06x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.0000012231854628161628 0.0000011407130981156687 6.74% 7.23% 1.07x
is_valid_ens_name[] 0.000001848047541132005 0.0000014080898671966528 23.81% 31.24% 1.31x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23489343579999514 0.2510426809999899 -6.88% -6.43% 0.94x
is_valid_ens_name[alice.eth] 0.010663679500005685 0.011268939358697964 -5.68% -5.37% 0.95x
is_valid_ens_name[bar] 0.0000019293895156179443 0.0000015204054020904682 21.20% 26.90% 1.27x
is_valid_ens_name[baz] 0.0000018919147882691065 0.0000015250210865855571 19.39% 24.06% 1.24x
is_valid_ens_name[bob.eth] 0.006354800955690176 0.006851619798698703 -7.82% -7.25% 0.93x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.2556741444000181 0.22917163580000305 10.37% 11.56% 1.12x
is_valid_ens_name[foo] 0.000001942432514973608 0.0000017627004622000318 9.25% 10.20% 1.10x
is_valid_ens_name[subdomain.alice.eth] 0.030976476617648612 0.03399068503225158 -9.73% -8.87% 0.91x
is_valid_name[] 0.0000015664004656488502 0.0000014323435377750388 8.56% 9.36% 1.09x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23058206540000584 0.2376093852000281 -3.05% -2.96% 0.97x
is_valid_name[alice.eth] 0.010541434431575836 0.01102556323077049 -4.59% -4.39% 0.96x
is_valid_name[bob.eth] 0.0063130558385104995 0.006734876535946482 -6.68% -6.26% 0.94x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2637205942000037 0.23195076619999783 12.05% 13.70% 1.14x
is_valid_name[subdomain.alice.eth] 0.03089225166666431 0.03276781737501011 -6.07% -5.72% 0.94x
label_to_hash[] 0.00013379104278412457 0.00008263912643805506 38.23% 61.90% 1.62x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.2335912129999997 0.23269823939999695 0.38% 0.38% 1.00x
label_to_hash[alice] 0.007728723401516539 0.007905579484129826 -2.29% -2.24% 0.98x
label_to_hash[bob] 0.003461617607912216 0.003411649281251409 1.44% 1.46% 1.01x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.29144963360000703 0.2461134958000116 15.56% 18.42% 1.18x
label_to_hash[xn--fiqs8s] 0.024480165428573605 0.02496751751220511 -1.99% -1.95% 0.98x
normal_name_to_hash[] 0.0000016320296849702499 0.000001356709784185414 16.87% 20.29% 1.20x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2346953565999911 0.23814466720000382 -1.47% -1.45% 0.99x
normal_name_to_hash[alice.eth] 0.01151832324705658 0.011488084579550095 0.26% 0.26% 1.00x
normal_name_to_hash[bob.eth] 0.007185914521738164 0.007019997013985615 2.31% 2.36% 1.02x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.28290160660000085 0.24647971140000208 12.87% 14.78% 1.15x
normal_name_to_hash[subdomain.alice.eth] 0.03245846035484361 0.03285027532258079 -1.21% -1.19% 0.99x
normalize_name[] 0.000008276609039490966 0.00000339642486547112 58.96% 143.69% 2.44x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22983540299999278 0.24137802219999002 -5.02% -4.78% 0.95x
normalize_name[alice.eth] 0.01053583550000011 0.010919352505372019 -3.64% -3.51% 0.96x
normalize_name[bob.eth] 0.006338618450001832 0.006927476249997929 -9.29% -8.50% 0.91x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.2676768365999919 0.24252981840000984 9.39% 10.37% 1.10x
normalize_name[subdomain.alice.eth] 0.030612385848483525 0.03422645922580797 -11.81% -10.56% 0.89x
raw_name_to_hash[] 0.000009533449725320564 0.0000038602957553992635 59.51% 146.96% 2.47x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4690413756000112 0.47181711179999863 -0.59% -0.59% 0.99x
raw_name_to_hash[alice.eth] 0.021802920399997875 0.022341418600001363 -2.47% -2.41% 0.98x
raw_name_to_hash[bob.eth] 0.013420048148645947 0.013696376405407037 -2.06% -2.02% 0.98x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5214001918000009 0.4708880884000223 9.69% 10.73% 1.11x
raw_name_to_hash[subdomain.alice.eth] 0.06310191681248511 0.06663242043750017 -5.59% -5.30% 0.95x
sha3_text[0] 0.00011928052241606231 0.00007627201842551132 36.06% 56.39% 1.56x
sha3_text[1] 0.00011890105337815345 0.0000757108145296806 36.32% 57.05% 1.57x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000127868716751556 0.00008515316434050638 33.41% 50.16% 1.50x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.0001274117963490745 0.00008420909928981298 33.91% 51.30% 1.51x
sha3_text[alice.eth] 0.00013316117387230105 0.00008846899509169965 33.56% 50.52% 1.51x
sha3_text[alice] 0.00012769776361150052 0.00008515692047028332 33.31% 49.96% 1.50x
sha3_text[bob.eth] 0.00012883527938030646 0.00008480572423085416 34.18% 51.92% 1.52x
sha3_text[bob] 0.0001276239996531788 0.0000854091897766842 33.08% 49.43% 1.49x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00012813405777883653 0.00008568292925365198 33.13% 49.54% 1.50x
sha3_text[emoji\U0001f468\U0001f3fb] 0.00012830824304741576 0.00008529157645261568 33.53% 50.43% 1.50x
sha3_text[subdomain.alice.eth] 0.00012783489534068623 0.00008428385689184923 34.07% 51.67% 1.52x
sha3_text[xn--fiqs8s] 0.00012924229545386754 0.00008449263183046183 34.62% 52.96% 1.53x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.0002944878856624819 0.0002916779682988575 0.95% 0.96% 1.01x
fallback_func_abi_exists 0.00025377548251746026 0.0002525977305023701 0.46% 0.47% 1.00x
filter_by_argument_name[a] 0.0006519033661874138 0.00038382964766108256 41.12% 69.84% 1.70x
filter_by_argument_name[a+b] 0.0006566829335623605 0.00038923779224544385 40.73% 68.71% 1.69x
filter_by_argument_name[b] 0.0006503493616884967 0.00037445131351495514 42.42% 73.68% 1.74x
filter_by_argument_name[c] 0.0006542758026131832 0.00038456048542122046 41.22% 70.14% 1.70x
filter_by_argument_name[notfound] 0.000640351805006206 0.00036974218286428106 42.26% 73.19% 1.73x
filter_by_argument_type[address] 0.0005825106202610779 0.0005899257439891606 -1.27% -1.26% 0.99x
filter_by_argument_type[notatype] 0.0005723416735945882 0.0005790512510199681 -1.17% -1.16% 0.99x
filter_by_argument_type[string] 0.0005888528464345873 0.0005874329859501831 0.24% 0.24% 1.00x
filter_by_argument_type[uint+address] 0.0005831683087427588 0.0005919101894807037 -1.50% -1.48% 0.99x
filter_by_argument_type[uint256] 0.0005814436810812556 0.0005911418243857698 -1.67% -1.64% 0.98x
filter_by_types[constructor] 0.00003633963396806731 0.000036882595255270256 -1.49% -1.47% 0.99x
filter_by_types[event] 0.000036417617828435493 0.000036871002489756475 -1.24% -1.23% 0.99x
filter_by_types[fallback] 0.00003658626541319094 0.00003765763597511118 -2.93% -2.85% 0.97x
filter_by_types[func+event] 0.00004135279760617037 0.00003991598677858281 3.47% 3.60% 1.04x
filter_by_types[function] 0.00003658808937920205 0.00003720473060346069 -1.69% -1.66% 0.98x
filter_by_types[none] 0.000036546048334404505 0.00003642855917202087 0.32% 0.32% 1.00x
filter_by_types[receive] 0.00003591906854824103 0.00003616478544931931 -0.68% -0.68% 0.99x
find_constructor_abi_element_by_type 0.00003322299680447061 0.000033245423414530696 -0.07% -0.07% 1.00x
get_abi_element_signature[custom] 0.00005218606371236858 0.00005114565917101446 1.99% 2.03% 1.02x
get_abi_element_signature[fallback] 0.000021101056145472186 0.000020804113518845284 1.41% 1.43% 1.01x
get_abi_element_signature[receive] 0.00002846282025644102 0.000028068618044235276 1.38% 1.40% 1.01x
get_abi_element_signature[transfer] 0.000056644904611485764 0.000055852431594026224 1.40% 1.42% 1.01x
get_name_from_abi_element_identifier[custom] 0.000041620338246735604 0.00003753556552574778 9.81% 10.88% 1.11x
get_name_from_abi_element_identifier[fallback] 0.000012027970014560029 0.000011905806717838666 1.02% 1.03% 1.01x
get_name_from_abi_element_identifier[func] 0.00004213083521543587 0.00003756877806056488 10.83% 12.14% 1.12x
get_name_from_abi_element_identifier[receive] 0.000018370134392610574 0.000018140694056517875 1.25% 1.26% 1.01x
get_tuple_type_str_parts[not-tuple] 0.000021832041586388457 0.000022154192935601487 -1.48% -1.45% 0.99x
get_tuple_type_str_parts[one-dim] 0.00007245723263002074 0.00007306867671796155 -0.84% -0.84% 0.99x
get_tuple_type_str_parts[plain] 0.000047273592903402006 0.000047437224757220065 -0.35% -0.34% 1.00x
get_tuple_type_str_parts[two-dim] 0.0000920621980269842 0.00009168542547588627 0.41% 0.41% 1.00x
is_address_type[address] 0.000007938145864842517 0.00000802817366862838 -1.13% -1.12% 0.99x
is_address_type[array] 0.000008654617328342874 0.000008681168059721513 -0.31% -0.31% 1.00x
is_address_type[bool] 0.000007737844172907625 0.000007831226232852371 -1.21% -1.19% 0.99x
is_address_type[bytes] 0.000007935800140209185 0.00000795428879987089 -0.23% -0.23% 1.00x
is_address_type[bytes32] 0.000008112223559993601 0.000008161231136447049 -0.60% -0.60% 0.99x
is_address_type[bytes33] 0.000008635070083942057 0.000008801254729550232 -1.92% -1.89% 0.98x
is_address_type[empty] 0.00000797017289669464 0.000007727488304719163 3.04% 3.14% 1.03x
is_address_type[enum] 0.000008453402477341343 0.000008707349056406426 -3.00% -2.92% 0.97x
is_address_type[int256] 0.00000771631449993601 0.000007865006232042314 -1.93% -1.89% 0.98x
is_address_type[invalid] 0.000008388777241328102 0.000008431780010166098 -0.51% -0.51% 0.99x
is_address_type[string] 0.000007828279389405857 0.000007842387617972762 -0.18% -0.18% 1.00x
is_address_type[tuple-array] 0.000008504739773972195 0.000008584835164816703 -0.94% -0.93% 0.99x
is_address_type[tuple] 0.000007994223323292308 0.000008015546636938011 -0.27% -0.27% 1.00x
is_address_type[uint256] 0.000008086923573848472 0.000008129671595110448 -0.53% -0.53% 0.99x
is_array_type[address] 0.00007827581502101338 0.00008081352105934984 -3.24% -3.14% 0.97x
is_array_type[array] 0.00008009709244325844 0.00008179565819807878 -2.12% -2.08% 0.98x
is_array_type[bool] 0.00007347367596584377 0.00007553118008804752 -2.80% -2.72% 0.97x
is_array_type[bytes] 0.00007436192528138308 0.00007649745995811518 -2.87% -2.79% 0.97x
is_array_type[bytes32] 0.00007898952183540473 0.0000805564356436582 -1.98% -1.95% 0.98x
is_array_type[bytes33] 0.0000781818687999214 0.00008028129385177072 -2.69% -2.62% 0.97x
is_array_type[empty] 0.0000601134465475578 0.00006199105283516 -3.12% -3.03% 0.97x
is_array_type[enum] 0.00007678840775289304 0.00007858398501154248 -2.34% -2.28% 0.98x
is_array_type[int256] 0.00007625737201254113 0.00007875732007957304 -3.28% -3.17% 0.97x
is_array_type[invalid] 0.00008020509815450675 0.00008244393517784164 -2.79% -2.72% 0.97x
is_array_type[string] 0.00007668837055202818 0.00007859668795031696 -2.49% -2.43% 0.98x
is_array_type[tuple-array] 0.00008027101046264726 0.0000837543003120605 -4.34% -4.16% 0.96x
is_array_type[tuple] 0.00007459892051335416 0.00007645095453414827 -2.48% -2.42% 0.98x
is_array_type[uint256] 0.00007817683001451028 0.00008040942114521604 -2.86% -2.78% 0.97x
is_bool_type[address] 0.00000800144668913554 0.000007987570868469168 0.17% 0.17% 1.00x
is_bool_type[array] 0.00000854595021230884 0.000008629104492612667 -0.97% -0.96% 0.99x
is_bool_type[bool] 0.000008050645862461415 0.00000809529623376682 -0.55% -0.55% 0.99x
is_bool_type[bytes] 0.000008006630358116864 0.000008079639058785142 -0.91% -0.90% 0.99x
is_bool_type[bytes32] 0.000008030387943426702 0.000008258058358505944 -2.84% -2.76% 0.97x
is_bool_type[bytes33] 0.000008462013048194484 0.000008564571438073612 -1.21% -1.20% 0.99x
is_bool_type[empty] 0.000007951976706439014 0.000008014242350810455 -0.78% -0.78% 0.99x
is_bool_type[enum] 0.000008466271576225961 0.000008473587206621311 -0.09% -0.09% 1.00x
is_bool_type[int256] 0.000008041795075403696 0.000008015721147590467 0.32% 0.33% 1.00x
is_bool_type[invalid] 0.000008676375036669141 0.000008552846002191523 1.42% 1.44% 1.01x
is_bool_type[string] 0.0000079006219270175 0.000008375108926688712 -6.01% -5.67% 0.94x
is_bool_type[tuple-array] 0.000008535851008624484 0.000008580183548848994 -0.52% -0.52% 0.99x
is_bool_type[tuple] 0.000007902972147664343 0.000008004400028523671 -1.28% -1.27% 0.99x
is_bool_type[uint256] 0.000008020935464540077 0.000008012692305663935 0.10% 0.10% 1.00x
is_bytes_type[address] 0.00006336978958369378 0.00006144915388166376 3.03% 3.13% 1.03x
is_bytes_type[array] 0.00006222164855297108 0.000059598593857641076 4.22% 4.40% 1.04x
is_bytes_type[bool] 0.00005516127577439899 0.000056956169350385184 -3.25% -3.15% 0.97x
is_bytes_type[bytes] 0.000055386710130917646 0.00005555095023146443 -0.30% -0.30% 1.00x
is_bytes_type[bytes32] 0.00005966673371140984 0.000058945507838125765 1.21% 1.22% 1.01x
is_bytes_type[bytes33] 0.00006232485938914128 0.00006280015874861086 -0.76% -0.76% 0.99x
is_bytes_type[empty] 0.00005579017585161833 0.00005502140939067602 1.38% 1.40% 1.01x
is_bytes_type[enum] 0.000057716151049004096 0.000057747680925580814 -0.05% -0.05% 1.00x
is_bytes_type[int256] 0.00005852436131923907 0.00005867645043759649 -0.26% -0.26% 1.00x
is_bytes_type[invalid] 0.00005720914507490808 0.00005534266364500289 3.26% 3.37% 1.03x
is_bytes_type[string] 0.00005977386843984697 0.000060011798449663766 -0.40% -0.40% 1.00x
is_bytes_type[tuple-array] 0.00005586942097706073 0.00005600217679412422 -0.24% -0.24% 1.00x
is_bytes_type[tuple] 0.000056314250216763457 0.0000554430915215834 1.55% 1.57% 1.02x
is_bytes_type[uint256] 0.000060675052422297024 0.00006343359586008136 -4.55% -4.35% 0.96x
is_int_type[address] 0.00004027183579863741 0.00003998834918567588 0.70% 0.71% 1.01x
is_int_type[array] 0.00004087260404348631 0.00003936403598512329 3.69% 3.83% 1.04x
is_int_type[bool] 0.000040244392904051345 0.00004057908787036113 -0.83% -0.82% 0.99x
is_int_type[bytes] 0.00004438239920892739 0.00004339552078171437 2.22% 2.27% 1.02x
is_int_type[bytes32] 0.0000403139363343862 0.000039096944184002894 3.02% 3.11% 1.03x
is_int_type[bytes33] 0.00004247188674165626 0.00004026839513062646 5.19% 5.47% 1.05x
is_int_type[empty] 0.00004181904254269734 0.00004001893667106046 4.30% 4.50% 1.04x
is_int_type[enum] 0.00004570308130365655 0.000045676258624453485 0.06% 0.06% 1.00x
is_int_type[int256] 0.00004576070903915157 0.000045408735815508536 0.77% 0.78% 1.01x
is_int_type[invalid] 0.00004194872548276742 0.00003918962890625146 6.58% 7.04% 1.07x
is_int_type[string] 0.000047441702242160874 0.00004465065262774769 5.88% 6.25% 1.06x
is_int_type[tuple-array] 0.00004263943637505463 0.000039929461116707416 6.36% 6.79% 1.07x
is_int_type[tuple] 0.000043642829087737686 0.00004282313451014385 1.88% 1.91% 1.02x
is_int_type[uint256] 0.00004017470169906622 0.00004040048307429453 -0.56% -0.56% 0.99x
is_probably_enum[address] 0.00006980934582162998 0.00007235847731431306 -3.65% -3.52% 0.96x
is_probably_enum[empty] 0.00006475461495388752 0.0000686841604316711 -6.07% -5.72% 0.94x
is_probably_enum[enum] 0.00006633820184337096 0.00007212735887086729 -8.73% -8.03% 0.92x
is_probably_enum[lib-dot] 0.00007078286653188675 0.00007303787945228794 -3.19% -3.09% 0.97x
is_probably_enum[lib-enum] 0.00007845613039204003 0.00007893484266675273 -0.61% -0.61% 0.99x
is_probably_enum[uint256] 0.00007006402759805584 0.0000723381431597462 -3.25% -3.14% 0.97x
is_recognized_type[address] 0.00007884965298766102 0.00008164196568896628 -3.54% -3.42% 0.97x
is_recognized_type[array] 0.00008323293370649297 0.00008745449567655132 -5.07% -4.83% 0.95x
is_recognized_type[bool] 0.00008226502273280609 0.00008355915032419857 -1.57% -1.55% 0.98x
is_recognized_type[bytes] 0.00015635745013547255 0.00015633637368578176 0.01% 0.01% 1.00x
is_recognized_type[bytes32] 0.00014969746978017362 0.00015553713277195925 -3.90% -3.75% 0.96x
is_recognized_type[bytes33] 0.00014004394370506262 0.0001447492867975497 -3.36% -3.25% 0.97x
is_recognized_type[empty] 0.00006121628007088927 0.00006490659643438638 -6.03% -5.69% 0.94x
is_recognized_type[enum] 0.00008371726787496121 0.00008921612313982416 -6.57% -6.16% 0.94x
is_recognized_type[int256] 0.00012884545929222406 0.0001335787033752095 -3.67% -3.54% 0.96x
is_recognized_type[invalid] 0.00008331711666392208 0.00009023726700876918 -8.31% -7.67% 0.92x
is_recognized_type[string] 0.00010166296257389199 0.00010816613381488018 -6.40% -6.01% 0.94x
is_recognized_type[tuple-array] 0.00008330039769146321 0.00008929326795957455 -7.19% -6.71% 0.93x
is_recognized_type[tuple] 0.00008369618691936011 0.00008963540172996419 -7.10% -6.63% 0.93x
is_recognized_type[uint256] 0.0001301562124666018 0.00013217963575314174 -1.55% -1.53% 0.98x
is_string_type[address] 0.00000800625912550593 0.000007848295214030168 1.97% 2.01% 1.02x
is_string_type[array] 0.000008494293594285287 0.000008373378661279843 1.42% 1.44% 1.01x
is_string_type[bool] 0.000007858532420687048 0.000008271976489324163 -5.26% -5.00% 0.95x
is_string_type[bytes] 0.000007871562766530616 0.000007836993195396376 0.44% 0.44% 1.00x
is_string_type[bytes32] 0.00000788908568681456 0.000007739897012449914 1.89% 1.93% 1.02x
is_string_type[bytes33] 0.000008597474937677554 0.000008472561707851544 1.45% 1.47% 1.01x
is_string_type[empty] 0.000008241035691054844 0.000007930009090501948 3.77% 3.92% 1.04x
is_string_type[enum] 0.000008698362154826693 0.000008515621149079863 2.10% 2.15% 1.02x
is_string_type[int256] 0.000008225359954374453 0.000008171120262766932 0.66% 0.66% 1.01x
is_string_type[invalid] 0.00000852933986932237 0.00000831903415650671 2.47% 2.53% 1.03x
is_string_type[string] 0.000007987977719044415 0.000007928480181165994 0.74% 0.75% 1.01x
is_string_type[tuple-array] 0.00000843338858039636 0.000008496669492299994 -0.75% -0.74% 0.99x
is_string_type[tuple] 0.000007903198712091185 0.00000787163671713729 0.40% 0.40% 1.00x
is_string_type[uint256] 0.000007980444260491616 0.000007892756338106973 1.10% 1.11% 1.01x
is_uint_type[address] 0.000046808359479810146 0.000045992705972691435 1.74% 1.77% 1.02x
is_uint_type[array] 0.00004607790951065248 0.00004411922613985661 4.25% 4.44% 1.04x
is_uint_type[bool] 0.00003895754373025663 0.00003904098160623702 -0.21% -0.21% 1.00x
is_uint_type[bytes] 0.00003904121031067435 0.00003936368462888899 -0.83% -0.82% 0.99x
is_uint_type[bytes32] 0.00004634543534601811 0.000045787900216158914 1.20% 1.22% 1.01x
is_uint_type[bytes33] 0.00004523012331504928 0.00004432562445943552 2.00% 2.04% 1.02x
is_uint_type[empty] 0.0000393812888498479 0.00003897395492875638 1.03% 1.05% 1.01x
is_uint_type[enum] 0.00004343844559951042 0.00004263475746041749 1.85% 1.89% 1.02x
is_uint_type[int256] 0.00004282985440383569 0.00004231725879988756 1.20% 1.21% 1.01x
is_uint_type[invalid] 0.00003940263424217024 0.00003965629018737821 -0.64% -0.64% 0.99x
is_uint_type[string] 0.000043594875638317886 0.00004284428418321818 1.72% 1.75% 1.02x
is_uint_type[tuple-array] 0.000039347088736368196 0.00003948044494589538 -0.34% -0.34% 1.00x
is_uint_type[tuple] 0.00003912110658442673 0.00004062983080495484 -3.86% -3.71% 0.96x
is_uint_type[uint256] 0.00004520835291449267 0.000044667149969051566 1.20% 1.21% 1.01x
length_of_array_type[dynamic] 0.00016434457890156218 0.00016937178389838078 -3.06% -2.97% 0.97x
length_of_array_type[fixed] 0.00017546626833421917 0.00017866748632256957 -1.82% -1.79% 0.98x
length_of_array_type[nested] 0.00018363324372741937 0.00018736012901337984 -2.03% -1.99% 0.98x
map_abi_data 0.00640211212879046 0.006427419293708658 -0.40% -0.39% 1.00x
normalize_event_input_types 0.0004180216984199388 0.0004279129573986888 -2.37% -2.31% 0.98x
receive_func_abi_exists 0.00031876076875480316 0.0003233737086173914 -1.45% -1.43% 0.99x
strip_abi_types 0.00162923265488169 0.0016777957319553656 -2.98% -2.89% 0.97x
sub_type_of_array_type[nested] 0.00018594462698105126 0.0001847360815678412 0.65% 0.65% 1.01x
sub_type_of_array_type[simple] 0.0001732262566756113 0.00017637034464740636 -1.82% -1.78% 0.98x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.00047234315778825703 0.0005435444032169317 -15.07% -13.10% 0.87x
PropertyCheckingFactory[big-valid] 0.0004687598520474447 0.000546127646990094 -16.50% -14.17% 0.86x
PropertyCheckingFactory[inheritance] 0.000980930279351781 0.0009546527838872769 2.68% 2.75% 1.03x
PropertyCheckingFactory[invalid] 0.00047231678286589214 0.0005401123615377821 -14.35% -12.55% 0.87x
PropertyCheckingFactory[multi-normalizer] 0.0004640024196933163 0.0005452237979610084 -17.50% -14.90% 0.85x
PropertyCheckingFactory[multi-prop] 0.0004669918875133414 0.0005396268651218448 -15.55% -13.46% 0.87x
PropertyCheckingFactory[normalized] 0.00047187593472741436 0.0005491607270998589 -16.38% -14.07% 0.86x
PropertyCheckingFactory[valid] 0.0015580768000014748 0.0010046840496471675 35.52% 55.08% 1.55x
verify_attr[empty] 0.00010099874599709119 0.00016215645284321635 -60.55% -37.72% 0.62x
verify_attr[found-end] 0.00001150225389742676 0.000010062827231813724 12.51% 14.30% 1.14x
verify_attr[found-start] 0.000009391544161101757 0.000007847892032627937 16.44% 19.67% 1.20x
verify_attr[large-found] 0.00014168209133973795 0.00013068107145879486 7.76% 8.42% 1.08x
verify_attr[large-notfound] 0.00020380601072354752 0.00026093736420416995 -28.03% -21.89% 0.78x
verify_attr[notfound] 0.00010568779767389851 0.00016596687399191918 -57.04% -36.32% 0.64x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006581605538467527 0.0006356170941031837 3.43% 3.55% 1.04x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.00007822053141751338 0.000021981927100390857 71.90% 255.84% 3.56x
percentile[100-90th] 0.00011092869349461046 0.00005206806868499706 53.06% 113.05% 2.13x
percentile[100k-99th] 0.037006406392858286 0.036662062071428636 0.93% 0.94% 1.01x
percentile[100k-median] 0.037765020592608514 0.03665462303702801 2.94% 3.03% 1.03x
percentile[10k-10th] 0.0038030143783745226 0.0036828253296713833 3.16% 3.26% 1.03x
percentile[10k-99th] 0.003764809381131409 0.003674757705884618 2.39% 2.45% 1.02x
percentile[10k-median] 0.0038570624147237246 0.003675053733331458 4.72% 4.95% 1.05x
percentile[1k-99th] 0.00047696694739302585 0.000407399812031618 14.59% 17.08% 1.17x
percentile[1M-median] 0.5866651460000185 0.5825903056000016 0.69% 0.70% 1.01x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.000012989161534803297 0.000006518595295713689 49.82% 99.26% 1.99x
to_bytes_if_hex[empty-str] 0.00031022849097769563 0.00003814913963887496 87.70% 713.20% 8.13x
to_bytes_if_hex[hexstr] 0.0003353697291015008 0.00004315161428157047 87.13% 677.19% 7.77x
to_bytes_if_hex[large-hex] 0.00034177494392454116 0.00005073879140613227 85.15% 573.60% 6.74x
to_bytes_if_hex[non-prefixed-hex] 0.0003280545346783458 0.00004364733796307625 86.70% 651.60% 7.52x
to_bytes_if_hex[nothex] 0.0004153095346759118 0.0002676891180545877 35.54% 55.15% 1.55x
to_bytes_if_hex[unicode] 0.000427459355947552 0.0002757548616921813 35.49% 55.01% 1.55x
to_bytes_if_hex[zero] 0.00033525915631615113 0.00004334393402032896 87.07% 673.49% 7.73x
to_hex_if_bytes[bytes] 0.00022260768148064467 0.000051895233139192254 76.69% 328.96% 4.29x
to_hex_if_bytes[empty-bytes] 0.0002110194365047142 0.00004022381092636473 80.94% 424.61% 5.25x
to_hex_if_bytes[empty-str] 0.00010312132886653778 0.00019227047132072233 -86.45% -46.37% 0.54x
to_hex_if_bytes[hexstr] 0.00028234993562837213 0.000023110484374077317 91.81% 1121.74% 12.22x
to_hex_if_bytes[large-bytes] 0.00022835015566530768 0.00005393271653530033 76.38% 323.40% 4.23x
to_hex_if_bytes[non-prefixed-hex] 0.00010506353188197823 0.00019712991204956498 -87.63% -46.70% 0.53x
to_hex_if_bytes[not-hex] 0.00010534470192697526 0.0001950337389430991 -85.14% -45.99% 0.54x
to_hex_if_bytes[unicode] 0.00011056709921827325 0.0002001694121964843 -81.04% -44.76% 0.55x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.0003055373833707689 0.00010106934998400118 66.92% 202.30% 3.02x
all_in_dict[empty-dict] 0.00026264874980411456 0.00007465569673199409 71.58% 251.81% 3.52x
all_in_dict[empty-list] 0.0002807303635307268 0.0000877208129390403 68.75% 220.03% 3.20x
all_in_dict[mixed-types] 0.0003108546713754768 0.0001022785448493503 67.10% 203.93% 3.04x
all_in_dict[no-overlap] 0.0002845085973087736 0.00008783532828747547 69.13% 223.91% 3.24x
all_in_dict[none-in] 0.0002794053808400769 0.00008938058584717248 68.01% 212.60% 3.13x
all_in_dict[one-in] 0.00028159163455498585 0.00009374285276457212 66.71% 200.39% 3.00x
all_in_dict[partial-overlap] 0.0003199947972689188 0.00009864405868169721 69.17% 224.39% 3.24x
all_in_dict[value-none] 0.00028313716543365753 0.00009363612401248496 66.93% 202.38% 3.02x
any_in_dict[all-in] 0.00027723555375042184 0.00008916436910364603 67.84% 210.93% 3.11x
any_in_dict[empty-dict] 0.00030715136568242653 0.00008862809471285075 71.15% 246.56% 3.47x
any_in_dict[empty-list] 0.00026100951496954014 0.00008538756994349503 67.29% 205.68% 3.06x
any_in_dict[mixed-types] 0.00027685570882843866 0.00008781752026384392 68.28% 215.26% 3.15x
any_in_dict[no-overlap] 0.00032230783620463784 0.00010264216496578922 68.15% 214.01% 3.14x
any_in_dict[none-in] 0.000285155935243189 0.00009256299193336967 67.54% 208.07% 3.08x
any_in_dict[one-in] 0.00027569599327997466 0.00008706685143200972 68.42% 216.65% 3.17x
any_in_dict[partial-overlap] 0.0002770385224001294 0.00008728864106647536 68.49% 217.38% 3.17x
any_in_dict[value-none] 0.0002756674907724979 0.0000875056448732705 68.26% 215.03% 3.15x
either_set_is_a_subset[both-empty] 0.00016926157938753982 0.00014510099792491783 14.27% 16.65% 1.17x
either_set_is_a_subset[empty-set1] 0.0001703037794505042 0.00014398405859192701 15.45% 18.28% 1.18x
either_set_is_a_subset[empty-set2] 0.0002499667042504257 0.00024286498299519406 2.84% 2.92% 1.03x
either_set_is_a_subset[identical] 0.00018305571441933795 0.0001680699292787161 8.19% 8.92% 1.09x
either_set_is_a_subset[mixed-types] 0.00019126904212120785 0.00017239548874561908 9.87% 10.95% 1.11x
either_set_is_a_subset[not-subset] 0.0002668460511787388 0.00025306522111562084 5.16% 5.45% 1.05x
either_set_is_a_subset[partial-overlap] 0.0002934821577081134 0.000278102043164098 5.24% 5.53% 1.06x
either_set_is_a_subset[subset] 0.00019311872669971377 0.00016825303840400439 12.88% 14.78% 1.15x
either_set_is_a_subset[superset] 0.00029479773944028875 0.0002918450971571546 1.00% 1.01% 1.01x
none_in_dict[all-in] 0.0002944935366740019 0.0000891065103456145 69.74% 230.50% 3.30x
none_in_dict[empty-dict] 0.0003180673907698025 0.00008949889821740501 71.86% 255.39% 3.55x
none_in_dict[empty-list] 0.00027282189920990654 0.00008498882173556237 68.85% 221.01% 3.21x
none_in_dict[mixed-types] 0.00029201873248147663 0.00008821687951984631 69.79% 231.02% 3.31x
none_in_dict[no-overlap] 0.0003338626185004915 0.00010362813193240629 68.96% 222.17% 3.22x
none_in_dict[none-in] 0.0003072331921907942 0.00009269492839693304 69.83% 231.45% 3.31x
none_in_dict[one-in] 0.0002946633606937325 0.00008723808712764525 70.39% 237.77% 3.38x
none_in_dict[partial-overlap] 0.00029151593453676205 0.00008850827722519992 69.64% 229.37% 3.29x
none_in_dict[value-none] 0.0002911917603078809 0.00008784281794811782 69.83% 231.49% 3.31x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0015055554868803637 0.0014907463575589309 0.98% 0.99% 1.01x
attributedict_hash[flat] 0.0011315172129736652 0.0011073493498309518 2.14% 2.18% 1.02x
attributedict_hash[nested] 0.001731459081601056 0.0017383023072988935 -0.40% -0.39% 1.00x
attributedict_init[empty] 0.0000830734142594097 0.00008255652051027388 0.62% 0.63% 1.01x
attributedict_init[large] 0.0001210917524448177 0.0001250499222263282 -3.27% -3.17% 0.97x
attributedict_init[small] 0.0000896496737772917 0.00008917478179405538 0.53% 0.53% 1.01x
mutableattributedict_delitem 0.0003978664452077965 0.0003981672262617771 -0.08% -0.08% 1.00x
mutableattributedict_setitem 0.0003334185439898969 0.0003353135302502744 -0.57% -0.57% 0.99x
namedelementonion_add 0.008961985399992045 0.032981979842520735 -268.02% -72.83% 0.27x
namedelementonion_as_tuple_of_middleware 0.00014941647488285524 0.0001488294623709467 0.39% 0.39% 1.00x
namedelementonion_contains 0.00003082995989209414 0.000030438135257811843 1.27% 1.29% 1.01x
namedelementonion_getitem 0.00002920937441041138 0.00002936321594963197 -0.53% -0.52% 0.99x
namedelementonion_init[callables2] 0.0001305359785255897 0.00013108546300164852 -0.42% -0.42% 1.00x
namedelementonion_init[callables3] 0.00016486250680869277 0.00016482038680468261 0.03% 0.03% 1.00x
namedelementonion_init[empty] 0.000043157159106060406 0.0000431173111692231 0.09% 0.09% 1.00x
namedelementonion_inject 0.0433035876493551 0.035697859313953875 17.56% 21.31% 1.21x
namedelementonion_iter 0.00015375044188010802 0.0001531775314289543 0.37% 0.37% 1.00x
namedelementonion_remove 0.0006680302822155862 0.0006730573084219883 -0.75% -0.75% 0.99x
namedelementonion_replace 0.0025440277005195355 0.002564930237470418 -0.82% -0.81% 0.99x
readableattributedict_getitem[large] 0.000015098863906175304 0.000015062203551331644 0.24% 0.24% 1.00x
readableattributedict_getitem[small] 0.000014312347330855998 0.000014467858623373287 -1.09% -1.07% 0.99x
readableattributedict_init[empty] 0.000052954048949632774 0.00005186411080949419 2.06% 2.10% 1.02x
readableattributedict_init[large] 0.00008490689275630346 0.00008340288962210989 1.77% 1.80% 1.02x
readableattributedict_init[small] 0.00005738482387808057 0.000056001386196299144 2.41% 2.47% 1.02x
readableattributedict_recursive[list-in-dict] 0.0008872030480944462 0.0008838385461980367 0.38% 0.38% 1.00x
readableattributedict_recursive[nested-dict] 0.0009133571363649081 0.000924019487378537 -1.17% -1.15% 0.99x
readableattributedict_recursive[set] 0.0004703485808523264 0.00046610819802879043 0.90% 0.91% 1.01x
tupleize_lists_nested[list-in-dict] 0.0008515298917334081 0.000855379704642412 -0.45% -0.45% 1.00x
tupleize_lists_nested[tuple-in-dict] 0.0009185169587342665 0.0009363498678333445 -1.94% -1.90% 0.98x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.000329537151871879 0.00024993243838691446 24.16% 31.85% 1.32x
simplecache_cache[100] 0.0027122217765621188 0.0019511202702200091 28.06% 39.01% 1.39x
simplecache_cache[1000] 0.02758212561765477 0.018636508555548263 32.43% 48.00% 1.48x
simplecache_eviction[10] 0.0005914331628650464 0.0005884601403261618 0.50% 0.51% 1.01x
simplecache_eviction[100] 0.005248144909578611 0.00524026425790022 0.15% 0.15% 1.00x
simplecache_pop[10] 0.00045795335700626096 0.0003644358939206857 20.42% 25.66% 1.26x
simplecache_pop[100] 0.0038173830695054905 0.002915360035922685 23.63% 30.94% 1.31x
simplecache_retrieval[10] 0.00009362782358768705 0.000055337664028610854 40.90% 69.19% 1.69x
simplecache_retrieval[100] 0.0008129642261416491 0.00045939544424179057 43.49% 76.96% 1.77x

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 9, 2025

CodSpeed Performance Report

Merging #64 will degrade performances by 11.8%

Comparing BobTheBuidler-patch-2 (11c2b5c) with master (b4af4b7)

Summary

❌ 3 regressions
✅ 393 untouched
⏩ 91 skipped1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
test_faster_is_valid_name[] 24 µs 27.2 µs -11.75%
test_faster_is_valid_name[] 23.9 µs 27.1 µs -11.8%
test_faster_normal_name_to_hash[] 23.9 µs 27.1 µs -11.69%

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.

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