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.0000018062400285082027 0.0000011239030544973606 37.78% 60.71% 1.61x
is_valid_name[a..eth] 0.00002540896115338968 0.000030845270701064964 -21.40% -17.62% 0.82x
is_valid_name[a.eth..] 0.000025926452789568133 0.00003063642810421492 -18.17% -15.37% 0.85x
is_valid_name[a.eth.] 0.000025701699353506736 0.000030562218849787064 -18.91% -15.90% 0.84x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23816447139997762 0.24095109820000288 -1.17% -1.16% 0.99x
is_valid_name[alice.eth] 0.010748171618552453 0.011192597428567092 -4.13% -3.97% 0.96x
is_valid_name[bob.eth] 0.006320317782625375 0.006653513051941291 -5.27% -5.01% 0.95x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.26249838359999556 0.2496883290000369 4.88% 5.13% 1.05x
is_valid_name[subdomain.alice.eth] 0.031229437406246063 0.03241642287499502 -3.80% -3.66% 0.96x
labelhash[] 0.0001367920096948305 0.00008220074687381246 39.91% 66.41% 1.66x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.2307717304000562 0.24177649780003777 -4.77% -4.55% 0.95x
labelhash[alice] 0.007777585403223311 0.00780770593600937 -0.39% -0.39% 1.00x
labelhash[bob] 0.003456746953235334 0.0034428810944029044 0.40% 0.40% 1.00x
labelhash[emoji\U0001f468\U0001f3fb] 0.2891108469999836 0.2497432138000022 13.62% 15.76% 1.16x
labelhash[xn--fiqs8s] 0.023913004523819836 0.026184741736834008 -9.50% -8.68% 0.91x
namehash[] 0.000010214219611660919 0.0000034225245850463848 66.49% 198.44% 2.98x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.47951426500003436 0.4919013243999416 -2.58% -2.52% 0.97x
namehash[alice.eth] 0.023249832159096553 0.023256089613648164 -0.03% -0.03% 1.00x
namehash[bob.eth] 0.014209649070428728 0.01405812068055449 1.07% 1.08% 1.01x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.5424921689999792 0.5257439930000146 3.09% 3.19% 1.03x
namehash[subdomain.alice.eth] 0.06490179743752833 0.06597399831248651 -1.65% -1.63% 0.98x
nameprep[] 0.000008663983027923104 0.0000031578094077416637 63.55% 174.37% 2.74x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2281389820000186 0.23783411159997742 -4.25% -4.08% 0.96x
nameprep[alice.eth] 0.010498530824732595 0.011396506584292233 -8.55% -7.88% 0.92x
nameprep[bob.eth] 0.006347801713379114 0.006951177776320611 -9.51% -8.68% 0.91x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.26493754560005983 0.24484521840004164 7.58% 8.21% 1.08x
nameprep[subdomain.alice.eth] 0.031338871909108064 0.03187774503123819 -1.72% -1.69% 0.98x
parent[] 9.788507203453832e-7 8.892228248798882e-7 9.16% 10.08% 1.10x
parent[bar.eth] 0.000003689161136835644 0.0000026102337922381304 29.25% 41.33% 1.41x
parent[eth] 0.0000020185532340527397 0.0000015360429924634531 23.90% 31.41% 1.31x
parent[foo.bar.eth] 0.0000043051320846988915 0.000003211780303330501 25.40% 34.04% 1.34x
parent[sub.sub2.foo.bar.eth] 0.000005023307943499741 0.000003945035956019934 21.47% 27.33% 1.27x
reverse_domain[0x0000000000000000000000000000000000000000] 0.000051097671573180884 0.000016893566102788685 66.94% 202.47% 3.02x
reverse_domain[0x1111111111111111111111111111111111111111] 0.000052020587059986384 0.000016745462283346663 67.81% 210.65% 3.11x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.000051673410713461814 0.000016746403303083514 67.59% 208.56% 3.09x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.00001370050640181144 0.000013556577245710733 1.05% 1.06% 1.01x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000013467198750901521 0.000013942734171571164 -3.53% -3.41% 0.97x
address[alice.eth] 0.000013938545058997415 0.000013933804683179824 0.03% 0.03% 1.00x
address[bob.eth] 0.000013767467509476267 0.000014295686732998414 -3.84% -3.69% 0.96x
address[emoji\U0001f468\U0001f3fb.eth] 0.000013904530383249885 0.000014291074318607548 -2.78% -2.70% 0.97x
address[subdomain.alice.eth] 0.000013811593664641205 0.00001376558466065951 0.33% 0.33% 1.00x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.0001479194577266585 0.00014733321672851722 0.40% 0.40% 1.00x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00014519774515743612 0.00014586844138013495 -0.46% -0.46% 1.00x
normalize_name_ensip15[alice.eth] 0.00014550127201529885 0.00014792069848352228 -1.66% -1.64% 0.98x
normalize_name_ensip15[bob.eth] 0.00014534865441074684 0.00014759274988586526 -1.54% -1.52% 0.98x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.00015231500046317432 0.00015106309106980963 0.82% 0.83% 1.01x
normalize_name_ensip15[subdomain.alice.eth] 0.0001458168825070423 0.0001457282866101743 0.06% 0.06% 1.00x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.0024868033769192923 0.0008089585717885065 67.47% 207.41% 3.07x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.0025689802610945863 0.0008014871590574502 68.80% 220.53% 3.21x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.0025582484134356633 0.0008034276985145974 68.59% 218.42% 3.18x
dns_encode_name[] 0.000006699706788966658 0.0000042540895768134624 36.50% 57.49% 1.57x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22737008920003063 0.24199720179994982 -6.43% -6.04% 0.94x
dns_encode_name[alice.eth] 0.010756072193536907 0.011153664499991263 -3.70% -3.56% 0.96x
dns_encode_name[bob.eth] 0.006625724526321919 0.0068142428724757755 -2.85% -2.77% 0.97x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.25934882060000747 0.2716955995999797 -4.76% -4.54% 0.95x
dns_encode_name[subdomain.alice.eth] 0.03119619193751788 0.033188136903244146 -6.39% -6.00% 0.94x
estimate_auction_start_gas[labels0] 0.00007625491176896937 0.00004637302106157375 39.19% 64.44% 1.64x
estimate_auction_start_gas[labels1] 0.00007630673635505374 0.000046274914515085355 39.36% 64.90% 1.65x
estimate_auction_start_gas[labels2] 0.00006608019750430244 0.00004557529340110062 31.03% 44.99% 1.45x
is_empty_name[ ] 0.000056858797458844446 0.00004047511886369917 28.81% 40.48% 1.40x
is_empty_name[.] 0.00005682377717943293 0.00004063448525557464 28.49% 39.84% 1.40x
is_empty_name[0] 0.00005584707787737017 0.00003899021931160873 30.18% 43.23% 1.43x
is_empty_name[1] 0.000055810940276367254 0.00003923200128000749 29.71% 42.26% 1.42x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.0000584579018458676 0.00004155444098681603 28.92% 40.68% 1.41x
is_empty_name[alice.eth] 0.00005851710664168599 0.00004109310544852744 29.78% 42.40% 1.42x
is_empty_name[bob.eth] 0.0000582914248485205 0.00004043604947865302 30.63% 44.16% 1.44x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.00005909127832181424 0.00004142861659711433 29.89% 42.63% 1.43x
is_empty_name[subdomain.alice.eth] 0.00005861778473567513 0.000040145929301080576 31.51% 46.01% 1.46x
is_none_or_zero_address[] 0.00004369365709766738 0.00003973574054321572 9.06% 9.96% 1.10x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.00004978593618889114 0.000044347474271035775 10.92% 12.26% 1.12x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.000052468316652511605 0.000045576113016892515 13.14% 15.12% 1.15x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005173825709604208 0.00004625716943034257 10.59% 11.85% 1.12x
is_valid_ens_name[] 0.0000019332533668356224 0.0000015297940601749216 20.87% 26.37% 1.26x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23341898120002041 0.2458374761999494 -5.32% -5.05% 0.95x
is_valid_ens_name[alice.eth] 0.010577114484206169 0.011303196714299782 -6.86% -6.42% 0.94x
is_valid_ens_name[bar] 0.000001927861893084921 0.0000014743699580566575 23.52% 30.76% 1.31x
is_valid_ens_name[baz] 0.0000019015634095013383 0.0000014707975019286783 22.65% 29.29% 1.29x
is_valid_ens_name[bob.eth] 0.006419302981245778 0.006926681175684735 -7.90% -7.32% 0.93x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.25916095199995653 0.2444795802000499 5.66% 6.01% 1.06x
is_valid_ens_name[foo] 0.0000019199710342464104 0.0000014719990807650072 23.33% 30.43% 1.30x
is_valid_ens_name[subdomain.alice.eth] 0.03124104345455304 0.03337479245161493 -6.83% -6.39% 0.94x
is_valid_name[] 0.0000016119258156591495 9.659763790325848e-7 40.07% 66.87% 1.67x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23321685360001537 0.23918112879996442 -2.56% -2.49% 0.98x
is_valid_name[alice.eth] 0.010807198781236593 0.01087628029671038 -0.64% -0.64% 0.99x
is_valid_name[bob.eth] 0.006505847692296403 0.006780960445150647 -4.23% -4.06% 0.96x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2624710122000124 0.24416994399998657 6.97% 7.50% 1.07x
is_valid_name[subdomain.alice.eth] 0.03191281303126914 0.0343565249333551 -7.66% -7.11% 0.93x
label_to_hash[] 0.0001344099017326988 0.00008216997553132389 38.87% 63.58% 1.64x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.23662952779995977 0.24454793820000303 -3.35% -3.24% 0.97x
label_to_hash[alice] 0.00783459201612723 0.0077820105365893 0.67% 0.68% 1.01x
label_to_hash[bob] 0.003474406442503495 0.0034913840664308306 -0.49% -0.49% 1.00x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.28053399240002364 0.26250819019996924 6.43% 6.87% 1.07x
label_to_hash[xn--fiqs8s] 0.024604490853662134 0.025716014500011396 -4.52% -4.32% 0.96x
normal_name_to_hash[] 0.000001684112851466889 0.000001027829319969113 38.97% 63.85% 1.64x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2281605617999503 0.24868962639998243 -9.00% -8.25% 0.92x
normal_name_to_hash[alice.eth] 0.011841161302329034 0.01152079688374088 2.71% 2.78% 1.03x
normal_name_to_hash[bob.eth] 0.007414728022898346 0.007093351142871792 4.33% 4.53% 1.05x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.29925876140000585 0.25174608760003137 15.88% 18.87% 1.19x
normal_name_to_hash[subdomain.alice.eth] 0.03225722119352594 0.033692714366664704 -4.45% -4.26% 0.96x
normalize_name[] 0.000008339938990418795 0.0000033431455304846003 59.91% 149.46% 2.49x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2303373281999484 0.24036049000001186 -4.35% -4.17% 0.96x
normalize_name[alice.eth] 0.010436525642858772 0.010968314472515535 -5.10% -4.85% 0.95x
normalize_name[bob.eth] 0.00628505721384076 0.006894618675499301 -9.70% -8.84% 0.91x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.26301747859997704 0.25150783520002734 4.38% 4.58% 1.05x
normalize_name[subdomain.alice.eth] 0.030525393545455397 0.0335345905483894 -9.86% -8.97% 0.91x
raw_name_to_hash[] 0.000009560331740378745 0.000003332372579149812 65.14% 186.89% 2.87x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.47754215599998134 0.5120584315999622 -7.23% -6.74% 0.93x
raw_name_to_hash[alice.eth] 0.02251193357779913 0.022669355844451882 -0.70% -0.69% 0.99x
raw_name_to_hash[bob.eth] 0.013876196493347379 0.013813992689193042 0.45% 0.45% 1.00x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5563494138000351 0.48498915740005943 12.83% 14.71% 1.15x
raw_name_to_hash[subdomain.alice.eth] 0.06450069443746997 0.06819467512497113 -5.73% -5.42% 0.95x
sha3_text[0] 0.00011918905868109965 0.00007532969670987379 36.80% 58.22% 1.58x
sha3_text[1] 0.00011891483752439354 0.00007576336191914797 36.29% 56.96% 1.57x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.0001277245829529753 0.00008336639143017555 34.73% 53.21% 1.53x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.0001271592120054824 0.00008278674867387392 34.90% 53.60% 1.54x
sha3_text[alice.eth] 0.00012818079410536245 0.00008379158058877906 34.63% 52.98% 1.53x
sha3_text[alice] 0.00012829413519532048 0.00008361225887815687 34.83% 53.44% 1.53x
sha3_text[bob.eth] 0.00012832593423121112 0.0000836714015913392 34.80% 53.37% 1.53x
sha3_text[bob] 0.00012833130158706026 0.00008357566724634749 34.88% 53.55% 1.54x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00012811020183089338 0.00008379871481371889 34.59% 52.88% 1.53x
sha3_text[emoji\U0001f468\U0001f3fb] 0.000128617014884923 0.0000838513390108114 34.81% 53.39% 1.53x
sha3_text[subdomain.alice.eth] 0.00012744863584967394 0.0000834708130042402 34.51% 52.69% 1.53x
sha3_text[xn--fiqs8s] 0.0001270678867979424 0.00008401709991509115 33.88% 51.24% 1.51x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.0002890155091732677 0.0002547552564762817 11.85% 13.45% 1.13x
fallback_func_abi_exists 0.0002653075325593621 0.00025871127345933255 2.49% 2.55% 1.03x
filter_by_argument_name[a] 0.0006372036718862448 0.00038606026700042847 39.41% 65.05% 1.65x
filter_by_argument_name[a+b] 0.0006450539507776989 0.0003941603812123192 38.89% 63.65% 1.64x
filter_by_argument_name[b] 0.000643929192844117 0.00039023567621643306 39.40% 65.01% 1.65x
filter_by_argument_name[c] 0.0006445348391269087 0.0003886424389386424 39.70% 65.84% 1.66x
filter_by_argument_name[notfound] 0.0006388723904684495 0.00038745204724758355 39.35% 64.89% 1.65x
filter_by_argument_type[address] 0.0005908862224284732 0.0006035342897499692 -2.14% -2.10% 0.98x
filter_by_argument_type[notatype] 0.0005737085589759441 0.0005854168343231757 -2.04% -2.00% 0.98x
filter_by_argument_type[string] 0.0005904781487653267 0.0005965097288245912 -1.02% -1.01% 0.99x
filter_by_argument_type[uint+address] 0.0005940512108224428 0.000605199828571044 -1.88% -1.84% 0.98x
filter_by_argument_type[uint256] 0.0005868151929566655 0.0005914001997302673 -0.78% -0.78% 0.99x
filter_by_types[constructor] 0.000038736863379817546 0.0000392634339771058 -1.36% -1.34% 0.99x
filter_by_types[event] 0.000038691988201117926 0.00003877607602273542 -0.22% -0.22% 1.00x
filter_by_types[fallback] 0.000039114428115281255 0.00003923575430562659 -0.31% -0.31% 1.00x
filter_by_types[func+event] 0.00004229539420467133 0.00004273304870547324 -1.03% -1.02% 0.99x
filter_by_types[function] 0.00003872365799356917 0.00003888413711645568 -0.41% -0.41% 1.00x
filter_by_types[none] 0.00003776646532118495 0.000038535053036696565 -2.04% -1.99% 0.98x
filter_by_types[receive] 0.000040109788765095975 0.000040184072195391545 -0.19% -0.18% 1.00x
find_constructor_abi_element_by_type 0.00003545246765805214 0.00003557261131866679 -0.34% -0.34% 1.00x
get_abi_element_signature[custom] 0.00005291307916037203 0.00004983808272355756 5.81% 6.17% 1.06x
get_abi_element_signature[fallback] 0.00002112000773427487 0.000021198608501004683 -0.37% -0.37% 1.00x
get_abi_element_signature[receive] 0.000028426582511998247 0.000028251239251663204 0.62% 0.62% 1.01x
get_abi_element_signature[transfer] 0.00005777379112759246 0.000054712759317256485 5.30% 5.59% 1.06x
get_name_from_abi_element_identifier[custom] 0.00004500427550589176 0.000040746344189955975 9.46% 10.45% 1.10x
get_name_from_abi_element_identifier[fallback] 0.000012726477809389273 0.000012731343313506234 -0.04% -0.04% 1.00x
get_name_from_abi_element_identifier[func] 0.00004455081384849154 0.0000411992195982572 7.52% 8.14% 1.08x
get_name_from_abi_element_identifier[receive] 0.000020385303577786565 0.000020373549305277726 0.06% 0.06% 1.00x
get_tuple_type_str_parts[not-tuple] 0.00002217835970058268 0.000022885625887439734 -3.19% -3.09% 0.97x
get_tuple_type_str_parts[one-dim] 0.00007400102359649544 0.0000738907175469304 0.15% 0.15% 1.00x
get_tuple_type_str_parts[plain] 0.00004909319997744423 0.000048673640439430194 0.85% 0.86% 1.01x
get_tuple_type_str_parts[two-dim] 0.00009148081024675872 0.00008717562992890094 4.71% 4.94% 1.05x
is_address_type[address] 0.00004375716625751956 0.0000443151438933463 -1.28% -1.26% 0.99x
is_address_type[array] 0.00004695086063576329 0.00004736085073743843 -0.87% -0.87% 0.99x
is_address_type[bool] 0.00004317980982810012 0.00004391930458277474 -1.71% -1.68% 0.98x
is_address_type[bytes] 0.000044633496623596804 0.00004375999803358458 1.96% 2.00% 1.02x
is_address_type[bytes32] 0.00004628814192556777 0.00004667263054058559 -0.83% -0.82% 0.99x
is_address_type[bytes33] 0.00004874091115796833 0.00004777353284775015 1.98% 2.02% 1.02x
is_address_type[empty] 0.00004387859017674189 0.00004380154534181369 0.18% 0.18% 1.00x
is_address_type[enum] 0.000044574480841947805 0.00004504313374798282 -1.05% -1.04% 0.99x
is_address_type[int256] 0.0000433866243466926 0.00004371701733286645 -0.76% -0.76% 0.99x
is_address_type[invalid] 0.00004506479607238094 0.000045039262576364006 0.06% 0.06% 1.00x
is_address_type[string] 0.00004352882906962637 0.00004369750734028309 -0.39% -0.39% 1.00x
is_address_type[tuple-array] 0.00004451838372976568 0.000045190313471195744 -1.51% -1.49% 0.99x
is_address_type[tuple] 0.00004340210922175979 0.000043901463273263087 -1.15% -1.14% 0.99x
is_address_type[uint256] 0.000045576956905109125 0.00004579830930172127 -0.49% -0.48% 1.00x
is_array_type[address] 0.00039754906304679356 0.0004144957669577132 -4.26% -4.09% 0.96x
is_array_type[array] 0.00041682425618008126 0.00042251562128506716 -1.37% -1.35% 0.99x
is_array_type[bool] 0.00037098706429402754 0.0003808474961870902 -2.66% -2.59% 0.97x
is_array_type[bytes] 0.00037988610192496604 0.0003955889744993978 -4.13% -3.97% 0.96x
is_array_type[bytes32] 0.000398422676107911 0.0004118075725883985 -3.36% -3.25% 0.97x
is_array_type[bytes33] 0.00039961951563446073 0.00041363857100182235 -3.51% -3.39% 0.97x
is_array_type[empty] 0.00030535741773407105 0.000319958751679145 -4.78% -4.56% 0.95x
is_array_type[enum] 0.00039055809157907207 0.0004053494905867008 -3.79% -3.65% 0.96x
is_array_type[int256] 0.00038971256128802594 0.0004062915387420638 -4.25% -4.08% 0.96x
is_array_type[invalid] 0.000408290731080661 0.000422151801050917 -3.39% -3.28% 0.97x
is_array_type[string] 0.00038805543057749277 0.0004042996669324735 -4.19% -4.02% 0.96x
is_array_type[tuple-array] 0.00040644433177744205 0.0004210055621834371 -3.58% -3.46% 0.97x
is_array_type[tuple] 0.00037933386506633354 0.00039446409394469585 -3.99% -3.84% 0.96x
is_array_type[uint256] 0.00039935895167524235 0.0004116258334711562 -3.07% -2.98% 0.97x
is_bool_type[address] 0.000044254974705847196 0.000043379769135038684 1.98% 2.02% 1.02x
is_bool_type[array] 0.00004515037118998419 0.000045302289294842084 -0.34% -0.34% 1.00x
is_bool_type[bool] 0.000043859612825814266 0.000044004516642123154 -0.33% -0.33% 1.00x
is_bool_type[bytes] 0.00004408372044101254 0.00004399619131656149 0.20% 0.20% 1.00x
is_bool_type[bytes32] 0.00004366716522691488 0.00004364426021456519 0.05% 0.05% 1.00x
is_bool_type[bytes33] 0.00004549812609917507 0.000045029449691475394 1.03% 1.04% 1.01x
is_bool_type[empty] 0.000044033807599477896 0.00004365458003070922 0.86% 0.87% 1.01x
is_bool_type[enum] 0.00004494728651003566 0.00004668550822918444 -3.87% -3.72% 0.96x
is_bool_type[int256] 0.00004380980402981382 0.000044209185349874564 -0.91% -0.90% 0.99x
is_bool_type[invalid] 0.000045441868788852485 0.000044904112318184615 1.18% 1.20% 1.01x
is_bool_type[string] 0.00004403857367277861 0.00004365473848141159 0.87% 0.88% 1.01x
is_bool_type[tuple-array] 0.00004538209521565131 0.000045513665499222823 -0.29% -0.29% 1.00x
is_bool_type[tuple] 0.00004428894417496546 0.000044019431924783754 0.61% 0.61% 1.01x
is_bool_type[uint256] 0.00004347354299789851 0.000044303985528819556 -1.91% -1.87% 0.98x
is_bytes_type[address] 0.0003186325723940349 0.0003277301886782202 -2.86% -2.78% 0.97x
is_bytes_type[array] 0.0003183490203079328 0.00030819767243898277 3.19% 3.29% 1.03x
is_bytes_type[bool] 0.00028581779158324996 0.0002863320635313673 -0.18% -0.18% 1.00x
is_bytes_type[bytes] 0.0002834766274446444 0.00028922385115920043 -2.03% -1.99% 0.98x
is_bytes_type[bytes32] 0.0003034073739796171 0.00030376857370717345 -0.12% -0.12% 1.00x
is_bytes_type[bytes33] 0.0003148307533639 0.00032458850246091945 -3.10% -3.01% 0.97x
is_bytes_type[empty] 0.0002830455649978824 0.0002955153886643775 -4.41% -4.22% 0.96x
is_bytes_type[enum] 0.0003049704561674411 0.00030315551822040625 0.60% 0.60% 1.01x
is_bytes_type[int256] 0.00028828761088446603 0.00031504109494589366 -9.28% -8.49% 0.92x
is_bytes_type[invalid] 0.0002893056889939946 0.0002900606824274717 -0.26% -0.26% 1.00x
is_bytes_type[string] 0.0002939903060378557 0.00030031810194292344 -2.15% -2.11% 0.98x
is_bytes_type[tuple-array] 0.00028955432161510247 0.0002886086002278963 0.33% 0.33% 1.00x
is_bytes_type[tuple] 0.0002883399709675117 0.0003000558182628241 -4.06% -3.90% 0.96x
is_bytes_type[uint256] 0.0003116386591914859 0.000320576522962421 -2.87% -2.79% 0.97x
is_int_type[address] 0.00020982397168531388 0.00020544622370121128 2.09% 2.13% 1.02x
is_int_type[array] 0.0002092618943813673 0.0002019335798608659 3.50% 3.63% 1.04x
is_int_type[bool] 0.000206206274631384 0.00020345559795429012 1.33% 1.35% 1.01x
is_int_type[bytes] 0.00021713528602238045 0.00021004417302865753 3.27% 3.38% 1.03x
is_int_type[bytes32] 0.0002096321582067244 0.00020107308046203514 4.08% 4.26% 1.04x
is_int_type[bytes33] 0.00020082205277642965 0.00020090412873101555 -0.04% -0.04% 1.00x
is_int_type[empty] 0.00020456523818466972 0.00020028722058074372 2.09% 2.14% 1.02x
is_int_type[enum] 0.00023378282749841542 0.00023445334132417972 -0.29% -0.29% 1.00x
is_int_type[int256] 0.00024775497910753055 0.00023014053012250063 7.11% 7.65% 1.08x
is_int_type[invalid] 0.00020153369814620263 0.0002007328889335084 0.40% 0.40% 1.00x
is_int_type[string] 0.00023527536201837 0.00022977458372598088 2.34% 2.39% 1.02x
is_int_type[tuple-array] 0.00020501721065592285 0.0002010445923635397 1.94% 1.98% 1.02x
is_int_type[tuple] 0.00022772553002190884 0.00021162147554002364 7.07% 7.61% 1.08x
is_int_type[uint256] 0.00021032218116235805 0.00020231314796192431 3.81% 3.96% 1.04x
is_probably_enum[address] 0.00006621050404208378 0.00007127775406534924 -7.65% -7.11% 0.93x
is_probably_enum[empty] 0.00006203528949893261 0.00006564311797950947 -5.82% -5.50% 0.95x
is_probably_enum[enum] 0.00006517974429278739 0.00006793567740842129 -4.23% -4.06% 0.96x
is_probably_enum[lib-dot] 0.00006698753373891633 0.00006954856695308804 -3.82% -3.68% 0.96x
is_probably_enum[lib-enum] 0.00007428354248637625 0.00007633749914271258 -2.77% -2.69% 0.97x
is_probably_enum[uint256] 0.00006610787558178359 0.00006883172310232427 -4.12% -3.96% 0.96x
is_recognized_type[address] 0.00007946182149327498 0.00008492551813294005 -6.88% -6.43% 0.94x
is_recognized_type[array] 0.00008464073282906821 0.0000893973992355388 -5.62% -5.32% 0.95x
is_recognized_type[bool] 0.00008433610376946404 0.00008445106768594265 -0.14% -0.14% 1.00x
is_recognized_type[bytes] 0.00015546680057628923 0.00016137470209881742 -3.80% -3.66% 0.96x
is_recognized_type[bytes32] 0.00015021298282370734 0.00015628465837222644 -4.04% -3.89% 0.96x
is_recognized_type[bytes33] 0.00013858462771221508 0.00014541119923400152 -4.93% -4.69% 0.95x
is_recognized_type[empty] 0.0000614536828311794 0.00006560373586951708 -6.75% -6.33% 0.94x
is_recognized_type[enum] 0.00008410882974396868 0.00008988323073907198 -6.87% -6.42% 0.94x
is_recognized_type[int256] 0.00012720612659271514 0.00013239290016343427 -4.08% -3.92% 0.96x
is_recognized_type[invalid] 0.0000831247171644845 0.00009004370582648446 -8.32% -7.68% 0.92x
is_recognized_type[string] 0.00010296018624898397 0.00010920327775166596 -6.06% -5.72% 0.94x
is_recognized_type[tuple-array] 0.00008397900576537017 0.00008947826657954427 -6.55% -6.15% 0.94x
is_recognized_type[tuple] 0.00008377447001794332 0.00008969480728528076 -7.07% -6.60% 0.93x
is_recognized_type[uint256] 0.0001264832918810166 0.00013121780270822914 -3.74% -3.61% 0.96x
is_string_type[address] 0.000044035204503255436 0.000043382103813026954 1.48% 1.51% 1.02x
is_string_type[array] 0.0000457969026067645 0.000044448010322187304 2.95% 3.03% 1.03x
is_string_type[bool] 0.00004463998790074513 0.000043222260602203446 3.18% 3.28% 1.03x
is_string_type[bytes] 0.00004366812632077943 0.000044114391308716724 -1.02% -1.01% 0.99x
is_string_type[bytes32] 0.00004381298984070724 0.000043116777637738943 1.59% 1.61% 1.02x
is_string_type[bytes33] 0.000044688296529471906 0.00004448191777198327 0.46% 0.46% 1.00x
is_string_type[empty] 0.00004468094120028503 0.000043185451492407684 3.35% 3.46% 1.03x
is_string_type[enum] 0.000047852416494116006 0.000046455922742091715 2.92% 3.01% 1.03x
is_string_type[int256] 0.00004549955497206753 0.000044741873252811985 1.67% 1.69% 1.02x
is_string_type[invalid] 0.0000441796270488128 0.000044533128933918686 -0.80% -0.79% 0.99x
is_string_type[string] 0.000044195578449393954 0.00004323260192491385 2.18% 2.23% 1.02x
is_string_type[tuple-array] 0.000044411678224314396 0.00004473154957430289 -0.72% -0.72% 0.99x
is_string_type[tuple] 0.000044366064793022634 0.000043470342311732015 2.02% 2.06% 1.02x
is_string_type[uint256] 0.000043858580539774144 0.000043247692480270054 1.39% 1.41% 1.01x
is_uint_type[address] 0.0002330986294715086 0.0002422266026427779 -3.92% -3.77% 0.96x
is_uint_type[array] 0.00023343768172191538 0.00023689266051941243 -1.48% -1.46% 0.99x
is_uint_type[bool] 0.00020067186414308917 0.000202240673129551 -0.78% -0.78% 0.99x
is_uint_type[bytes] 0.0002057601379946338 0.0002022760542354784 1.69% 1.72% 1.02x
is_uint_type[bytes32] 0.0002428398530736774 0.00023177402568058165 4.56% 4.77% 1.05x
is_uint_type[bytes33] 0.0002297525380544696 0.0002317471253777238 -0.87% -0.86% 0.99x
is_uint_type[empty] 0.00020444935000041737 0.0002051399884305644 -0.34% -0.34% 1.00x
is_uint_type[enum] 0.00021817396393956678 0.00021783860778869013 0.15% 0.15% 1.00x
is_uint_type[int256] 0.0002206151628178333 0.00021718691949723995 1.55% 1.58% 1.02x
is_uint_type[invalid] 0.00020523350516516662 0.00020177633642299783 1.68% 1.71% 1.02x
is_uint_type[string] 0.00021744387809003316 0.0002247860803671777 -3.38% -3.27% 0.97x
is_uint_type[tuple-array] 0.00020449112227763992 0.00020583754094052596 -0.66% -0.65% 0.99x
is_uint_type[tuple] 0.00020213535839968302 0.0002076450258262213 -2.73% -2.65% 0.97x
is_uint_type[uint256] 0.0002376737695011181 0.00022834502326761938 3.93% 4.09% 1.04x
length_of_array_type[dynamic] 0.00016368139492214153 0.00016747256701836347 -2.32% -2.26% 0.98x
length_of_array_type[fixed] 0.00017978752128316173 0.0001769036520302934 1.60% 1.63% 1.02x
length_of_array_type[nested] 0.00018749695608714104 0.00019054523035438495 -1.63% -1.60% 0.98x
map_abi_data 0.006496197251859754 0.005143727386365785 20.82% 26.29% 1.26x
normalize_event_input_types 0.0004187525662961318 0.00044186194541547615 -5.52% -5.23% 0.95x
receive_func_abi_exists 0.0003335994088891764 0.00033342937080335877 0.05% 0.05% 1.00x
strip_abi_types 0.0016288336739556243 0.0015813267532438387 2.92% 3.00% 1.03x
sub_type_of_array_type[nested] 0.00018020441772583824 0.00018659479577695624 -3.55% -3.42% 0.97x
sub_type_of_array_type[simple] 0.0001752998318009181 0.00017804091091901442 -1.56% -1.54% 0.98x

web3/_utils/blocks - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_hex_encoded_block_hash[int] 0.00002076056968880119 0.000022526412024637977 -8.51% -7.84% 0.92x
is_hex_encoded_block_hash[invalid-g] 0.00008729770451328224 0.00006143069381018125 29.63% 42.11% 1.42x
is_hex_encoded_block_hash[none] 0.00002098324829023489 0.000021736377569316724 -3.59% -3.46% 0.97x
is_hex_encoded_block_hash[short] 0.000045345262675029094 0.00002717224804808278 40.08% 66.88% 1.67x
is_hex_encoded_block_hash[too-long] 0.00004488644310145065 0.00002733465515849282 39.10% 64.21% 1.64x
is_hex_encoded_block_hash[too-short] 0.00004497214287089695 0.000027057871108557733 39.83% 66.21% 1.66x
is_hex_encoded_block_hash[valid-a] 0.00009748282910052906 0.00007257718061097873 25.55% 34.32% 1.34x
is_hex_encoded_block_hash[valid-f] 0.00009626885014359535 0.00007320599291113314 23.96% 31.50% 1.32x
is_hex_encoded_block_number[int] 0.00002116672639516793 0.00002181714965591837 -3.07% -2.98% 0.97x
is_hex_encoded_block_number[invalid-g] 0.00016640409306919226 0.00022611870000202673 -35.89% -26.41% 0.74x
is_hex_encoded_block_number[max-64-a] 0.00010712260657995217 0.00008170970570134675 23.72% 31.10% 1.31x
is_hex_encoded_block_number[max-64-f] 0.00010598200205913985 0.00008245862221494588 22.20% 28.53% 1.29x
is_hex_encoded_block_number[none] 0.000021077329991883467 0.00002206816202991541 -4.70% -4.49% 0.96x
is_hex_encoded_block_number[small] 0.00009546089482266361 0.00004650628663453188 51.28% 105.26% 2.05x
is_hex_encoded_block_number[too-long] 0.00010879749686039953 0.00006228964752163985 42.75% 74.66% 1.75x
is_predefined_block_number[bytes-latest] 0.00003329796258334077 0.00002897294680814396 12.99% 14.93% 1.15x
is_predefined_block_number[bytes-pending] 0.00003284325703767264 0.000028237595765353508 14.02% 16.31% 1.16x
is_predefined_block_number[bytes-random] 0.000031523252399555056 0.00002699779863498009 14.36% 16.76% 1.17x
is_predefined_block_number[int] 0.00003401748272610197 0.00002368244888637439 30.38% 43.64% 1.44x
is_predefined_block_number[none] 0.0001240999685885166 0.0002156112499386919 -73.74% -42.44% 0.58x
is_predefined_block_number[object] 0.0001563830388031636 0.0002514313620882531 -60.78% -37.80% 0.62x
is_predefined_block_number[str-earliest] 0.000014526597748225721 0.000009490767564896888 34.67% 53.06% 1.53x
is_predefined_block_number[str-finalized] 0.000014601482464191475 0.000009597893269018732 34.27% 52.13% 1.52x
is_predefined_block_number[str-foo] 0.00001465664353904863 0.000009567896755073066 34.72% 53.19% 1.53x
is_predefined_block_number[str-latest] 0.000014677991472143452 0.000009695914505391698 33.94% 51.38% 1.51x
is_predefined_block_number[str-pending] 0.000014425574352382178 0.000009493588018208351 34.19% 51.95% 1.52x
is_predefined_block_number[str-safe] 0.000014422947326575573 0.000009524648558627715 33.96% 51.43% 1.51x
select_method_for_block_identifier[hash-bytes] 0.00005105703438616622 0.00004179546242951351 18.14% 22.16% 1.22x
select_method_for_block_identifier[hash-hexstr] 0.0001277953430422286 0.00009182444345790902 28.15% 39.17% 1.39x
select_method_for_block_identifier[invalid-none] 0.0009149215956404618 0.0010940237355365927 -19.58% -16.37% 0.84x
select_method_for_block_identifier[invalid-object] 0.0009559806874412422 0.0011436694188070163 -19.63% -16.41% 0.84x
select_method_for_block_identifier[number-hexstr] 0.000174486584719171 0.00008731872009820457 49.96% 99.83% 2.00x
select_method_for_block_identifier[number-int] 0.00011167597816157186 0.00005886172945873716 47.29% 89.73% 1.90x
select_method_for_block_identifier[predefined-bytes] 0.000050030248983135094 0.00004441006316708198 11.23% 12.66% 1.13x
select_method_for_block_identifier[predefined-str] 0.000027865028761708908 0.000019928446194717448 28.48% 39.83% 1.40x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.0004596099868107196 0.0005514731641507414 -19.99% -16.66% 0.83x
PropertyCheckingFactory[big-valid] 0.0004608300703239365 0.0005591652220968542 -21.34% -17.59% 0.82x
PropertyCheckingFactory[inheritance] 0.0009937388112053985 0.000978962779677881 1.49% 1.51% 1.02x
PropertyCheckingFactory[invalid] 0.0004631333886662342 0.0005628343479600413 -21.53% -17.71% 0.82x
PropertyCheckingFactory[multi-normalizer] 0.00047100358951947567 0.000555744700560993 -17.99% -15.25% 0.85x
PropertyCheckingFactory[multi-prop] 0.0004603681284091243 0.000556077597029326 -20.79% -17.21% 0.83x
PropertyCheckingFactory[normalized] 0.0004638567866796763 0.000562340354087993 -21.23% -17.51% 0.82x
PropertyCheckingFactory[valid] 0.001219191138502037 0.0010104021238214011 17.13% 20.66% 1.21x
verify_attr[empty] 0.0001022968517903082 0.00016309112855943532 -59.43% -37.28% 0.63x
verify_attr[found-end] 0.000011349157164859397 0.000010050752900493736 11.44% 12.92% 1.13x
verify_attr[found-start] 0.000009263602813555267 0.000007819671854548125 15.59% 18.47% 1.18x
verify_attr[large-found] 0.00013526473201970712 0.0001329009323933106 1.75% 1.78% 1.02x
verify_attr[large-notfound] 0.00020239632765796207 0.00026654977245140686 -31.70% -24.07% 0.76x
verify_attr[notfound] 0.00010857799130100255 0.00016961196099156856 -56.21% -35.98% 0.64x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006465812989749321 0.0006808758503434453 -5.30% -5.04% 0.95x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.0000789077052275486 0.00002170854196516983 72.49% 263.49% 3.63x
percentile[100-90th] 0.00011100740093898914 0.00005125983290453347 53.82% 116.56% 2.17x
percentile[100k-99th] 0.03755018400000962 0.03750340014818431 0.12% 0.12% 1.00x
percentile[100k-median] 0.04553742295452552 0.03733454834615749 18.01% 21.97% 1.22x
percentile[10k-10th] 0.003962822823072761 0.0037147353373004283 6.26% 6.68% 1.07x
percentile[10k-99th] 0.003766358543725455 0.003699837742643427 1.77% 1.80% 1.02x
percentile[10k-median] 0.0037873434126463523 0.0036608522867625734 3.34% 3.46% 1.03x
percentile[1k-99th] 0.0004721753111753884 0.00039984436556266277 15.32% 18.09% 1.18x
percentile[1M-median] 0.6969255076000536 0.7125900073999674 -2.25% -2.20% 0.98x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.000012713097353730183 0.000006749148951823949 46.91% 88.37% 1.88x
to_bytes_if_hex[empty-str] 0.00031691984388979515 0.00003600023867151611 88.64% 780.33% 8.80x
to_bytes_if_hex[hexstr] 0.0003435792127755572 0.00004597692284311962 86.62% 647.29% 7.47x
to_bytes_if_hex[large-hex] 0.0003516368199158183 0.00005155868481086327 85.34% 582.01% 6.82x
to_bytes_if_hex[non-prefixed-hex] 0.00032456323209063934 0.000042472750955816156 86.91% 664.17% 7.64x
to_bytes_if_hex[nothex] 0.00042410924575259524 0.00027524510901778056 35.10% 54.08% 1.54x
to_bytes_if_hex[unicode] 0.0004329893703154863 0.0002832458312802105 34.58% 52.87% 1.53x
to_bytes_if_hex[zero] 0.00034294821865928283 0.00004589676196937084 86.62% 647.22% 7.47x
to_hex_if_bytes[bytes] 0.00022751444564249958 0.00005149807809650266 77.36% 341.79% 4.42x
to_hex_if_bytes[empty-bytes] 0.0002138323978684424 0.00003968824331950174 81.44% 438.78% 5.39x
to_hex_if_bytes[empty-str] 0.00010377382470296244 0.0001924121884331548 -85.41% -46.07% 0.54x
to_hex_if_bytes[hexstr] 0.0002860740434240626 0.00002380205207079238 91.68% 1101.89% 12.02x
to_hex_if_bytes[large-bytes] 0.00023201570088291385 0.00005470851887072704 76.42% 324.09% 4.24x
to_hex_if_bytes[non-prefixed-hex] 0.00010668647387261156 0.00019500516098891734 -82.78% -45.29% 0.55x
to_hex_if_bytes[not-hex] 0.00010541307332956824 0.0001953251319904338 -85.29% -46.03% 0.54x
to_hex_if_bytes[unicode] 0.00011029866099352194 0.00019766343057220825 -79.21% -44.20% 0.56x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.00031300039316282247 0.00010218309172467681 67.35% 206.31% 3.06x
all_in_dict[empty-dict] 0.00026116892712566334 0.0000795373814375017 69.55% 228.36% 3.28x
all_in_dict[empty-list] 0.00026417334559942547 0.00008722841413168765 66.98% 202.85% 3.03x
all_in_dict[mixed-types] 0.00031037541601128374 0.00010522411471088673 66.10% 194.97% 2.95x
all_in_dict[no-overlap] 0.0002816031201088199 0.00009146371907099039 67.52% 207.89% 3.08x
all_in_dict[none-in] 0.00028093158674446936 0.00009184219664317317 67.31% 205.89% 3.06x
all_in_dict[one-in] 0.00029005364837363134 0.00009417386840927542 67.53% 208.00% 3.08x
all_in_dict[partial-overlap] 0.00031508511066058974 0.0001026579887213955 67.42% 206.93% 3.07x
all_in_dict[value-none] 0.0002844321438079125 0.00009394049461051644 66.97% 202.78% 3.03x
any_in_dict[all-in] 0.0002810770545388219 0.00008870307586148015 68.44% 216.87% 3.17x
any_in_dict[empty-dict] 0.000306019392374202 0.00009026684598271897 70.50% 239.02% 3.39x
any_in_dict[empty-list] 0.00026216081234303095 0.00008685636064628012 66.87% 201.83% 3.02x
any_in_dict[mixed-types] 0.0002809975364035331 0.0000903000347744049 67.86% 211.18% 3.11x
any_in_dict[no-overlap] 0.00032749263639505794 0.0001069002840712072 67.36% 206.35% 3.06x
any_in_dict[none-in] 0.0002880752566256881 0.00009378218006117496 67.45% 207.17% 3.07x
any_in_dict[one-in] 0.00027932636205485364 0.00008746914523529529 68.69% 219.34% 3.19x
any_in_dict[partial-overlap] 0.00027919290686105434 0.00008814412488485613 68.43% 216.75% 3.17x
any_in_dict[value-none] 0.0002803197703750867 0.00008776263060017198 68.69% 219.41% 3.19x
either_set_is_a_subset[both-empty] 0.0001703294822575993 0.00015285819808896788 10.26% 11.43% 1.11x
either_set_is_a_subset[empty-set1] 0.00016901563286546422 0.0001542017810221465 8.76% 9.61% 1.10x
either_set_is_a_subset[empty-set2] 0.0002535021266115754 0.00025472515692571155 -0.48% -0.48% 1.00x
either_set_is_a_subset[identical] 0.00018307353938547488 0.00016551653556777531 9.59% 10.61% 1.11x
either_set_is_a_subset[mixed-types] 0.0001924236559826302 0.00017153745165444928 10.85% 12.18% 1.12x
either_set_is_a_subset[not-subset] 0.00027236474896798527 0.00025243095248734295 7.32% 7.90% 1.08x
either_set_is_a_subset[partial-overlap] 0.0002940732515659488 0.00027667076605824485 5.92% 6.29% 1.06x
either_set_is_a_subset[subset] 0.00019261736779819567 0.00016904446408787466 12.24% 13.94% 1.14x
either_set_is_a_subset[superset] 0.0002891368190747889 0.0002848169412122589 1.49% 1.52% 1.02x
none_in_dict[all-in] 0.00029314514346959105 0.00009003569547706552 69.29% 225.59% 3.26x
none_in_dict[empty-dict] 0.0003201682133848482 0.00009348111563049516 70.80% 242.50% 3.42x
none_in_dict[empty-list] 0.00027935760277882126 0.00008892659336555567 68.17% 214.14% 3.14x
none_in_dict[mixed-types] 0.00029213488337328657 0.00009135827757748838 68.73% 219.77% 3.20x
none_in_dict[no-overlap] 0.00034196335799099474 0.00011018318747349269 67.78% 210.36% 3.10x
none_in_dict[none-in] 0.00030425289795759573 0.0000965360580918929 68.27% 215.17% 3.15x
none_in_dict[one-in] 0.00029114466001713363 0.00008997624956500349 69.10% 223.58% 3.24x
none_in_dict[partial-overlap] 0.00029293555221462843 0.00008906423041327283 69.60% 228.90% 3.29x
none_in_dict[value-none] 0.00029528102907603134 0.00008786336826335516 70.24% 236.07% 3.36x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0014690250958649177 0.0014824109323544657 -0.91% -0.90% 0.99x
attributedict_hash[flat] 0.00112109299027037 0.001109755379822338 1.01% 1.02% 1.01x
attributedict_hash[nested] 0.0017727448561725221 0.0017399206469559812 1.85% 1.89% 1.02x
attributedict_init[empty] 0.00008832036567989906 0.00008547398766678274 3.22% 3.33% 1.03x
attributedict_init[large] 0.00012555869236241982 0.00012565515859707112 -0.08% -0.08% 1.00x
attributedict_init[small] 0.00009241962959264554 0.00009183463337903425 0.63% 0.64% 1.01x
mutableattributedict_delitem 0.00039762400246123604 0.00039634468726747294 0.32% 0.32% 1.00x
mutableattributedict_setitem 0.0003384012209307123 0.0003408587345927315 -0.73% -0.72% 0.99x
namedelementonion_add 0.029327925561378913 0.026543868406044117 9.49% 10.49% 1.10x
namedelementonion_as_tuple_of_middleware 0.0001486827112715995 0.00014646781873806823 1.49% 1.51% 1.02x
namedelementonion_contains 0.00002998540686867785 0.000030351761641838812 -1.22% -1.21% 0.99x
namedelementonion_getitem 0.00002632998614964148 0.00002692402617547144 -2.26% -2.21% 0.98x
namedelementonion_init[callables2] 0.00012723075912001588 0.000126949294039022 0.22% 0.22% 1.00x
namedelementonion_init[callables3] 0.00015963186320402608 0.0001635389645206637 -2.45% -2.39% 0.98x
namedelementonion_init[empty] 0.000043130919866855825 0.0000438663052435956 -1.71% -1.68% 0.98x
namedelementonion_inject 0.03500764448779414 0.03264445848863447 6.75% 7.24% 1.07x
namedelementonion_iter 0.00015303554745394048 0.00015406761185462364 -0.67% -0.67% 0.99x
namedelementonion_remove 0.0006485000952662828 0.0006728676106884063 -3.76% -3.62% 0.96x
namedelementonion_replace 0.002472077655003204 0.0024489699545619252 0.93% 0.94% 1.01x
readableattributedict_getitem[large] 0.000015413703080840444 0.00001526288254440071 0.98% 0.99% 1.01x
readableattributedict_getitem[small] 0.000014866013465155556 0.000014786771722999009 0.53% 0.54% 1.01x
readableattributedict_init[empty] 0.00005204107631981758 0.00005179309900285234 0.48% 0.48% 1.00x
readableattributedict_init[large] 0.00008573339210170461 0.00008623012988209753 -0.58% -0.58% 0.99x
readableattributedict_init[small] 0.000056367146279324046 0.00005670707715811897 -0.60% -0.60% 0.99x
readableattributedict_recursive[list-in-dict] 0.0008748360923114616 0.0008895014634211153 -1.68% -1.65% 0.98x
readableattributedict_recursive[nested-dict] 0.0009089744703597144 0.0009141065024981691 -0.56% -0.56% 0.99x
readableattributedict_recursive[set] 0.0004609066881752463 0.0004588665967529196 0.44% 0.44% 1.00x
tupleize_lists_nested[list-in-dict] 0.0008775437530885815 0.0008595349243646409 2.05% 2.10% 1.02x
tupleize_lists_nested[tuple-in-dict] 0.0009571779925657615 0.0009348555561645043 2.33% 2.39% 1.02x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.0003419525694587378 0.00025582924475111023 25.19% 33.66% 1.34x
simplecache_cache[100] 0.0027110945760803725 0.0019357812619991818 28.60% 40.05% 1.40x
simplecache_cache[1000] 0.027501958351336186 0.018559008245317254 32.52% 48.19% 1.48x
simplecache_eviction[10] 0.0005986498134386316 0.0005997687840297046 -0.19% -0.19% 1.00x
simplecache_eviction[100] 0.005326252340546489 0.005315906000003045 0.19% 0.19% 1.00x
simplecache_pop[10] 0.00046435056564874945 0.0003712693435606053 20.05% 25.07% 1.25x
simplecache_pop[100] 0.003812662046503513 0.0029368437597566423 22.97% 29.82% 1.30x
simplecache_retrieval[10] 0.00009558284610778906 0.00005550357509678078 41.93% 72.21% 1.72x
simplecache_retrieval[100] 0.000801711450677172 0.0004565676723845698 43.05% 75.60% 1.76x

@github-actions
Copy link

Pytest Benchmark Diff

ens/base_ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_valid_name[] 0.0000019010286786749573 9.784915716073646e-7 48.53% 94.28% 1.94x
is_valid_name[a..eth] 0.00002486297435121682 0.000029174900119024884 -17.34% -14.78% 0.85x
is_valid_name[a.eth..] 0.000025562676196550874 0.000029254700181286914 -14.44% -12.62% 0.87x
is_valid_name[a.eth.] 0.000025654030658371192 0.000029139345491052305 -13.59% -11.96% 0.88x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23789995660004024 0.238571999999931 -0.28% -0.28% 1.00x
is_valid_name[alice.eth] 0.010566463979381935 0.010965531903219661 -3.78% -3.64% 0.96x
is_valid_name[bob.eth] 0.006671558366008041 0.006652848753241734 0.28% 0.28% 1.00x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.28946002800003046 0.24935351719996107 13.86% 16.08% 1.16x
is_valid_name[subdomain.alice.eth] 0.03199126637502303 0.031929196812484406 0.19% 0.19% 1.00x
labelhash[] 0.00013213333997991335 0.00008145090773251139 38.36% 62.22% 1.62x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.22684870660009437 0.23356890940003722 -2.96% -2.88% 0.97x
labelhash[alice] 0.007665364178292787 0.007786923103167066 -1.59% -1.56% 0.98x
labelhash[bob] 0.0034419638253440745 0.0034372846000043614 0.14% 0.14% 1.00x
labelhash[emoji\U0001f468\U0001f3fb] 0.2622575417999542 0.23768150199998672 9.37% 10.34% 1.10x
labelhash[xn--fiqs8s] 0.025082710166711444 0.02513123104999977 -0.19% -0.19% 1.00x
namehash[] 0.000009755697347301595 0.0000031038814192217033 68.18% 214.31% 3.14x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4589112277999902 0.46952416840003935 -2.31% -2.26% 0.98x
namehash[alice.eth] 0.022044283085099953 0.02224372099998539 -0.90% -0.90% 0.99x
namehash[bob.eth] 0.013594827666681037 0.013372826720005832 1.63% 1.66% 1.02x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.5521511985999951 0.49929543799994464 9.57% 10.59% 1.11x
namehash[subdomain.alice.eth] 0.06253490799999514 0.06405985449997331 -2.44% -2.38% 0.98x
nameprep[] 0.000008665790688140814 0.0000029629416188791406 65.81% 192.47% 2.92x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2256245224000395 0.23444315860001552 -3.91% -3.76% 0.96x
nameprep[alice.eth] 0.010424283091825897 0.010916101827964061 -4.72% -4.51% 0.95x
nameprep[bob.eth] 0.0062871062331315486 0.006581061103223316 -4.68% -4.47% 0.96x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.27392501659992374 0.23648094799996217 13.67% 15.83% 1.16x
nameprep[subdomain.alice.eth] 0.03183725378786414 0.03205295562498378 -0.68% -0.67% 0.99x
parent[] 9.450455081313268e-7 8.469597912338058e-7 10.38% 11.58% 1.12x
parent[bar.eth] 0.0000036179589191366993 0.000002470793948147743 31.71% 46.43% 1.46x
parent[eth] 0.0000020245800329692806 0.0000014266507493544733 29.53% 41.91% 1.42x
parent[foo.bar.eth] 0.000004348436650478985 0.0000031829013276095824 26.80% 36.62% 1.37x
parent[sub.sub2.foo.bar.eth] 0.000005101738030368223 0.000003927603715335506 23.01% 29.89% 1.30x
reverse_domain[0x0000000000000000000000000000000000000000] 0.00005010714808027481 0.000017023792660708988 66.03% 194.34% 2.94x
reverse_domain[0x1111111111111111111111111111111111111111] 0.000050492745309712185 0.000016883413552102296 66.56% 199.07% 2.99x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005049899066673347 0.000017158573202033273 66.02% 194.31% 2.94x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.000013854195451672252 0.000013763921851854423 0.65% 0.66% 1.01x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000013891276769316974 0.000014009383522347726 -0.85% -0.84% 0.99x
address[alice.eth] 0.000014131829585726919 0.000013934129553936388 1.40% 1.42% 1.01x
address[bob.eth] 0.00001347766239678116 0.000013712077017055992 -1.74% -1.71% 0.98x
address[emoji\U0001f468\U0001f3fb.eth] 0.000013740727556068381 0.000014012683547493995 -1.98% -1.94% 0.98x
address[subdomain.alice.eth] 0.000013777683589107781 0.000014005366252294869 -1.65% -1.63% 0.98x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.00014261797858779394 0.00014104829647922844 1.10% 1.11% 1.01x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00014144808852560936 0.00014015197192413135 0.92% 0.92% 1.01x
normalize_name_ensip15[alice.eth] 0.0001411665806319935 0.00014067287296789954 0.35% 0.35% 1.00x
normalize_name_ensip15[bob.eth] 0.00014038010525659083 0.00014149464996395702 -0.79% -0.79% 0.99x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.00013991878662938194 0.00014056328897745846 -0.46% -0.46% 1.00x
normalize_name_ensip15[subdomain.alice.eth] 0.0001406306292925503 0.00014134152067477043 -0.51% -0.50% 0.99x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.0024748823749996983 0.0008264427453524034 66.61% 199.46% 2.99x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.002496652100249402 0.0008222762804041856 67.06% 203.63% 3.04x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.0024971266926978692 0.0008316777366654075 66.69% 200.25% 3.00x
dns_encode_name[] 0.00000663161155423621 0.000004212554502101477 36.48% 57.42% 1.57x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23523583480000526 0.24078021940003963 -2.36% -2.30% 0.98x
dns_encode_name[alice.eth] 0.011075602612903314 0.011006475344427398 0.62% 0.63% 1.01x
dns_encode_name[bob.eth] 0.006632788708609059 0.006704845193338163 -1.09% -1.07% 0.99x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.26879315359997236 0.2565273935999812 4.56% 4.78% 1.05x
dns_encode_name[subdomain.alice.eth] 0.03170969293940592 0.03252565490321367 -2.57% -2.51% 0.97x
estimate_auction_start_gas[labels0] 0.00007560385470400772 0.000049435893365273485 34.61% 52.93% 1.53x
estimate_auction_start_gas[labels1] 0.00007530761127395019 0.0000489165796899783 35.04% 53.95% 1.54x
estimate_auction_start_gas[labels2] 0.00006927991205022447 0.00004826825791539487 30.33% 43.53% 1.44x
is_empty_name[ ] 0.00006351264447365421 0.00004230627894209105 33.39% 50.13% 1.50x
is_empty_name[.] 0.00006296121531636924 0.0000422761577654881 32.85% 48.93% 1.49x
is_empty_name[0] 0.00006400163490270929 0.00004122443189834805 35.59% 55.25% 1.55x
is_empty_name[1] 0.00006411599683716874 0.00004135688907384073 35.50% 55.03% 1.55x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00006354969997612162 0.00004220565959951615 33.59% 50.57% 1.51x
is_empty_name[alice.eth] 0.0000629808526587497 0.000040550857736441867 35.61% 55.31% 1.55x
is_empty_name[bob.eth] 0.00006223392681258451 0.000041809594648473385 32.82% 48.85% 1.49x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.00006505864062120891 0.00004239954274892611 34.83% 53.44% 1.53x
is_empty_name[subdomain.alice.eth] 0.00006410834497375879 0.000041474914371151857 35.30% 54.57% 1.55x
is_none_or_zero_address[] 0.00005279708666098608 0.000040677179005500476 22.96% 29.80% 1.30x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.00005863307787020208 0.000045401076967786136 22.57% 29.14% 1.29x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.00005785278661228003 0.00004698495084316404 18.79% 23.13% 1.23x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005862485939579795 0.00004664225495902899 20.44% 25.69% 1.26x
is_valid_ens_name[] 0.0000018857768079849001 0.0000013996696327953346 25.78% 34.73% 1.35x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2294249256000512 0.24994231959999524 -8.94% -8.21% 0.92x
is_valid_ens_name[alice.eth] 0.010886199197905455 0.01107881264835549 -1.77% -1.74% 0.98x
is_valid_ens_name[bar] 0.000001976796636051686 0.000001500922569707749 24.07% 31.71% 1.32x
is_valid_ens_name[baz] 0.000001966452461248435 0.0000015040539415803862 23.51% 30.74% 1.31x
is_valid_ens_name[bob.eth] 0.006482457891024751 0.006756492895836648 -4.23% -4.06% 0.96x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.25181912640005066 0.2494530776000829 0.94% 0.95% 1.01x
is_valid_ens_name[foo] 0.0000019732140836339054 0.0000014992375000353423 24.02% 31.61% 1.32x
is_valid_ens_name[subdomain.alice.eth] 0.03082091366666811 0.03368742267744276 -9.30% -8.51% 0.91x
is_valid_name[] 0.0000016922013462036308 9.949939732283875e-7 41.20% 70.07% 1.70x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.2341475532000004 0.24659371140005532 -5.32% -5.05% 0.95x
is_valid_name[alice.eth] 0.010368646821038247 0.010848256999982672 -4.63% -4.42% 0.96x
is_valid_name[bob.eth] 0.006343964757756146 0.00671730060527035 -5.88% -5.56% 0.94x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2569335258000137 0.25653527600002235 0.16% 0.16% 1.00x
is_valid_name[subdomain.alice.eth] 0.03086663715148599 0.03242786537500564 -5.06% -4.81% 0.95x
label_to_hash[] 0.00013296571652388268 0.00008111896577041525 38.99% 63.91% 1.64x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.2277346102000138 0.23451315800002703 -2.98% -2.89% 0.97x
label_to_hash[alice] 0.007683846704534255 0.007833140239994464 -1.94% -1.91% 0.98x
label_to_hash[bob] 0.003448557574912777 0.003428590940986156 0.58% 0.58% 1.01x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.2712472761999834 0.2298354091999954 15.27% 18.02% 1.18x
label_to_hash[xn--fiqs8s] 0.024374768261882958 0.025184341775002395 -3.32% -3.21% 0.97x
normal_name_to_hash[] 0.0000017592145473065137 9.830612100717427e-7 44.12% 78.95% 1.79x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23816211860003023 0.2343014898000547 1.62% 1.65% 1.02x
normal_name_to_hash[alice.eth] 0.011486260750023741 0.011345811689663563 1.22% 1.24% 1.01x
normal_name_to_hash[bob.eth] 0.007296425755394732 0.00702420907042087 3.73% 3.88% 1.04x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.2800871250000455 0.2500778323999839 10.71% 12.00% 1.12x
normal_name_to_hash[subdomain.alice.eth] 0.0333485469354855 0.03250984832260979 2.51% 2.58% 1.03x
normalize_name[] 0.000008370875516011965 0.000002912747227844577 65.20% 187.39% 2.87x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22771021439998548 0.24751719739997496 -8.70% -8.00% 0.92x
normalize_name[alice.eth] 0.010573904510224287 0.011051645763446168 -4.52% -4.32% 0.96x
normalize_name[bob.eth] 0.006299752839508365 0.0067500116052710115 -7.15% -6.67% 0.93x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.24941144780000285 0.2634537850000925 -5.63% -5.33% 0.95x
normalize_name[subdomain.alice.eth] 0.03038225703028619 0.03270834099994602 -7.66% -7.11% 0.93x
raw_name_to_hash[] 0.000009444951989284546 0.000003131234953638275 66.85% 201.64% 3.02x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4625338976000421 0.47116150860001654 -1.87% -1.83% 0.98x
raw_name_to_hash[alice.eth] 0.022143616760890047 0.02266141628888868 -2.34% -2.28% 0.98x
raw_name_to_hash[bob.eth] 0.013733927513496039 0.013787347260264041 -0.39% -0.39% 1.00x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5547673034000582 0.5065381023999634 8.69% 9.52% 1.10x
raw_name_to_hash[subdomain.alice.eth] 0.06514917718750723 0.06456101406249104 0.90% 0.91% 1.01x
sha3_text[0] 0.00011693373879808614 0.00007464856909283538 36.16% 56.65% 1.57x
sha3_text[1] 0.00011700369895629588 0.00007421460817348028 36.57% 57.66% 1.58x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00012577223068100207 0.00008407136569858571 33.16% 49.60% 1.50x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.00012607834496195595 0.00008255004212778438 34.52% 52.73% 1.53x
sha3_text[alice.eth] 0.00012588417683450585 0.0000831165437709538 33.97% 51.46% 1.51x
sha3_text[alice] 0.00012672623511000044 0.00008326088235285094 34.30% 52.20% 1.52x
sha3_text[bob.eth] 0.00012592226626556357 0.00008315539059616603 33.96% 51.43% 1.51x
sha3_text[bob] 0.00012506109895109793 0.00008275634908181077 33.83% 51.12% 1.51x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.00012673195043941577 0.00008386778677265008 33.82% 51.11% 1.51x
sha3_text[emoji\U0001f468\U0001f3fb] 0.00012540192180120064 0.00008314963653969365 33.69% 50.81% 1.51x
sha3_text[subdomain.alice.eth] 0.0001252212717094543 0.00008268772034553768 33.97% 51.44% 1.51x
sha3_text[xn--fiqs8s] 0.00012544324591795363 0.00008314095320457557 33.72% 50.88% 1.51x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.0002942085205887198 0.00025616129094330794 12.93% 14.85% 1.15x
fallback_func_abi_exists 0.00025661027225146546 0.00024963011531437554 2.72% 2.80% 1.03x
filter_by_argument_name[a] 0.0006665839883729269 0.00037808541936941334 43.28% 76.31% 1.76x
filter_by_argument_name[a+b] 0.0006895048016656489 0.0003986286550999977 42.19% 72.97% 1.73x
filter_by_argument_name[b] 0.0006691527736153393 0.0003760313854403495 43.80% 77.95% 1.78x
filter_by_argument_name[c] 0.0006608864264376217 0.00036875100524124836 44.20% 79.22% 1.79x
filter_by_argument_name[notfound] 0.000654008551146708 0.00036319298477014426 44.47% 80.07% 1.80x
filter_by_argument_type[address] 0.0005804573614717455 0.0005746373671460528 1.00% 1.01% 1.01x
filter_by_argument_type[notatype] 0.0005783171939210357 0.0005738563051000074 0.77% 0.78% 1.01x
filter_by_argument_type[string] 0.0005876847412814683 0.0005804630562348139 1.23% 1.24% 1.01x
filter_by_argument_type[uint+address] 0.0005940939677163031 0.0005857110969522759 1.41% 1.43% 1.01x
filter_by_argument_type[uint256] 0.0005840016654159813 0.000578534454546548 0.94% 0.95% 1.01x
filter_by_types[constructor] 0.00003771008058297868 0.00003763270595737494 0.21% 0.21% 1.00x
filter_by_types[event] 0.0000377737033233562 0.00003777075180585126 0.01% 0.01% 1.00x
filter_by_types[fallback] 0.000037812226742247126 0.00003784051499955575 -0.07% -0.07% 1.00x
filter_by_types[func+event] 0.000043089170821345906 0.00004340736728236191 -0.74% -0.73% 0.99x
filter_by_types[function] 0.000038001572108217806 0.00003784001775906918 0.43% 0.43% 1.00x
filter_by_types[none] 0.000036694234921986444 0.000036844310080509875 -0.41% -0.41% 1.00x
filter_by_types[receive] 0.000039035468964345637 0.000038835067006290195 0.51% 0.52% 1.01x
find_constructor_abi_element_by_type 0.00003507570192697881 0.000035198547693176216 -0.35% -0.35% 1.00x
get_abi_element_signature[custom] 0.000051985241427012785 0.000049791109918859684 4.22% 4.41% 1.04x
get_abi_element_signature[fallback] 0.000022017675573737712 0.000021575739181697753 2.01% 2.05% 1.02x
get_abi_element_signature[receive] 0.000029110310123986347 0.000029208694388681577 -0.34% -0.34% 1.00x
get_abi_element_signature[transfer] 0.00005945166756173483 0.000057269895653053666 3.67% 3.81% 1.04x
get_name_from_abi_element_identifier[custom] 0.000041208246681461854 0.00003900820140276745 5.34% 5.64% 1.06x
get_name_from_abi_element_identifier[fallback] 0.000012240758040263648 0.000012352124367242383 -0.91% -0.90% 0.99x
get_name_from_abi_element_identifier[func] 0.00004073599384050694 0.00003925627601781342 3.63% 3.77% 1.04x
get_name_from_abi_element_identifier[receive] 0.00001872416005630354 0.000018752114758295134 -0.15% -0.15% 1.00x
get_tuple_type_str_parts[not-tuple] 0.000022818185540401782 0.000022567220820431425 1.10% 1.11% 1.01x
get_tuple_type_str_parts[one-dim] 0.00007622140594687899 0.00007620339058221124 0.02% 0.02% 1.00x
get_tuple_type_str_parts[plain] 0.00004960573922737982 0.000049698625572705844 -0.19% -0.19% 1.00x
get_tuple_type_str_parts[two-dim] 0.00009613065247103658 0.00009578735787403921 0.36% 0.36% 1.00x
is_address_type[address] 0.00004492408726579219 0.000043786300276577634 2.53% 2.60% 1.03x
is_address_type[array] 0.00004495904020961603 0.0000449098694890563 0.11% 0.11% 1.00x
is_address_type[bool] 0.0000445879131487307 0.000044488293775589153 0.22% 0.22% 1.00x
is_address_type[bytes] 0.00004442285105005408 0.00004500874452128283 -1.32% -1.30% 0.99x
is_address_type[bytes32] 0.000046155557498802115 0.00004582817365705676 0.71% 0.71% 1.01x
is_address_type[bytes33] 0.00004465163376609511 0.000045211347588473586 -1.25% -1.24% 0.99x
is_address_type[empty] 0.00004473041304496151 0.00004448408067211997 0.55% 0.55% 1.01x
is_address_type[enum] 0.00004422439464671028 0.00004354227609644715 1.54% 1.57% 1.02x
is_address_type[int256] 0.00004434699547942382 0.00004426826941958215 0.18% 0.18% 1.00x
is_address_type[invalid] 0.000043856634863906016 0.000044538389001104026 -1.55% -1.53% 0.98x
is_address_type[string] 0.00004412168036699378 0.000044818884371244974 -1.58% -1.56% 0.98x
is_address_type[tuple-array] 0.00004448027275982057 0.00004418264125846629 0.67% 0.67% 1.01x
is_address_type[tuple] 0.000044895934373632255 0.00004491689978641125 -0.05% -0.05% 1.00x
is_address_type[uint256] 0.000045793148897029255 0.00004532456595491162 1.02% 1.03% 1.01x
is_array_type[address] 0.0003905573676985103 0.00039644152768975814 -1.51% -1.48% 0.99x
is_array_type[array] 0.00039828352100839776 0.0004087080950145671 -2.62% -2.55% 0.97x
is_array_type[bool] 0.0003574034414363721 0.0003657031895928585 -2.32% -2.27% 0.98x
is_array_type[bytes] 0.00037002377469266676 0.0003750643073383006 -1.36% -1.34% 0.99x
is_array_type[bytes32] 0.0003897071933151856 0.00039580717898702174 -1.57% -1.54% 0.98x
is_array_type[bytes33] 0.0003868922908381949 0.00039475959777460245 -2.03% -1.99% 0.98x
is_array_type[empty] 0.00029778912452792293 0.00030213866262487904 -1.46% -1.44% 0.99x
is_array_type[enum] 0.0003779315811010289 0.00038555851984270305 -2.02% -1.98% 0.98x
is_array_type[int256] 0.00037950580993935916 0.0003872111735816191 -2.03% -1.99% 0.98x
is_array_type[invalid] 0.00039532583241596263 0.0004037986324230026 -2.14% -2.10% 0.98x
is_array_type[string] 0.00038055454250431243 0.00038746060326353635 -1.81% -1.78% 0.98x
is_array_type[tuple-array] 0.0004019723656843396 0.0004113501078662572 -2.33% -2.28% 0.98x
is_array_type[tuple] 0.0003687260611840183 0.00037750979230932323 -2.38% -2.33% 0.98x
is_array_type[uint256] 0.0003882600567075488 0.00039566809781834956 -1.91% -1.87% 0.98x
is_bool_type[address] 0.0000438987728246686 0.00004412435619375537 -0.51% -0.51% 0.99x
is_bool_type[array] 0.00004304392370921488 0.00004410732618875911 -2.47% -2.41% 0.98x
is_bool_type[bool] 0.000043027223723363274 0.00004407759695729409 -2.44% -2.38% 0.98x
is_bool_type[bytes] 0.000043842604766956624 0.00004433397255771368 -1.12% -1.11% 0.99x
is_bool_type[bytes32] 0.00004400927691491519 0.000044501859522396995 -1.12% -1.11% 0.99x
is_bool_type[bytes33] 0.000043678164270969404 0.00004417599473838683 -1.14% -1.13% 0.99x
is_bool_type[empty] 0.00004458715304358602 0.0000446797837191508 -0.21% -0.21% 1.00x
is_bool_type[enum] 0.00004338317346539262 0.00004446422645985327 -2.49% -2.43% 0.98x
is_bool_type[int256] 0.00004390723558281259 0.00004408738507877282 -0.41% -0.41% 1.00x
is_bool_type[invalid] 0.000043938085139541405 0.00004353704509775628 0.91% 0.92% 1.01x
is_bool_type[string] 0.00004414001398172331 0.0000437868557132995 0.80% 0.81% 1.01x
is_bool_type[tuple-array] 0.00004345488082100408 0.0000448543376311842 -3.22% -3.12% 0.97x
is_bool_type[tuple] 0.00004388867639790546 0.00004439906029921916 -1.16% -1.15% 0.99x
is_bool_type[uint256] 0.00004376017375519303 0.000044714030801652494 -2.18% -2.13% 0.98x
is_bytes_type[address] 0.00031674041854608996 0.0003158563208099491 0.28% 0.28% 1.00x
is_bytes_type[array] 0.0003076128934351814 0.0003100063608533796 -0.78% -0.77% 0.99x
is_bytes_type[bool] 0.00027910090757495595 0.00027926352014648494 -0.06% -0.06% 1.00x
is_bytes_type[bytes] 0.0002773773640367319 0.00027742406858161794 -0.02% -0.02% 1.00x
is_bytes_type[bytes32] 0.0002949580991659918 0.00029794396489868147 -1.01% -1.00% 0.99x
is_bytes_type[bytes33] 0.00030454638593410915 0.00031307366667076116 -2.80% -2.72% 0.97x
is_bytes_type[empty] 0.0002786152204837599 0.00027748654516022303 0.41% 0.41% 1.00x
is_bytes_type[enum] 0.00028759836961983823 0.00029051671872573214 -1.01% -1.00% 0.99x
is_bytes_type[int256] 0.0002874024052363467 0.00028865308166652753 -0.44% -0.43% 1.00x
is_bytes_type[invalid] 0.0002789818623367407 0.00027769467816745236 0.46% 0.46% 1.00x
is_bytes_type[string] 0.00029190689031806063 0.0002927071255349593 -0.27% -0.27% 1.00x
is_bytes_type[tuple-array] 0.0002789935538491198 0.0002795988606537391 -0.22% -0.22% 1.00x
is_bytes_type[tuple] 0.0002780905365714326 0.0002787500443265043 -0.24% -0.24% 1.00x
is_bytes_type[uint256] 0.0003002619325468526 0.0003160741819574366 -5.27% -5.00% 0.95x
is_int_type[address] 0.00023068238170258147 0.0002033815480716949 11.83% 13.42% 1.13x
is_int_type[array] 0.0002300476703665992 0.00020359414363884618 11.50% 12.99% 1.13x
is_int_type[bool] 0.00023010806225964815 0.00020401053784034837 11.34% 12.79% 1.13x
is_int_type[bytes] 0.00023704664686507667 0.00021591125281401064 8.92% 9.79% 1.10x
is_int_type[bytes32] 0.00023104216330534493 0.00020301859766370234 12.13% 13.80% 1.14x
is_int_type[bytes33] 0.00023042411276316213 0.00020047107784780988 13.00% 14.94% 1.15x
is_int_type[empty] 0.00023016315109584978 0.00020293118512495844 11.83% 13.42% 1.13x
is_int_type[enum] 0.00023396392231721206 0.0002183970026239616 6.65% 7.13% 1.07x
is_int_type[int256] 0.00024473941795103023 0.0002272054658682058 7.16% 7.72% 1.08x
is_int_type[invalid] 0.00023070314243046826 0.00020140044524997054 12.70% 14.55% 1.15x
is_int_type[string] 0.00024136666529225406 0.00022034203107904648 8.71% 9.54% 1.10x
is_int_type[tuple-array] 0.00023067438432934563 0.0002006077477144085 13.03% 14.99% 1.15x
is_int_type[tuple] 0.000235421446416167 0.00021166139051726865 10.09% 11.23% 1.11x
is_int_type[uint256] 0.0002303316530303635 0.00020392665638193567 11.46% 12.95% 1.13x
is_probably_enum[address] 0.00006707366476305312 0.00006916205280481355 -3.11% -3.02% 0.97x
is_probably_enum[empty] 0.00006141002683476599 0.00006280084902173854 -2.26% -2.21% 0.98x
is_probably_enum[enum] 0.00006686568229708854 0.00006795676359161765 -1.63% -1.61% 0.98x
is_probably_enum[lib-dot] 0.00006793597498873781 0.00006963861845689321 -2.51% -2.44% 0.98x
is_probably_enum[lib-enum] 0.00007625825803368749 0.00007719472980644002 -1.23% -1.21% 0.99x
is_probably_enum[uint256] 0.00006728745524782988 0.00006900923761785817 -2.56% -2.50% 0.98x
is_recognized_type[address] 0.00007898515379483741 0.0000831441107693362 -5.27% -5.00% 0.95x
is_recognized_type[array] 0.0000839635469822752 0.0000880015145858839 -4.81% -4.59% 0.95x
is_recognized_type[bool] 0.00007918048889324483 0.00008263834312123205 -4.37% -4.18% 0.96x
is_recognized_type[bytes] 0.00015054266512945033 0.0001602710520473295 -6.46% -6.07% 0.94x
is_recognized_type[bytes32] 0.00014875029525884153 0.00015550323824568024 -4.54% -4.34% 0.96x
is_recognized_type[bytes33] 0.000140731031423951 0.0001458822297421022 -3.66% -3.53% 0.96x
is_recognized_type[empty] 0.00006039742331584797 0.00006425572717104023 -6.39% -6.00% 0.94x
is_recognized_type[enum] 0.00008320382070132383 0.00008817993521360317 -5.98% -5.64% 0.94x
is_recognized_type[int256] 0.00012909936471978568 0.00013044986093300394 -1.05% -1.04% 0.99x
is_recognized_type[invalid] 0.00008288512463278536 0.00008980999026398726 -8.35% -7.71% 0.92x
is_recognized_type[string] 0.00010088242567921603 0.00010760120060743052 -6.66% -6.24% 0.94x
is_recognized_type[tuple-array] 0.00008307714638582344 0.00008889501678065165 -7.00% -6.54% 0.93x
is_recognized_type[tuple] 0.00008250302958736335 0.00008860460588245649 -7.40% -6.89% 0.93x
is_recognized_type[uint256] 0.00012741876462152448 0.0001307135357466705 -2.59% -2.52% 0.97x
is_string_type[address] 0.00004514747144743589 0.00004462558617340415 1.16% 1.17% 1.01x
is_string_type[array] 0.0000445492437784758 0.000044526433296115927 0.05% 0.05% 1.00x
is_string_type[bool] 0.00004471419352163515 0.000044700090730405965 0.03% 0.03% 1.00x
is_string_type[bytes] 0.000044882509612627225 0.00004545260719510351 -1.27% -1.25% 0.99x
is_string_type[bytes32] 0.00004523388761130928 0.00004521853190096761 0.03% 0.03% 1.00x
is_string_type[bytes33] 0.00004456190762024998 0.00004377499035792927 1.77% 1.80% 1.02x
is_string_type[empty] 0.00004458383081721853 0.000045332401451108696 -1.68% -1.65% 0.98x
is_string_type[enum] 0.00004484099323719367 0.00004554051099490607 -1.56% -1.54% 0.98x
is_string_type[int256] 0.00004533950965396053 0.00004566936879843155 -0.73% -0.72% 0.99x
is_string_type[invalid] 0.00004391899369044819 0.0000437976496732378 0.28% 0.28% 1.00x
is_string_type[string] 0.000044999173482705415 0.00004447196022718317 1.17% 1.19% 1.01x
is_string_type[tuple-array] 0.00004463917078459066 0.00004428684085422376 0.79% 0.80% 1.01x
is_string_type[tuple] 0.00004450775482861498 0.00004507422854089896 -1.27% -1.26% 0.99x
is_string_type[uint256] 0.00004466642194085282 0.000045004286495266284 -0.76% -0.75% 0.99x
is_uint_type[address] 0.00022426429429090288 0.00022807881113645967 -1.70% -1.67% 0.98x
is_uint_type[array] 0.0002267795515538301 0.00022948193101899242 -1.19% -1.18% 0.99x
is_uint_type[bool] 0.00020276962760095932 0.0002009577749059546 0.89% 0.90% 1.01x
is_uint_type[bytes] 0.00019944190863785096 0.00020095047196803934 -0.76% -0.75% 0.99x
is_uint_type[bytes32] 0.00022475132482081237 0.00022441605187509343 0.15% 0.15% 1.00x
is_uint_type[bytes33] 0.0002271984247665201 0.00022314353685679768 1.78% 1.82% 1.02x
is_uint_type[empty] 0.0002040417727079333 0.0002010222625270053 1.48% 1.50% 1.02x
is_uint_type[enum] 0.00021101095257971422 0.0002134350927106767 -1.15% -1.14% 0.99x
is_uint_type[int256] 0.0002134125683762879 0.00021497140896513639 -0.73% -0.73% 0.99x
is_uint_type[invalid] 0.00020180387150814228 0.0002019266404865101 -0.06% -0.06% 1.00x
is_uint_type[string] 0.00021314135525765787 0.00021323529531704362 -0.04% -0.04% 1.00x
is_uint_type[tuple-array] 0.00020106178857472352 0.00020170666055396012 -0.32% -0.32% 1.00x
is_uint_type[tuple] 0.0002021245326389546 0.00020104279475479953 0.54% 0.54% 1.01x
is_uint_type[uint256] 0.00022973016030455352 0.00023148793606369902 -0.77% -0.76% 0.99x
length_of_array_type[dynamic] 0.00016793654848049072 0.00016580302127819905 1.27% 1.29% 1.01x
length_of_array_type[fixed] 0.00017820066494420836 0.00017602990300027562 1.22% 1.23% 1.01x
length_of_array_type[nested] 0.0001866791151320988 0.00018485959973680544 0.97% 0.98% 1.01x
map_abi_data 0.006354014445250404 0.005056592497254076 20.42% 25.66% 1.26x
normalize_event_input_types 0.00042326086751177255 0.00042980872122934247 -1.55% -1.52% 0.98x
receive_func_abi_exists 0.0003201235646506378 0.0003217593099727843 -0.51% -0.51% 0.99x
strip_abi_types 0.0015870887659559033 0.0015785869681010582 0.54% 0.54% 1.01x
sub_type_of_array_type[nested] 0.00017830478927357914 0.00018599835365999405 -4.31% -4.14% 0.96x
sub_type_of_array_type[simple] 0.00017066260896091918 0.000177747067182183 -4.15% -3.99% 0.96x

web3/_utils/blocks - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_hex_encoded_block_hash[int] 0.00002102779565020347 0.000022280425100883866 -5.96% -5.62% 0.94x
is_hex_encoded_block_hash[invalid-g] 0.00008561268555484574 0.00006161964916881955 28.03% 38.94% 1.39x
is_hex_encoded_block_hash[none] 0.0000209514350802259 0.00002206854651571903 -5.33% -5.06% 0.95x
is_hex_encoded_block_hash[short] 0.00004662795515553646 0.000029794135589141954 36.10% 56.50% 1.57x
is_hex_encoded_block_hash[too-long] 0.00004554588692157092 0.00002943878284751221 35.36% 54.71% 1.55x
is_hex_encoded_block_hash[too-short] 0.000045342459065051984 0.000029976325288526406 33.89% 51.26% 1.51x
is_hex_encoded_block_hash[valid-a] 0.00009464214996354308 0.00007285884846724857 23.02% 29.90% 1.30x
is_hex_encoded_block_hash[valid-f] 0.00009633028801833299 0.00007242402214921508 24.82% 33.01% 1.33x
is_hex_encoded_block_number[int] 0.00002134764255449388 0.00002230882804145457 -4.50% -4.31% 0.96x
is_hex_encoded_block_number[invalid-g] 0.00016626746607773465 0.00022483598427466587 -35.23% -26.05% 0.74x
is_hex_encoded_block_number[max-64-a] 0.00010702464250923074 0.00008177227686181885 23.59% 30.88% 1.31x
is_hex_encoded_block_number[max-64-f] 0.00010420233912114188 0.00008113087523803658 22.14% 28.44% 1.28x
is_hex_encoded_block_number[none] 0.00002126204242511665 0.000022403444520053754 -5.37% -5.09% 0.95x
is_hex_encoded_block_number[small] 0.00009475591882871504 0.000047200864024693334 50.19% 100.75% 2.01x
is_hex_encoded_block_number[too-long] 0.0001073914000465198 0.00006059050220833424 43.58% 77.24% 1.77x
is_predefined_block_number[bytes-latest] 0.00003196944187025477 0.000029906613829770136 6.45% 6.90% 1.07x
is_predefined_block_number[bytes-pending] 0.000031951081535390045 0.00003016007915696706 5.61% 5.94% 1.06x
is_predefined_block_number[bytes-random] 0.000031239639794361496 0.000028646515358216625 8.30% 9.05% 1.09x
is_predefined_block_number[int] 0.00003443899597131729 0.0000250434400868084 27.28% 37.52% 1.38x
is_predefined_block_number[none] 0.00012348361307420108 0.0002118418492732427 -71.55% -41.71% 0.58x
is_predefined_block_number[object] 0.00015420608935440283 0.0002477824979353403 -60.68% -37.77% 0.62x
is_predefined_block_number[str-earliest] 0.000013862805534338032 0.00001042913130475942 24.77% 32.92% 1.33x
is_predefined_block_number[str-finalized] 0.000013720915930557852 0.000010578830653691131 22.90% 29.70% 1.30x
is_predefined_block_number[str-foo] 0.00001365554638885942 0.00001053585595862349 22.85% 29.61% 1.30x
is_predefined_block_number[str-latest] 0.000013987135735248404 0.000010606781914335994 24.17% 31.87% 1.32x
is_predefined_block_number[str-pending] 0.000013749172315380835 0.000010663841800924594 22.44% 28.93% 1.29x
is_predefined_block_number[str-safe] 0.000013626164497025064 0.000010418172032059338 23.54% 30.79% 1.31x
select_method_for_block_identifier[hash-bytes] 0.00005184285998900048 0.00004093421595537933 21.04% 26.65% 1.27x
select_method_for_block_identifier[hash-hexstr] 0.0001319804754293078 0.0000917224966779818 30.50% 43.89% 1.44x
select_method_for_block_identifier[invalid-none] 0.000900335384832136 0.0010559711551135123 -17.29% -14.74% 0.85x
select_method_for_block_identifier[invalid-object] 0.0009468037936267637 0.0011024989941756387 -16.44% -14.12% 0.86x
select_method_for_block_identifier[number-hexstr] 0.0001758119724026707 0.000087470568060344 50.25% 101.00% 2.01x
select_method_for_block_identifier[number-int] 0.00010947024343331176 0.00005895228813242567 46.15% 85.69% 1.86x
select_method_for_block_identifier[predefined-bytes] 0.000048078229928923716 0.000043063881465140304 10.43% 11.64% 1.12x
select_method_for_block_identifier[predefined-str] 0.00002707163825053166 0.00002122809722666958 21.59% 27.53% 1.28x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.0004525664591061333 0.0005361128820143813 -18.46% -15.58% 0.84x
PropertyCheckingFactory[big-valid] 0.0004527203683741296 0.0005378468048251251 -18.80% -15.83% 0.84x
PropertyCheckingFactory[inheritance] 0.0009732813277275121 0.0009512520229862909 2.26% 2.32% 1.02x
PropertyCheckingFactory[invalid] 0.0004520596814376092 0.0005346484764567427 -18.27% -15.45% 0.85x
PropertyCheckingFactory[multi-normalizer] 0.00044742206495395346 0.0005329037484683617 -19.11% -16.04% 0.84x
PropertyCheckingFactory[multi-prop] 0.0004522047518764666 0.0005331729945168238 -17.91% -15.19% 0.85x
PropertyCheckingFactory[normalized] 0.0004542100869796046 0.0005337474905449324 -17.51% -14.90% 0.85x
PropertyCheckingFactory[valid] 0.0012226525905222828 0.0009978082234696631 18.39% 22.53% 1.23x
verify_attr[empty] 0.00009962354198962704 0.00015841074916658323 -59.01% -37.11% 0.63x
verify_attr[found-end] 0.000012611847060770227 0.000011447942002601378 9.23% 10.17% 1.10x
verify_attr[found-start] 0.000009449594705936754 0.000008633000685026614 8.64% 9.46% 1.09x
verify_attr[large-found] 0.0001282268149126531 0.00011881115828477253 7.34% 7.92% 1.08x
verify_attr[large-notfound] 0.0001957049155588612 0.0002583435783817921 -32.01% -24.25% 0.76x
verify_attr[notfound] 0.00010536277129604258 0.00016357630378814353 -55.25% -35.59% 0.64x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006351722698358777 0.0006502142063139393 -2.37% -2.31% 0.98x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.00007939194678552863 0.00002307432848335114 70.94% 244.07% 3.44x
percentile[100-90th] 0.00011290909780875416 0.000054693457297677725 51.56% 106.44% 2.06x
percentile[100k-99th] 0.038680787692346015 0.036611175214326455 5.35% 5.65% 1.06x
percentile[100k-median] 0.03720402296149727 0.03780068084613329 -1.60% -1.58% 0.98x
percentile[10k-10th] 0.003928098490416644 0.0035092601170192135 10.66% 11.94% 1.12x
percentile[10k-99th] 0.0039182135893746604 0.003513694159010737 10.32% 11.51% 1.12x
percentile[10k-median] 0.003838392450175365 0.003624689717466885 5.57% 5.90% 1.06x
percentile[1k-99th] 0.00048813120268398477 0.0003994151308651157 18.17% 22.21% 1.22x
percentile[1M-median] 0.575079044999893 0.5728386931999012 0.39% 0.39% 1.00x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.00001341999982794874 0.000006773515957802391 49.53% 98.12% 1.98x
to_bytes_if_hex[empty-str] 0.00030694285154944255 0.000036978842955871694 87.95% 730.05% 8.30x
to_bytes_if_hex[hexstr] 0.00034061467501237584 0.00004646739078658084 86.36% 633.02% 7.33x
to_bytes_if_hex[large-hex] 0.0003459014534567709 0.00005070773928073758 85.34% 582.15% 6.82x
to_bytes_if_hex[non-prefixed-hex] 0.0003234323212666267 0.0000422485836779835 86.94% 665.55% 7.66x
to_bytes_if_hex[nothex] 0.00041510816977080405 0.00026568171028240275 36.00% 56.24% 1.56x
to_bytes_if_hex[unicode] 0.0004347623109325178 0.00027847538321009 35.95% 56.12% 1.56x
to_bytes_if_hex[zero] 0.00033652142476314973 0.00004633750939138042 86.23% 626.24% 7.26x
to_hex_if_bytes[bytes] 0.00022744272624913072 0.000047567506000045934 79.09% 378.15% 4.78x
to_hex_if_bytes[empty-bytes] 0.00021412233465680988 0.00003741236650777686 82.53% 472.33% 5.72x
to_hex_if_bytes[empty-str] 0.00010248334290136114 0.00018645471301442017 -81.94% -45.04% 0.55x
to_hex_if_bytes[hexstr] 0.0002819373825465004 0.000023555290571617342 91.65% 1096.92% 11.97x
to_hex_if_bytes[large-bytes] 0.00022927612712823127 0.00005046680318946214 77.99% 354.31% 4.54x
to_hex_if_bytes[non-prefixed-hex] 0.00010377813958811852 0.00018887136656741142 -82.00% -45.05% 0.55x
to_hex_if_bytes[not-hex] 0.00010659010724424382 0.00018864437470480204 -76.98% -43.50% 0.57x
to_hex_if_bytes[unicode] 0.00010723853034551939 0.00019289609896687925 -79.88% -44.41% 0.56x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.00031320462146125147 0.00011001845026795964 64.87% 184.68% 2.85x
all_in_dict[empty-dict] 0.0002621405923855491 0.00007585774284130246 71.06% 245.57% 3.46x
all_in_dict[empty-list] 0.0002743085778446346 0.00009378651303485604 65.81% 192.48% 2.92x
all_in_dict[mixed-types] 0.00031442825346648224 0.00011199817856436168 64.38% 180.74% 2.81x
all_in_dict[no-overlap] 0.0002850495107519828 0.00009264803869642685 67.50% 207.67% 3.08x
all_in_dict[none-in] 0.00028636342335794097 0.00009283878212158648 67.58% 208.45% 3.08x
all_in_dict[one-in] 0.0002806815775765991 0.00009772109360682353 65.18% 187.23% 2.87x
all_in_dict[partial-overlap] 0.0003194374930685062 0.00010377318750829714 67.51% 207.82% 3.08x
all_in_dict[value-none] 0.00027646808809652696 0.0000985870887108392 64.34% 180.43% 2.80x
any_in_dict[all-in] 0.00028638788033337806 0.00009199150952200141 67.88% 211.32% 3.11x
any_in_dict[empty-dict] 0.00030622745397354805 0.0000963434388075091 68.54% 217.85% 3.18x
any_in_dict[empty-list] 0.00026129929725070115 0.00009078366757788382 65.26% 187.83% 2.88x
any_in_dict[mixed-types] 0.00028630874404149024 0.0000887371409266014 69.01% 222.65% 3.23x
any_in_dict[no-overlap] 0.00032361637928535197 0.00010989204148452427 66.04% 194.49% 2.94x
any_in_dict[none-in] 0.0002882516539993256 0.00009669970469514866 66.45% 198.09% 2.98x
any_in_dict[one-in] 0.00027595511101103645 0.0000872460192134868 68.38% 216.30% 3.16x
any_in_dict[partial-overlap] 0.0002804536718642485 0.00009284066380930421 66.90% 202.08% 3.02x
any_in_dict[value-none] 0.0002757802225655333 0.00008826851107274271 67.99% 212.43% 3.12x
either_set_is_a_subset[both-empty] 0.00016853976696831554 0.00015626048821261492 7.29% 7.86% 1.08x
either_set_is_a_subset[empty-set1] 0.00016852734838751187 0.00015410769846493677 8.56% 9.36% 1.09x
either_set_is_a_subset[empty-set2] 0.00025318080128412335 0.00024564320375299547 2.98% 3.07% 1.03x
either_set_is_a_subset[identical] 0.00017919345881433634 0.00016650735411727582 7.08% 7.62% 1.08x
either_set_is_a_subset[mixed-types] 0.000185291357320441 0.00017033055113565461 8.07% 8.78% 1.09x
either_set_is_a_subset[not-subset] 0.0002724279320965013 0.000258398972111746 5.15% 5.43% 1.05x
either_set_is_a_subset[partial-overlap] 0.00029434242718075513 0.00027571332049058277 6.33% 6.76% 1.07x
either_set_is_a_subset[subset] 0.00018419789771858863 0.00017098997023228815 7.17% 7.72% 1.08x
either_set_is_a_subset[superset] 0.0002861446061426059 0.0002838336829661519 0.81% 0.81% 1.01x
none_in_dict[all-in] 0.0003057881566775187 0.00008970944669888593 70.66% 240.87% 3.41x
none_in_dict[empty-dict] 0.000319518873721693 0.00010052431868442034 68.54% 217.85% 3.18x
none_in_dict[empty-list] 0.0002783724086335886 0.00009333139297863019 66.47% 198.26% 2.98x
none_in_dict[mixed-types] 0.0002967313262550055 0.00009414040454575587 68.27% 215.20% 3.15x
none_in_dict[no-overlap] 0.00033955203285557684 0.00011356721364133781 66.55% 198.99% 2.99x
none_in_dict[none-in] 0.0003073872973123092 0.00010043708116979852 67.33% 206.05% 3.06x
none_in_dict[one-in] 0.00029282152149145415 0.00009414560053665795 67.85% 211.03% 3.11x
none_in_dict[partial-overlap] 0.00030495945910742985 0.000092737477039891 69.59% 228.84% 3.29x
none_in_dict[value-none] 0.0002994230720117685 0.00009137919628998408 69.48% 227.67% 3.28x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0015063282149023179 0.001485397962688463 1.39% 1.41% 1.01x
attributedict_hash[flat] 0.0011121829401555627 0.0011129281973004791 -0.07% -0.07% 1.00x
attributedict_hash[nested] 0.0017452628436398193 0.0017564381652915878 -0.64% -0.64% 0.99x
attributedict_init[empty] 0.00008761103911162065 0.00008707733425542247 0.61% 0.61% 1.01x
attributedict_init[large] 0.00012675807617121702 0.000127205106467297 -0.35% -0.35% 1.00x
attributedict_init[small] 0.00009217994668213892 0.00009193743705927648 0.26% 0.26% 1.00x
mutableattributedict_delitem 0.0003870574176070395 0.0003895514433274144 -0.64% -0.64% 0.99x
mutableattributedict_setitem 0.000318192966549226 0.00032227445420864053 -1.28% -1.27% 0.99x
namedelementonion_add 0.008333634499952799 0.02826795920979869 -239.20% -70.52% 0.29x
namedelementonion_as_tuple_of_middleware 0.00015180059731282434 0.0001512057827532351 0.39% 0.39% 1.00x
namedelementonion_contains 0.000030417150394374028 0.00003021667151916335 0.66% 0.66% 1.01x
namedelementonion_getitem 0.00002735061784962301 0.000027779936734853764 -1.57% -1.55% 0.98x
namedelementonion_init[callables2] 0.00012774725979491534 0.00012730544359722013 0.35% 0.35% 1.00x
namedelementonion_init[callables3] 0.00016231859726562492 0.00015842777573903195 2.40% 2.46% 1.02x
namedelementonion_init[empty] 0.000042951281506953926 0.00004355400000038757 -1.40% -1.38% 0.99x
namedelementonion_inject 0.029541528361426254 0.03412162891107881 -15.50% -13.42% 0.87x
namedelementonion_iter 0.00015639428656792653 0.00015461190438784405 1.14% 1.15% 1.01x
namedelementonion_remove 0.0006872035876517115 0.0006961784852504177 -1.31% -1.29% 0.99x
namedelementonion_replace 0.002478840313934494 0.0025068597429418545 -1.13% -1.12% 0.99x
readableattributedict_getitem[large] 0.00001616890243983875 0.000016120903968777665 0.30% 0.30% 1.00x
readableattributedict_getitem[small] 0.00001542218881732701 0.000015393124884374987 0.19% 0.19% 1.00x
readableattributedict_init[empty] 0.00005097272489267482 0.000052019535717316934 -2.05% -2.01% 0.98x
readableattributedict_init[large] 0.00008853968153314051 0.00008835451987230001 0.21% 0.21% 1.00x
readableattributedict_init[small] 0.000055200013497629806 0.000055848041305562226 -1.17% -1.16% 0.99x
readableattributedict_recursive[list-in-dict] 0.0009008722407150229 0.0009052119625102131 -0.48% -0.48% 1.00x
readableattributedict_recursive[nested-dict] 0.0009188095683811705 0.0009160387247616849 0.30% 0.30% 1.00x
readableattributedict_recursive[set] 0.00048531439016050225 0.0004702293430077714 3.11% 3.21% 1.03x
tupleize_lists_nested[list-in-dict] 0.0008630410925966332 0.0008505755107053808 1.44% 1.47% 1.01x
tupleize_lists_nested[tuple-in-dict] 0.0009477382906848348 0.0009306508690113639 1.80% 1.84% 1.02x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.0003415621306154986 0.0002529451436791524 25.94% 35.03% 1.35x
simplecache_cache[100] 0.002787076736541571 0.0019333013742517764 30.63% 44.16% 1.44x
simplecache_cache[1000] 0.029047916714314073 0.018354768963622932 36.81% 58.26% 1.58x
simplecache_eviction[10] 0.0005981789870522702 0.0005971624744065804 0.17% 0.17% 1.00x
simplecache_eviction[100] 0.005335084645149211 0.005367401572968103 -0.61% -0.60% 0.99x
simplecache_pop[10] 0.00046379895809401376 0.0003620248265662039 21.94% 28.11% 1.28x
simplecache_pop[100] 0.003955329289685742 0.0028978017852897904 26.74% 36.49% 1.36x
simplecache_retrieval[10] 0.00009045482497091505 0.00005607295899456325 38.01% 61.32% 1.61x
simplecache_retrieval[100] 0.0008095607256983644 0.00044514478457269063 45.01% 81.86% 1.82x

@BobTheBuidler BobTheBuidler merged commit cc6ac62 into master Oct 17, 2025
@BobTheBuidler BobTheBuidler deleted the utils branch October 17, 2025 19:05
@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.0000019252729189806865 0.000001088003823654477 43.49% 76.95% 1.77x
is_valid_name[a..eth] 0.00002483957136801272 0.000029362265790937434 -18.21% -15.40% 0.85x
is_valid_name[a.eth..] 0.000025643806238897172 0.000029561561787264295 -15.28% -13.25% 0.87x
is_valid_name[a.eth.] 0.00002537554183090967 0.00002939202459455626 -15.83% -13.67% 0.86x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23600674159997653 0.23646044360002633 -0.19% -0.19% 1.00x
is_valid_name[alice.eth] 0.010297768000013674 0.010829170163039298 -5.16% -4.91% 0.95x
is_valid_name[bob.eth] 0.00631162756603657 0.006513958025648091 -3.21% -3.11% 0.97x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.2766010008000649 0.22851667299996734 17.38% 21.04% 1.21x
is_valid_name[subdomain.alice.eth] 0.03135713296969835 0.03197656559375872 -1.98% -1.94% 0.98x
labelhash[] 0.00013207628223640996 0.00008238901873780291 37.62% 60.31% 1.60x
labelhash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.22952261940008611 0.23200536939998528 -1.08% -1.07% 0.99x
labelhash[alice] 0.007685125726574427 0.007721529531240279 -0.47% -0.47% 1.00x
labelhash[bob] 0.0034109392931002042 0.0033945009548672386 0.48% 0.48% 1.00x
labelhash[emoji\U0001f468\U0001f3fb] 0.24925649940000766 0.23491642039994076 5.75% 6.10% 1.06x
labelhash[xn--fiqs8s] 0.02458633628569238 0.024955624824980305 -1.50% -1.48% 0.99x
namehash[] 0.000009917726481788493 0.000003273056806156546 67.00% 203.01% 3.03x
namehash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.46801832599999216 0.4661888569999519 0.39% 0.39% 1.00x
namehash[alice.eth] 0.022136721217392456 0.02221772800002226 -0.37% -0.36% 1.00x
namehash[bob.eth] 0.01352306036486929 0.013376564724145784 1.08% 1.10% 1.01x
namehash[emoji\U0001f468\U0001f3fb.eth] 0.5079473511999822 0.48636045399994143 4.25% 4.44% 1.04x
namehash[subdomain.alice.eth] 0.06329769606247737 0.06378669225000522 -0.77% -0.77% 0.99x
nameprep[] 0.00000895610812702345 0.000002957386521763666 66.98% 202.84% 3.03x
nameprep[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.22989148640003804 0.23948935379999056 -4.17% -4.01% 0.96x
nameprep[alice.eth] 0.010597606989582195 0.011096052565234082 -4.70% -4.49% 0.96x
nameprep[bob.eth] 0.00628857963354772 0.006610475398691562 -5.12% -4.87% 0.95x
nameprep[emoji\U0001f468\U0001f3fb.eth] 0.2589274443999784 0.24915256419999424 3.78% 3.92% 1.04x
nameprep[subdomain.alice.eth] 0.03090940424240354 0.03258403609375904 -5.42% -5.14% 0.95x
parent[] 9.816737073248294e-7 8.628441966254789e-7 12.10% 13.77% 1.14x
parent[bar.eth] 0.000003633509597988251 0.0000025339725087986517 30.26% 43.39% 1.43x
parent[eth] 0.000002054046424114325 0.000001511768610241783 26.40% 35.87% 1.36x
parent[foo.bar.eth] 0.000004340303165869212 0.0000032017365234420184 26.23% 35.56% 1.36x
parent[sub.sub2.foo.bar.eth] 0.000005137771135402592 0.0000039306286088830426 23.50% 30.71% 1.31x
reverse_domain[0x0000000000000000000000000000000000000000] 0.00005062047535894532 0.000016660774023696225 67.09% 203.83% 3.04x
reverse_domain[0x1111111111111111111111111111111111111111] 0.000050958268569810355 0.000016596696888466434 67.43% 207.04% 3.07x
reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.000050689682519776836 0.000016954896202427012 66.55% 198.97% 2.99x

ens/ens - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address[] 0.000013859628708409309 0.00001379840992439808 0.44% 0.44% 1.00x
address[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000014039439689944888 0.000013947805336406319 0.65% 0.66% 1.01x
address[alice.eth] 0.000014161777097767727 0.000013984619948593394 1.25% 1.27% 1.01x
address[bob.eth] 0.000013934022421489416 0.000014220718030579702 -2.06% -2.02% 0.98x
address[emoji\U0001f468\U0001f3fb.eth] 0.000014562994621873883 0.000013792050962667549 5.29% 5.59% 1.06x
address[subdomain.alice.eth] 0.000014028721484361614 0.000014446787792381165 -2.98% -2.89% 0.97x

ens/normalization - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
normalize_name_ensip15[] 0.00014244495510563605 0.00014334222962643817 -0.63% -0.63% 0.99x
normalize_name_ensip15[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.000143230122180095 0.00014340364998785665 -0.12% -0.12% 1.00x
normalize_name_ensip15[alice.eth] 0.00014208295211075864 0.00014254100529043716 -0.32% -0.32% 1.00x
normalize_name_ensip15[bob.eth] 0.00014143301714558757 0.0001442919949699872 -2.02% -1.98% 0.98x
normalize_name_ensip15[emoji\U0001f468\U0001f3fb.eth] 0.00014309436576290108 0.00014411571064335482 -0.71% -0.71% 0.99x
normalize_name_ensip15[subdomain.alice.eth] 0.00014309971961488235 0.00014362485480962626 -0.37% -0.37% 1.00x

ens/utils - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
address_to_reverse_domain[0x0000000000000000000000000000000000000000] 0.002471693595957662 0.0008106532115212054 67.20% 204.90% 3.05x
address_to_reverse_domain[0x1111111111111111111111111111111111111111] 0.0024797859396981886 0.0008081761663952719 67.41% 206.84% 3.07x
address_to_reverse_domain[0x314159265dD8dbb310642f98f50C066173C1259b] 0.0024810117924039046 0.0008142364343529085 67.18% 204.70% 3.05x
dns_encode_name[] 0.000006593736900505361 0.00000428265291333235 35.05% 53.96% 1.54x
dns_encode_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23268103360001077 0.23495359540002028 -0.98% -0.97% 0.99x
dns_encode_name[alice.eth] 0.011049859709676943 0.010959467934064158 0.82% 0.82% 1.01x
dns_encode_name[bob.eth] 0.0066590602052927364 0.006501768131585095 2.36% 2.42% 1.02x
dns_encode_name[emoji\U0001f468\U0001f3fb.eth] 0.25621701980007855 0.23710803839999245 7.46% 8.06% 1.08x
dns_encode_name[subdomain.alice.eth] 0.03138328233334312 0.031664365968772756 -0.90% -0.89% 0.99x
estimate_auction_start_gas[labels0] 0.00007539913686334784 0.00004723716660734086 37.35% 59.62% 1.60x
estimate_auction_start_gas[labels1] 0.0000752431993644148 0.00004722745312794711 37.23% 59.32% 1.59x
estimate_auction_start_gas[labels2] 0.00006967803145394564 0.000046800523096289936 32.83% 48.88% 1.49x
is_empty_name[ ] 0.00006460217503524666 0.00004376903894441614 32.25% 47.60% 1.48x
is_empty_name[.] 0.00006408781560717227 0.000043811852971716294 31.64% 46.28% 1.46x
is_empty_name[0] 0.00006360174920631854 0.00004317480686732163 32.12% 47.31% 1.47x
is_empty_name[1] 0.00006456801980684641 0.000043879420540284357 32.04% 47.15% 1.47x
is_empty_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.0000636349758348277 0.0000417238856788955 34.43% 52.51% 1.53x
is_empty_name[alice.eth] 0.00006330586447674288 0.000041391698695976154 34.62% 52.94% 1.53x
is_empty_name[bob.eth] 0.00006330794141507129 0.00004088875686040956 35.41% 54.83% 1.55x
is_empty_name[emoji\U0001f468\U0001f3fb.eth] 0.00006358952208202067 0.000041813288930883546 34.25% 52.08% 1.52x
is_empty_name[subdomain.alice.eth] 0.00006310693275848609 0.00004144664431470181 34.32% 52.26% 1.52x
is_none_or_zero_address[] 0.00005087238015178479 0.00004242609200372368 16.60% 19.91% 1.20x
is_none_or_zero_address[0x0000000000000000000000000000000000000000] 0.00005843802378749598 0.00004782354061143191 18.16% 22.20% 1.22x
is_none_or_zero_address[0x1111111111111111111111111111111111111111] 0.000058596050320714697 0.0000488298387516025 16.67% 20.00% 1.20x
is_none_or_zero_address[0x314159265dD8dbb310642f98f50C066173C1259b] 0.00005788472698485829 0.00004881979178085325 15.66% 18.57% 1.19x
is_valid_ens_name[] 0.0000018897895432327763 0.0000014144205215894383 25.15% 33.61% 1.34x
is_valid_ens_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23208767339997394 0.24104795599996579 -3.86% -3.72% 0.96x
is_valid_ens_name[alice.eth] 0.010362881614608929 0.01105823098924135 -6.71% -6.29% 0.94x
is_valid_ens_name[bar] 0.0000019572709075866045 0.0000014434441097076353 26.25% 35.60% 1.36x
is_valid_ens_name[baz] 0.0000019460135006450257 0.0000014455773012661224 25.72% 34.62% 1.35x
is_valid_ens_name[bob.eth] 0.006291600137504361 0.00673180849673158 -7.00% -6.54% 0.93x
is_valid_ens_name[emoji\U0001f468\U0001f3fb.eth] 0.2581791267999961 0.24896684360001017 3.57% 3.70% 1.04x
is_valid_ens_name[foo] 0.000001956758952370038 0.0000014442136540763146 26.19% 35.49% 1.35x
is_valid_ens_name[subdomain.alice.eth] 0.031820312303028855 0.03265591437499893 -2.63% -2.56% 0.97x
is_valid_name[] 0.000001693246803458463 0.0000010756853066768462 36.47% 57.41% 1.57x
is_valid_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23234320280007523 0.23736112300007334 -2.16% -2.11% 0.98x
is_valid_name[alice.eth] 0.010555958649467694 0.01108437997827571 -5.01% -4.77% 0.95x
is_valid_name[bob.eth] 0.006310974993745333 0.006608665419364643 -4.72% -4.50% 0.95x
is_valid_name[emoji\U0001f468\U0001f3fb.eth] 0.25523108399997907 0.24907364160003453 2.41% 2.47% 1.02x
is_valid_name[subdomain.alice.eth] 0.03206128636362805 0.032442876437507095 -1.19% -1.18% 0.99x
label_to_hash[] 0.00013197269119965432 0.0000819788925708573 37.88% 60.98% 1.61x
label_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.2360443961999863 0.23059314900001482 2.31% 2.36% 1.02x
label_to_hash[alice] 0.00771116657251557 0.00777901614172359 -0.88% -0.87% 0.99x
label_to_hash[bob] 0.003476279170729294 0.00342172218055402 1.57% 1.59% 1.02x
label_to_hash[emoji\U0001f468\U0001f3fb] 0.25418363420003515 0.24674054700008127 2.93% 3.02% 1.03x
label_to_hash[xn--fiqs8s] 0.02541606757141662 0.026032136374988114 -2.42% -2.37% 0.98x
normal_name_to_hash[] 0.000001767054828834268 0.0000010477063568890362 40.71% 68.66% 1.69x
normal_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.228495096000006 0.23498821139996834 -2.84% -2.76% 0.97x
normal_name_to_hash[alice.eth] 0.011428949113632247 0.011309357758607112 1.05% 1.06% 1.01x
normal_name_to_hash[bob.eth] 0.007105417751771137 0.0069697376762541605 1.91% 1.95% 1.02x
normal_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.2711223906000214 0.24553405000006023 9.44% 10.42% 1.10x
normal_name_to_hash[subdomain.alice.eth] 0.03182473615626691 0.03232586354836771 -1.57% -1.55% 0.98x
normalize_name[] 0.000008629190459444604 0.0000029356429274264826 65.98% 193.95% 2.94x
normalize_name[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.23217055479999543 0.24016612020009234 -3.44% -3.33% 0.97x
normalize_name[alice.eth] 0.010361784144337078 0.011149023692316585 -7.60% -7.06% 0.93x
normalize_name[bob.eth] 0.00621574233332467 0.006894214449664026 -10.92% -9.84% 0.90x
normalize_name[emoji\U0001f468\U0001f3fb.eth] 0.26034048880005684 0.24898177979998765 4.36% 4.56% 1.05x
normalize_name[subdomain.alice.eth] 0.03230482187879688 0.03253517378126958 -0.71% -0.71% 0.99x
raw_name_to_hash[] 0.000009711578182561138 0.000003129749094436347 67.77% 210.30% 3.10x
raw_name_to_hash[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.4637644305999856 0.46876849100008255 -1.08% -1.07% 0.99x
raw_name_to_hash[alice.eth] 0.022125891456519876 0.022104285644415238 0.10% 0.10% 1.00x
raw_name_to_hash[bob.eth] 0.013516267513495763 0.013477564706651417 0.29% 0.29% 1.00x
raw_name_to_hash[emoji\U0001f468\U0001f3fb.eth] 0.5049103829999695 0.49952392560003317 1.07% 1.08% 1.01x
raw_name_to_hash[subdomain.alice.eth] 0.06353766923528864 0.06536474687499094 -2.88% -2.80% 0.97x
sha3_text[0] 0.00011830363634599103 0.00007465693527284947 36.89% 58.46% 1.58x
sha3_text[1] 0.000117895722116121 0.00007484538153592282 36.52% 57.52% 1.58x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.eth] 0.00012840278561632542 0.00008417826693137715 34.44% 52.54% 1.53x
sha3_text[aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] 0.00012639716520145672 0.00008286740961015786 34.44% 52.53% 1.53x
sha3_text[alice.eth] 0.0001270058483164717 0.0000831996794328621 34.49% 52.65% 1.53x
sha3_text[alice] 0.0001278086487044278 0.00008350288519064966 34.67% 53.06% 1.53x
sha3_text[bob.eth] 0.00012733356276387246 0.00008349562434426162 34.43% 52.50% 1.53x
sha3_text[bob] 0.00012730295984242568 0.00008314212389526087 34.69% 53.11% 1.53x
sha3_text[emoji\U0001f468\U0001f3fb.eth] 0.0001277104855562111 0.00008429221092927422 34.00% 51.51% 1.52x
sha3_text[emoji\U0001f468\U0001f3fb] 0.0001278851292226419 0.00008369051806844461 34.56% 52.81% 1.53x
sha3_text[subdomain.alice.eth] 0.00012801589784766686 0.00008367855403842295 34.63% 52.99% 1.53x
sha3_text[xn--fiqs8s] 0.00012819354487540556 0.00008357389786931385 34.81% 53.39% 1.53x

web3/_utils/abi - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
abi_data_tree 0.0003071909099989322 0.0002796844146841613 8.95% 9.83% 1.10x
fallback_func_abi_exists 0.00025272332201497534 0.000251542440334487 0.47% 0.47% 1.00x
filter_by_argument_name[a] 0.0006721744921846871 0.00038940503816635577 42.07% 72.62% 1.73x
filter_by_argument_name[a+b] 0.0006867484258371079 0.0004172725962934296 39.24% 64.58% 1.65x
filter_by_argument_name[b] 0.0006713296452076736 0.00039173677999855273 41.65% 71.37% 1.71x
filter_by_argument_name[c] 0.000672989861072251 0.0003936678975555288 41.50% 70.95% 1.71x
filter_by_argument_name[notfound] 0.000658069279893734 0.0003851420805721019 41.47% 70.86% 1.71x
filter_by_argument_type[address] 0.0006005327763200101 0.0005864823110685515 2.34% 2.40% 1.02x
filter_by_argument_type[notatype] 0.0005810777194992723 0.0005730604453921948 1.38% 1.40% 1.01x
filter_by_argument_type[string] 0.0005930086375977478 0.0005858244642876245 1.21% 1.23% 1.01x
filter_by_argument_type[uint+address] 0.00059823222148271 0.0005893791861223922 1.48% 1.50% 1.02x
filter_by_argument_type[uint256] 0.0005938360600178495 0.0005792271521155991 2.46% 2.52% 1.03x
filter_by_types[constructor] 0.0000374196173125405 0.00003726566892342939 0.41% 0.41% 1.00x
filter_by_types[event] 0.00003761688234676526 0.00003742334619749846 0.51% 0.52% 1.01x
filter_by_types[fallback] 0.00003765535583602968 0.000036976938657273314 1.80% 1.83% 1.02x
filter_by_types[func+event] 0.000043265463972196255 0.00004223178183945431 2.39% 2.45% 1.02x
filter_by_types[function] 0.00003741977437112595 0.00003747177881132948 -0.14% -0.14% 1.00x
filter_by_types[none] 0.00003591741399519351 0.000035824938198665344 0.26% 0.26% 1.00x
filter_by_types[receive] 0.000038514561543884286 0.00003797138886691161 1.41% 1.43% 1.01x
find_constructor_abi_element_by_type 0.000034422301885356154 0.00003424438590854706 0.52% 0.52% 1.01x
get_abi_element_signature[custom] 0.00005149797966882307 0.00004963168031383628 3.62% 3.76% 1.04x
get_abi_element_signature[fallback] 0.000021764689996373955 0.00002166697270221227 0.45% 0.45% 1.00x
get_abi_element_signature[receive] 0.000029020292089899664 0.000028604005964181662 1.43% 1.46% 1.01x
get_abi_element_signature[transfer] 0.000057014523189860176 0.000055743540255245195 2.23% 2.28% 1.02x
get_name_from_abi_element_identifier[custom] 0.00004075101459589866 0.00003856267810742921 5.37% 5.67% 1.06x
get_name_from_abi_element_identifier[fallback] 0.000012132184459580677 0.000012319799440865727 -1.55% -1.52% 0.98x
get_name_from_abi_element_identifier[func] 0.00004071032787483294 0.00003761286344841385 7.61% 8.24% 1.08x
get_name_from_abi_element_identifier[receive] 0.00001810989934082672 0.000018519507859612234 -2.26% -2.21% 0.98x
get_tuple_type_str_parts[not-tuple] 0.000022682046060520836 0.000022757078683824233 -0.33% -0.33% 1.00x
get_tuple_type_str_parts[one-dim] 0.00007493246304977747 0.00007461023151389575 0.43% 0.43% 1.00x
get_tuple_type_str_parts[plain] 0.000048277794016164964 0.00004803550491428481 0.50% 0.50% 1.01x
get_tuple_type_str_parts[two-dim] 0.00009507423490665503 0.00009523499257635088 -0.17% -0.17% 1.00x
is_address_type[address] 0.00004480630019676401 0.000044304380837918406 1.12% 1.13% 1.01x
is_address_type[array] 0.000045102724422284085 0.0000443856487759493 1.59% 1.62% 1.02x
is_address_type[bool] 0.00004466360137060118 0.0000449066289329297 -0.54% -0.54% 0.99x
is_address_type[bytes] 0.0000445203322126251 0.00004421856449281589 0.68% 0.68% 1.01x
is_address_type[bytes32] 0.00004572885687111971 0.000045420871414107684 0.67% 0.68% 1.01x
is_address_type[bytes33] 0.000045314711570359954 0.00004594769342552518 -1.40% -1.38% 0.99x
is_address_type[empty] 0.00004415173361664558 0.000044378259379172824 -0.51% -0.51% 0.99x
is_address_type[enum] 0.000044259644752224013 0.00004410701440353278 0.34% 0.35% 1.00x
is_address_type[int256] 0.000044668848355997715 0.00004417355473360511 1.11% 1.12% 1.01x
is_address_type[invalid] 0.00004377822519288815 0.00004391111570303697 -0.30% -0.30% 1.00x
is_address_type[string] 0.00004461231651365783 0.00004451544269157042 0.22% 0.22% 1.00x
is_address_type[tuple-array] 0.00004383702969606901 0.000043754532886904865 0.19% 0.19% 1.00x
is_address_type[tuple] 0.00004474431054767912 0.00004450967257805447 0.52% 0.53% 1.01x
is_address_type[uint256] 0.000045954910492874056 0.0000458765138569066 0.17% 0.17% 1.00x
is_array_type[address] 0.0003869708065125282 0.000398569453245398 -3.00% -2.91% 0.97x
is_array_type[array] 0.000400994092265254 0.0004170033437915312 -3.99% -3.84% 0.96x
is_array_type[bool] 0.00035918443714747406 0.00036632688655605225 -1.99% -1.95% 0.98x
is_array_type[bytes] 0.0003663613891366188 0.0003811856723036352 -4.05% -3.89% 0.96x
is_array_type[bytes32] 0.0003896128339839134 0.00039660433415699293 -1.79% -1.76% 0.98x
is_array_type[bytes33] 0.00038974487691172837 0.0004001968229461137 -2.68% -2.61% 0.97x
is_array_type[empty] 0.00029674057159696153 0.00030403693001520107 -2.46% -2.40% 0.98x
is_array_type[enum] 0.00037558423745819784 0.000387034571915447 -3.05% -2.96% 0.97x
is_array_type[int256] 0.0003734031149935292 0.00039014169078581434 -4.48% -4.29% 0.96x
is_array_type[invalid] 0.00039416428474684683 0.00040765546818407423 -3.42% -3.31% 0.97x
is_array_type[string] 0.00038047250791144096 0.00038912732781135257 -2.27% -2.22% 0.98x
is_array_type[tuple-array] 0.0004039496407002188 0.000413763404397923 -2.43% -2.37% 0.98x
is_array_type[tuple] 0.00036593392035902156 0.0003773187068813785 -3.11% -3.02% 0.97x
is_array_type[uint256] 0.0003899451313318799 0.00039636508025417237 -1.65% -1.62% 0.98x
is_bool_type[address] 0.00004328529535402682 0.0000440980338842069 -1.88% -1.84% 0.98x
is_bool_type[array] 0.00004297698825688631 0.00004379942868513946 -1.91% -1.88% 0.98x
is_bool_type[bool] 0.00004374523291430835 0.000044098870265214144 -0.81% -0.80% 0.99x
is_bool_type[bytes] 0.00004453192136799323 0.00004457082797715898 -0.09% -0.09% 1.00x
is_bool_type[bytes32] 0.000043596264798366455 0.00004443672120788593 -1.93% -1.89% 0.98x
is_bool_type[bytes33] 0.00004412910482968688 0.00004369078183830022 0.99% 1.00% 1.01x
is_bool_type[empty] 0.000044652716614893814 0.00004439417181474828 0.58% 0.58% 1.01x
is_bool_type[enum] 0.00004372867671018212 0.00004399034159194993 -0.60% -0.59% 0.99x
is_bool_type[int256] 0.000044082115623204434 0.000044241581915410314 -0.36% -0.36% 1.00x
is_bool_type[invalid] 0.00004390751321303582 0.00004391707010720194 -0.02% -0.02% 1.00x
is_bool_type[string] 0.000043773910419213 0.00004446365287562443 -1.58% -1.55% 0.98x
is_bool_type[tuple-array] 0.00004389846723524196 0.000043898454049249 0.00% 0.00% 1.00x
is_bool_type[tuple] 0.000044220568162413635 0.00004445704600637208 -0.53% -0.53% 0.99x
is_bool_type[uint256] 0.00004408378214091133 0.00004430091851994511 -0.49% -0.49% 1.00x
is_bytes_type[address] 0.0003046128898013208 0.000307552203467201 -0.96% -0.96% 0.99x
is_bytes_type[array] 0.0003089636508855403 0.0003002162758830576 2.83% 2.91% 1.03x
is_bytes_type[bool] 0.00028028844084760116 0.00027991275800493936 0.13% 0.13% 1.00x
is_bytes_type[bytes] 0.00027761546887928353 0.00027860617066341665 -0.36% -0.36% 1.00x
is_bytes_type[bytes32] 0.0002893512523488428 0.00029900003463908154 -3.33% -3.23% 0.97x
is_bytes_type[bytes33] 0.0003032788418679447 0.0003080694084080179 -1.58% -1.56% 0.98x
is_bytes_type[empty] 0.00027961298822869255 0.00028124910973328254 -0.59% -0.58% 0.99x
is_bytes_type[enum] 0.00028785317703929037 0.0002901046344422564 -0.78% -0.78% 0.99x
is_bytes_type[int256] 0.0002884162613825093 0.0002922645315062619 -1.33% -1.32% 0.99x
is_bytes_type[invalid] 0.00027918772536038105 0.00027888264596497416 0.11% 0.11% 1.00x
is_bytes_type[string] 0.00028957529641897143 0.0002887774280363754 0.28% 0.28% 1.00x
is_bytes_type[tuple-array] 0.0002786709696858666 0.0002844535044736731 -2.08% -2.03% 0.98x
is_bytes_type[tuple] 0.0002786698850605873 0.00027962000055175554 -0.34% -0.34% 1.00x
is_bytes_type[uint256] 0.00029938727502452716 0.00030914396468915235 -3.26% -3.16% 0.97x
is_int_type[address] 0.00020237878144807562 0.00020565191401497325 -1.62% -1.59% 0.98x
is_int_type[array] 0.00020227361476684064 0.0002040373803401552 -0.87% -0.86% 0.99x
is_int_type[bool] 0.00020543445558545315 0.00020575220590121976 -0.15% -0.15% 1.00x
is_int_type[bytes] 0.0002146442558787255 0.000215694260596668 -0.49% -0.49% 1.00x
is_int_type[bytes32] 0.0002026321711203394 0.00020608797564599724 -1.71% -1.68% 0.98x
is_int_type[bytes33] 0.0002059863576012783 0.00020482678204286286 0.56% 0.57% 1.01x
is_int_type[empty] 0.00020543993832921958 0.00020251664371854122 1.42% 1.44% 1.01x
is_int_type[enum] 0.0002290274782487872 0.00023287538713954076 -1.68% -1.65% 0.98x
is_int_type[int256] 0.00023621336408465507 0.0002229931834933147 5.60% 5.93% 1.06x
is_int_type[invalid] 0.00020613191208777518 0.0002015689830878864 2.21% 2.26% 1.02x
is_int_type[string] 0.0002313168245662694 0.00022379085266106008 3.25% 3.36% 1.03x
is_int_type[tuple-array] 0.0002042660140556149 0.00020167098850834008 1.27% 1.29% 1.01x
is_int_type[tuple] 0.00021604777997889015 0.00021620516136880828 -0.07% -0.07% 1.00x
is_int_type[uint256] 0.00020269976658134385 0.00020559277056607725 -1.43% -1.41% 0.99x
is_probably_enum[address] 0.00006672978962682342 0.00006871757422357421 -2.98% -2.89% 0.97x
is_probably_enum[empty] 0.00006136194366560055 0.00006280467282255447 -2.35% -2.30% 0.98x
is_probably_enum[enum] 0.0000664390197141512 0.0000683933439921833 -2.94% -2.86% 0.97x
is_probably_enum[lib-dot] 0.00006849966509841674 0.00006994959090953692 -2.12% -2.07% 0.98x
is_probably_enum[lib-enum] 0.00007608387961840169 0.00007784868435614375 -2.32% -2.27% 0.98x
is_probably_enum[uint256] 0.00006717554347768254 0.00006898172690991095 -2.69% -2.62% 0.97x
is_recognized_type[address] 0.0000801457897058397 0.0000841176811207065 -4.96% -4.72% 0.95x
is_recognized_type[array] 0.00008416616635132595 0.00008922677060828293 -6.01% -5.67% 0.94x
is_recognized_type[bool] 0.00008132143137889252 0.00008391423204553674 -3.19% -3.09% 0.97x
is_recognized_type[bytes] 0.00015128380936730424 0.00015673081654094524 -3.60% -3.48% 0.97x
is_recognized_type[bytes32] 0.00015045725921746794 0.00015734065031415963 -4.57% -4.37% 0.96x
is_recognized_type[bytes33] 0.00013974538565952237 0.00014655883322295523 -4.88% -4.65% 0.95x
is_recognized_type[empty] 0.00006118641623979088 0.0000652413735762325 -6.63% -6.22% 0.94x
is_recognized_type[enum] 0.00008310544046350891 0.00008992943899388474 -8.21% -7.59% 0.92x
is_recognized_type[int256] 0.00012569280534537012 0.00013159744615958696 -4.70% -4.49% 0.96x
is_recognized_type[invalid] 0.0000831919976811549 0.0000900440653825085 -8.24% -7.61% 0.92x
is_recognized_type[string] 0.0001010777764997878 0.00010824953312410014 -7.10% -6.63% 0.93x
is_recognized_type[tuple-array] 0.00008306736164938467 0.00008985434313129504 -8.17% -7.55% 0.92x
is_recognized_type[tuple] 0.00008330543933441069 0.0000901761153600147 -8.25% -7.62% 0.92x
is_recognized_type[uint256] 0.0001265778306866736 0.0001320020342740807 -4.29% -4.11% 0.96x
is_string_type[address] 0.00004426465601739814 0.00004404803694255726 0.49% 0.49% 1.00x
is_string_type[array] 0.00004348866800674682 0.00004342106072471539 0.16% 0.16% 1.00x
is_string_type[bool] 0.000043821769828264665 0.000044408732652977524 -1.34% -1.32% 0.99x
is_string_type[bytes] 0.000044093825589366036 0.000044034525381509794 0.13% 0.13% 1.00x
is_string_type[bytes32] 0.00004401479098747931 0.00004392264591134018 0.21% 0.21% 1.00x
is_string_type[bytes33] 0.000043476668285293215 0.000043580920377532725 -0.24% -0.24% 1.00x
is_string_type[empty] 0.00004413197423930772 0.00004424445051894014 -0.25% -0.25% 1.00x
is_string_type[enum] 0.00004423951439877666 0.00004450890835471312 -0.61% -0.61% 0.99x
is_string_type[int256] 0.00004530057574894448 0.00004540826623267816 -0.24% -0.24% 1.00x
is_string_type[invalid] 0.00004353854366123163 0.00004412195989708705 -1.34% -1.32% 0.99x
is_string_type[string] 0.00004428033179122126 0.000043822288383178037 1.03% 1.05% 1.01x
is_string_type[tuple-array] 0.00004307889889759826 0.000043703260325013795 -1.45% -1.43% 0.99x
is_string_type[tuple] 0.00004415990113056239 0.00004414661377819951 0.03% 0.03% 1.00x
is_string_type[uint256] 0.00004410182145791739 0.00004444858535010254 -0.79% -0.78% 0.99x
is_uint_type[address] 0.00024236656296470322 0.0002310903408182801 4.65% 4.88% 1.05x
is_uint_type[array] 0.00024087691775739555 0.00022092116895922623 8.28% 9.03% 1.09x
is_uint_type[bool] 0.00021924401870198164 0.00020217607730241424 7.78% 8.44% 1.08x
is_uint_type[bytes] 0.00021851742038022466 0.0002033277051216011 6.95% 7.47% 1.07x
is_uint_type[bytes32] 0.00024235053822338427 0.0002199477652336246 9.24% 10.19% 1.10x
is_uint_type[bytes33] 0.0002456828919730212 0.0002278958877367335 7.24% 7.80% 1.08x
is_uint_type[empty] 0.0002188828351732461 0.00020226784190768886 7.59% 8.21% 1.08x
is_uint_type[enum] 0.00023095957075276217 0.0002125026521547923 7.99% 8.69% 1.09x
is_uint_type[int256] 0.00022230880150683223 0.00021540422292065582 3.11% 3.21% 1.03x
is_uint_type[invalid] 0.00021806869748481822 0.00020459689518548193 6.18% 6.58% 1.07x
is_uint_type[string] 0.00023071165409456584 0.0002133534297186287 7.52% 8.14% 1.08x
is_uint_type[tuple-array] 0.00021805672397676138 0.0002025529128666562 7.11% 7.65% 1.08x
is_uint_type[tuple] 0.00021854919899742242 0.00020490140562062813 6.24% 6.66% 1.07x
is_uint_type[uint256] 0.00024939485717837066 0.0002308973838609752 7.42% 8.01% 1.08x
length_of_array_type[dynamic] 0.00016689336120236106 0.00016463616361866483 1.35% 1.37% 1.01x
length_of_array_type[fixed] 0.00017750584574248129 0.00017552404593519796 1.12% 1.13% 1.01x
length_of_array_type[nested] 0.0001862836692375205 0.00018408779383864086 1.18% 1.19% 1.01x
map_abi_data 0.0062895437857037 0.005039939098903662 19.87% 24.79% 1.25x
normalize_event_input_types 0.0004191905678507745 0.0004389921677090597 -4.72% -4.51% 0.95x
receive_func_abi_exists 0.00031951250457689235 0.00031394082689314995 1.74% 1.77% 1.02x
strip_abi_types 0.00160957258074648 0.0015521296369484167 3.57% 3.70% 1.04x
sub_type_of_array_type[nested] 0.00017831205285480254 0.00018559424551845642 -4.08% -3.92% 0.96x
sub_type_of_array_type[simple] 0.0001705435034382158 0.0001741935274993217 -2.14% -2.10% 0.98x

web3/_utils/blocks - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
is_hex_encoded_block_hash[int] 0.00002117911482563822 0.000023147108318797085 -9.29% -8.50% 0.91x
is_hex_encoded_block_hash[invalid-g] 0.00008601581050770748 0.0000625613275474102 27.27% 37.49% 1.37x
is_hex_encoded_block_hash[none] 0.000021240550443384046 0.00002324250920784033 -9.43% -8.61% 0.91x
is_hex_encoded_block_hash[short] 0.0000452889304306018 0.000028638647522295077 36.76% 58.14% 1.58x
is_hex_encoded_block_hash[too-long] 0.000045334163538269125 0.000028749993408514783 36.58% 57.68% 1.58x
is_hex_encoded_block_hash[too-short] 0.000045089613583556646 0.00002880067539323526 36.13% 56.56% 1.57x
is_hex_encoded_block_hash[valid-a] 0.00009510877819092449 0.00007287663357455867 23.38% 30.51% 1.31x
is_hex_encoded_block_hash[valid-f] 0.0000964159553174215 0.0000729411308821063 24.35% 32.18% 1.32x
is_hex_encoded_block_number[int] 0.000020974437998489982 0.000021616681382975573 -3.06% -2.97% 0.97x
is_hex_encoded_block_number[invalid-g] 0.00016751320666008541 0.0002279444833453634 -36.08% -26.51% 0.73x
is_hex_encoded_block_number[max-64-a] 0.00010797350346750902 0.00008238259163638388 23.70% 31.06% 1.31x
is_hex_encoded_block_number[max-64-f] 0.00010779268140537116 0.00008416476920259321 21.92% 28.07% 1.28x
is_hex_encoded_block_number[none] 0.000021080939579997496 0.000021856490367354878 -3.68% -3.55% 0.96x
is_hex_encoded_block_number[small] 0.00009521561503062635 0.00004943662062341478 48.08% 92.60% 1.93x
is_hex_encoded_block_number[too-long] 0.00011030893864021495 0.00006125546567951304 44.47% 80.08% 1.80x
is_predefined_block_number[bytes-latest] 0.000031936093050748 0.000030241860400701956 5.31% 5.60% 1.06x
is_predefined_block_number[bytes-pending] 0.000032211240732269175 0.00003035820635219427 5.75% 6.10% 1.06x
is_predefined_block_number[bytes-random] 0.00003158311169167323 0.000028656415958529022 9.27% 10.21% 1.10x
is_predefined_block_number[int] 0.00003569883024208729 0.000025010827250985876 29.94% 42.73% 1.43x
is_predefined_block_number[none] 0.0001244163727701212 0.00021374624640942944 -71.80% -41.79% 0.58x
is_predefined_block_number[object] 0.00015593648092161584 0.0002464889528534011 -58.07% -36.74% 0.63x
is_predefined_block_number[str-earliest] 0.000013830034523909047 0.000010878830995555137 21.34% 27.13% 1.27x
is_predefined_block_number[str-finalized] 0.000013982584247675128 0.000010798154608960863 22.77% 29.49% 1.29x
is_predefined_block_number[str-foo] 0.000013883058263008242 0.000010691755838911704 22.99% 29.85% 1.30x
is_predefined_block_number[str-latest] 0.000013840207819466257 0.000010866899757101857 21.48% 27.36% 1.27x
is_predefined_block_number[str-pending] 0.00001377142582688506 0.000010871439149278763 21.06% 26.68% 1.27x
is_predefined_block_number[str-safe] 0.000013935589191598982 0.000010722720450489751 23.06% 29.96% 1.30x
select_method_for_block_identifier[hash-bytes] 0.00005175053445609793 0.00004164425748628694 19.53% 24.27% 1.24x
select_method_for_block_identifier[hash-hexstr] 0.00012965428165232295 0.00009120901271642882 29.65% 42.15% 1.42x
select_method_for_block_identifier[invalid-none] 0.0009035709815187834 0.0010545257886310434 -16.71% -14.31% 0.86x
select_method_for_block_identifier[invalid-object] 0.0009561493396983619 0.0011050817576043286 -15.58% -13.48% 0.87x
select_method_for_block_identifier[number-hexstr] 0.00017751810631155365 0.00008744933915280981 50.74% 103.00% 2.03x
select_method_for_block_identifier[number-int] 0.00011120901564485603 0.00005649701342975926 49.20% 96.84% 1.97x
select_method_for_block_identifier[predefined-bytes] 0.00004816614610379573 0.000043373147105705993 9.95% 11.05% 1.11x
select_method_for_block_identifier[predefined-str] 0.00002681624835796551 0.000020651240599035906 22.99% 29.85% 1.30x

web3/_utils/datatypes - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
PropertyCheckingFactory[big-invalid] 0.0004644974336123155 0.0005374171287851532 -15.70% -13.57% 0.86x
PropertyCheckingFactory[big-valid] 0.0004672593501460783 0.0005348611426896148 -14.47% -12.64% 0.87x
PropertyCheckingFactory[inheritance] 0.000981565157576829 0.0009451990507659764 3.70% 3.85% 1.04x
PropertyCheckingFactory[invalid] 0.0004748118147065744 0.0005389133096473433 -13.50% -11.89% 0.88x
PropertyCheckingFactory[multi-normalizer] 0.0004686296261946112 0.0005383324639694387 -14.87% -12.95% 0.87x
PropertyCheckingFactory[multi-prop] 0.00047275019717863396 0.0005362031535037563 -13.42% -11.83% 0.88x
PropertyCheckingFactory[normalized] 0.00047195828502204245 0.0005405796535974463 -14.54% -12.69% 0.87x
PropertyCheckingFactory[valid] 0.0012059802867769613 0.00098807007381597 18.07% 22.05% 1.22x
verify_attr[empty] 0.00009759190718940053 0.000160730582552669 -64.70% -39.28% 0.61x
verify_attr[found-end] 0.000012534276351985867 0.000010947250905613332 12.66% 14.50% 1.14x
verify_attr[found-start] 0.000009504747171690643 0.000008256646649672437 13.13% 15.12% 1.15x
verify_attr[large-found] 0.00012590950986875502 0.00011913689915307316 5.38% 5.68% 1.06x
verify_attr[large-notfound] 0.00019527846225222216 0.0002620992941871787 -34.22% -25.49% 0.75x
verify_attr[notfound] 0.00010144338081531605 0.00016333498674258015 -61.01% -37.89% 0.62x

web3/_utils/http - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
construct_user_agent 0.0006261590083095016 0.000636401295230423 -1.64% -1.61% 0.98x

web3/_utils/math - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
percentile[10-median] 0.00007847973759406291 0.000023094762107924134 70.57% 239.82% 3.40x
percentile[100-90th] 0.00011384533611490349 0.00005465953932983813 51.99% 108.28% 2.08x
percentile[100k-99th] 0.038065067259283214 0.03661117696430795 3.82% 3.97% 1.04x
percentile[100k-median] 0.03874952174074948 0.03652632907404007 5.74% 6.09% 1.06x
percentile[10k-10th] 0.004211595785708567 0.0036650138888843584 12.98% 14.91% 1.15x
percentile[10k-99th] 0.003909979383453724 0.003749359545787935 4.11% 4.28% 1.04x
percentile[10k-median] 0.004578814639263664 0.003637574660595512 20.56% 25.88% 1.26x
percentile[1k-99th] 0.0005012233797935947 0.0004125900463245122 17.68% 21.48% 1.21x
percentile[1M-median] 0.5457603990000279 0.561632150000014 -2.91% -2.83% 0.97x

web3/_utils/type_conversion - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
to_bytes_if_hex[bytes] 0.000013718589930182827 0.000007410658654046822 45.98% 85.12% 1.85x
to_bytes_if_hex[empty-str] 0.00030580075349651627 0.00003766174606838998 87.68% 711.97% 8.12x
to_bytes_if_hex[hexstr] 0.0003338568728757747 0.00004683974019143375 85.97% 612.76% 7.13x
to_bytes_if_hex[large-hex] 0.0003416218864309162 0.00005119649900016577 85.01% 567.28% 6.67x
to_bytes_if_hex[non-prefixed-hex] 0.0003205135714327478 0.00004381215843202368 86.33% 631.56% 7.32x
to_bytes_if_hex[nothex] 0.000419426126007525 0.0002602793571621957 37.94% 61.14% 1.61x
to_bytes_if_hex[unicode] 0.00043023696817706095 0.000274427987039796 36.21% 56.78% 1.57x
to_bytes_if_hex[zero] 0.0003356167745511766 0.000047214930100696045 85.93% 610.83% 7.11x
to_hex_if_bytes[bytes] 0.00022792600910686352 0.0000508542597855662 77.69% 348.19% 4.48x
to_hex_if_bytes[empty-bytes] 0.00021626120232001665 0.00003933067466176322 81.81% 449.85% 5.50x
to_hex_if_bytes[empty-str] 0.0001021372069006572 0.00018534960007889902 -81.47% -44.89% 0.55x
to_hex_if_bytes[hexstr] 0.0002761633328531545 0.00002438218639671004 91.17% 1032.64% 11.33x
to_hex_if_bytes[large-bytes] 0.0002338291936491334 0.000052061151535473184 77.74% 349.14% 4.49x
to_hex_if_bytes[non-prefixed-hex] 0.00010341633318570411 0.00018777402684337156 -81.57% -44.93% 0.55x
to_hex_if_bytes[not-hex] 0.00010480489536085696 0.00018832165018321359 -79.69% -44.35% 0.56x
to_hex_if_bytes[unicode] 0.00010677958524848925 0.0001932420624408437 -80.97% -44.74% 0.55x

web3/_utils/utility_methods - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
all_in_dict[all-in] 0.00029838351859851384 0.00009902995829594642 66.81% 201.31% 3.01x
all_in_dict[empty-dict] 0.0002670019921327574 0.00008418510074077086 68.47% 217.16% 3.17x
all_in_dict[empty-list] 0.0002574056970150788 0.00008617401866482696 66.52% 198.70% 2.99x
all_in_dict[mixed-types] 0.00030432707921780383 0.00010103772085203165 66.80% 201.20% 3.01x
all_in_dict[no-overlap] 0.0002768758164470275 0.00008663933423749109 68.71% 219.57% 3.20x
all_in_dict[none-in] 0.00027710044035212674 0.00008580368913724071 69.04% 222.95% 3.23x
all_in_dict[one-in] 0.0002781390691499258 0.0000919977374266821 66.92% 202.33% 3.02x
all_in_dict[partial-overlap] 0.00031509748000008414 0.00009985969554807029 68.31% 215.54% 3.16x
all_in_dict[value-none] 0.00027677394289742384 0.00009271270366068399 66.50% 198.53% 2.99x
any_in_dict[all-in] 0.0002778181633591006 0.00009154078718860439 67.05% 203.49% 3.03x
any_in_dict[empty-dict] 0.0002933836646762081 0.00009363876049454913 68.08% 213.31% 3.13x
any_in_dict[empty-list] 0.00025915634761024926 0.00008496800292245731 67.21% 205.00% 3.05x
any_in_dict[mixed-types] 0.0002760761616495625 0.00008971432808718452 67.50% 207.73% 3.08x
any_in_dict[no-overlap] 0.00031349214252595064 0.00010371008573554384 66.92% 202.28% 3.02x
any_in_dict[none-in] 0.0002797409831428013 0.00009328384498474566 66.65% 199.88% 3.00x
any_in_dict[one-in] 0.0002751777214539901 0.00009016151745646238 67.24% 205.21% 3.05x
any_in_dict[partial-overlap] 0.00027470750658397834 0.00009069222321612719 66.99% 202.90% 3.03x
any_in_dict[value-none] 0.00027455948488868943 0.00009046423372420047 67.05% 203.50% 3.04x
either_set_is_a_subset[both-empty] 0.00016582695509122976 0.00014617897015125104 11.85% 13.44% 1.13x
either_set_is_a_subset[empty-set1] 0.00016545293046254326 0.00014977001505269262 9.48% 10.47% 1.10x
either_set_is_a_subset[empty-set2] 0.00025273653000069957 0.0002441682818808658 3.39% 3.51% 1.04x
either_set_is_a_subset[identical] 0.00017876374190711313 0.00016080826835293682 10.04% 11.17% 1.11x
either_set_is_a_subset[mixed-types] 0.000180071218283888 0.0001616982137993905 10.20% 11.36% 1.11x
either_set_is_a_subset[not-subset] 0.00027016375837286214 0.000251503950951314 6.91% 7.42% 1.07x
either_set_is_a_subset[partial-overlap] 0.0002908922659705343 0.00026611646714823605 8.52% 9.31% 1.09x
either_set_is_a_subset[subset] 0.00018050143971672406 0.00016021977121760846 11.24% 12.66% 1.13x
either_set_is_a_subset[superset] 0.0002819983774936496 0.00027549898926260564 2.30% 2.36% 1.02x
none_in_dict[all-in] 0.00029956617811122165 0.00009105675171575205 69.60% 228.99% 3.29x
none_in_dict[empty-dict] 0.0003121334754863409 0.00009374946833161069 69.96% 232.94% 3.33x
none_in_dict[empty-list] 0.0002740083692363117 0.0000865922601026309 68.40% 216.44% 3.16x
none_in_dict[mixed-types] 0.0002945191720230192 0.00009001954565258282 69.44% 227.17% 3.27x
none_in_dict[no-overlap] 0.00033207799720273495 0.00010503576131242413 68.37% 216.16% 3.16x
none_in_dict[none-in] 0.00029748452927161247 0.00009383809363202297 68.46% 217.02% 3.17x
none_in_dict[one-in] 0.0002955882284951359 0.00009006982190589016 69.53% 228.18% 3.28x
none_in_dict[partial-overlap] 0.00029797642878205043 0.00009044309239340457 69.65% 229.46% 3.29x
none_in_dict[value-none] 0.0002960174025538268 0.00008991412977744926 69.63% 229.22% 3.29x

web3/datastructures - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
attributedict_eq 0.0014409377729173317 0.001450058399297532 -0.63% -0.63% 0.99x
attributedict_hash[flat] 0.0010940483692299962 0.0010978232367310598 -0.35% -0.34% 1.00x
attributedict_hash[nested] 0.0017092825819945575 0.0017008571485964887 0.49% 0.50% 1.00x
attributedict_init[empty] 0.00008603343060095883 0.00008461126427041273 1.65% 1.68% 1.02x
attributedict_init[large] 0.00012592457386232335 0.00012606335523254603 -0.11% -0.11% 1.00x
attributedict_init[small] 0.00009166210284866083 0.00008985829319360606 1.97% 2.01% 1.02x
mutableattributedict_delitem 0.0003887199411007881 0.0003868262011466916 0.49% 0.49% 1.00x
mutableattributedict_setitem 0.0003214305969401441 0.00031886665048485387 0.80% 0.80% 1.01x
namedelementonion_add 0.027410303533315528 0.02547506293103652 7.06% 7.60% 1.08x
namedelementonion_as_tuple_of_middleware 0.0001504821240764863 0.00015187050878860632 -0.92% -0.91% 0.99x
namedelementonion_contains 0.000029980135314503632 0.0000295021786555005 1.59% 1.62% 1.02x
namedelementonion_getitem 0.000027602572950502713 0.00002742965199366645 0.63% 0.63% 1.01x
namedelementonion_init[callables2] 0.0001273797021369824 0.00012661179535428682 0.60% 0.61% 1.01x
namedelementonion_init[callables3] 0.00016149809235504914 0.00016073258912604704 0.47% 0.48% 1.00x
namedelementonion_init[empty] 0.000044570246673246996 0.0000443962727004195 0.39% 0.39% 1.00x
namedelementonion_inject 0.0358542781686828 0.02813335551578635 21.53% 27.44% 1.27x
namedelementonion_iter 0.0001554304226605664 0.0001555184807157469 -0.06% -0.06% 1.00x
namedelementonion_remove 0.0006844162596447127 0.0006719945625479326 1.81% 1.85% 1.02x
namedelementonion_replace 0.0024548886641711115 0.002426526362073158 1.16% 1.17% 1.01x
readableattributedict_getitem[large] 0.000016299910340273413 0.00001600364314174753 1.82% 1.85% 1.02x
readableattributedict_getitem[small] 0.000015404845982896976 0.000015371003656684136 0.22% 0.22% 1.00x
readableattributedict_init[empty] 0.00005058485932605121 0.000051336067236132905 -1.49% -1.46% 0.99x
readableattributedict_init[large] 0.00008755605483032436 0.0000873397551529065 0.25% 0.25% 1.00x
readableattributedict_init[small] 0.00005582499826264159 0.00005683838216507003 -1.82% -1.78% 0.98x
readableattributedict_recursive[list-in-dict] 0.0008916556165685405 0.0009037099851009946 -1.35% -1.33% 0.99x
readableattributedict_recursive[nested-dict] 0.000928254084942593 0.0009155498009590701 1.37% 1.39% 1.01x
readableattributedict_recursive[set] 0.0004760552245942148 0.00047168737347037706 0.92% 0.93% 1.01x
tupleize_lists_nested[list-in-dict] 0.0008527593375852025 0.0008455673004897279 0.84% 0.85% 1.01x
tupleize_lists_nested[tuple-in-dict] 0.0009321117527305102 0.0009251398139496086 0.75% 0.75% 1.01x

web3/utils/caching - view benchmarks

Function Reference Mean Faster Mean % Change Speedup (%) x Faster Faster
simplecache_cache[10] 0.00034729426394543983 0.0002665088984343601 23.26% 30.31% 1.30x
simplecache_cache[100] 0.002827757605188999 0.0019764900200411255 30.10% 43.07% 1.43x
simplecache_cache[1000] 0.028791440085712695 0.01879109131482016 34.73% 53.22% 1.53x
simplecache_eviction[10] 0.0006018297599270331 0.0006034127572057152 -0.26% -0.26% 1.00x
simplecache_eviction[100] 0.005326958577543191 0.005374353186807939 -0.89% -0.88% 0.99x
simplecache_pop[10] 0.0004625521433544725 0.0003664472108851594 20.78% 26.23% 1.26x
simplecache_pop[100] 0.003916518299215425 0.002915688630169965 25.55% 34.33% 1.34x
simplecache_retrieval[10] 0.00009242470551440625 0.00005628299403092964 39.10% 64.21% 1.64x
simplecache_retrieval[100] 0.0007869759028346922 0.0004320782722152729 45.10% 82.14% 1.82x

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 17, 2025

CodSpeed Performance Report

Merging #132 will not alter performance

Comparing utils (b6c086b) 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.

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