|
1 | | -#### [faster_eth_utils.abi](https://github.com/BobTheBuidler/faster-eth-utils/blob/renovate/cchecksum-0.x/faster_eth_utils/abi.py) - [view benchmarks](https://github.com/BobTheBuidler/faster-eth-utils/blob/renovate/cchecksum-0.x/benchmarks/test_abi_benchmarks.py) |
| 1 | +#### [faster_eth_utils.abi](https://github.com/BobTheBuidler/faster-eth-utils/blob/fix-sdist/faster_eth_utils/abi.py) - [view benchmarks](https://github.com/BobTheBuidler/faster-eth-utils/blob/fix-sdist/benchmarks/test_abi_benchmarks.py) |
2 | 2 |
|
3 | 3 | | Function | Reference Mean | Faster Mean | % Change | Speedup (%) | x Faster | Faster | |
4 | 4 | |----------|---------------|-------------|----------|-------------|----------|--------| |
5 | | -| `abi_to_signature[constructor]` | 0.00015405906586066237 | 7.681458063993708e-05 | 50.14% | 100.56% | 2.01x | ✅ | |
6 | | -| `abi_to_signature[event]` | 0.00020078032057638763 | 9.19450772527989e-05 | 54.21% | 118.37% | 2.18x | ✅ | |
7 | | -| `abi_to_signature[fallback]` | 5.954666687975097e-05 | 5.2618771417471714e-05 | 11.63% | 13.17% | 1.13x | ✅ | |
8 | | -| `abi_to_signature[function]` | 0.00018048357276876249 | 8.975428345050478e-05 | 50.27% | 101.09% | 2.01x | ✅ | |
9 | | -| `abi_to_signature[receive]` | 5.99434271097968e-05 | 5.18990335191118e-05 | 13.42% | 15.50% | 1.16x | ✅ | |
10 | | -| `collapse_if_tuple[constructor]` | 1.7635906590644753e-05 | 5.284956805598711e-06 | 70.03% | 233.70% | 3.34x | ✅ | |
11 | | -| `collapse_if_tuple[event]` | 1.7860141823757865e-05 | 5.302223727522731e-06 | 70.31% | 236.84% | 3.37x | ✅ | |
12 | | -| `collapse_if_tuple[fallback]` | 1.7477595404434122e-05 | 5.452333050094708e-06 | 68.80% | 220.55% | 3.21x | ✅ | |
13 | | -| `collapse_if_tuple[function]` | 1.7745849577965494e-05 | 5.377342739888553e-06 | 69.70% | 230.01% | 3.30x | ✅ | |
14 | | -| `collapse_if_tuple[receive]` | 1.74761618861362e-05 | 5.454484379815161e-06 | 68.79% | 220.40% | 3.20x | ✅ | |
15 | | -| `event_abi_to_log_topic[constructor]` | 0.0005195765808545144 | 0.000256139502238637 | 50.70% | 102.85% | 2.03x | ✅ | |
16 | | -| `event_abi_to_log_topic[event]` | 0.0005638742253870216 | 0.0002723157227544827 | 51.71% | 107.07% | 2.07x | ✅ | |
17 | | -| `event_abi_to_log_topic[fallback]` | 0.0004156334509044405 | 0.00022905221991049437 | 44.89% | 81.46% | 1.81x | ✅ | |
18 | | -| `event_abi_to_log_topic[function]` | 0.0005482511862568732 | 0.00027199922008547424 | 50.39% | 101.56% | 2.02x | ✅ | |
19 | | -| `event_abi_to_log_topic[receive]` | 0.00041879891677452566 | 0.00023085784128100154 | 44.88% | 81.41% | 1.81x | ✅ | |
20 | | -| `event_signature_to_log_topic[Approval]` | 0.00035034572171257415 | 0.00016817586962501873 | 52.00% | 108.32% | 2.08x | ✅ | |
21 | | -| `event_signature_to_log_topic[Transfer]` | 0.0003483686406831503 | 0.00016884216094761417 | 51.53% | 106.33% | 2.06x | ✅ | |
22 | | -| `filter_abi_by_name[nonexistent-no-match]` | 2.4435869990581172e-05 | 1.5238253084544934e-05 | 37.64% | 60.36% | 1.60x | ✅ | |
23 | | -| `filter_abi_by_name[transfer-match]` | 2.6612259200271254e-05 | 1.7973373554840048e-05 | 32.46% | 48.06% | 1.48x | ✅ | |
24 | | -| `filter_abi_by_type[error-not-present]` | 0.0004434156361411037 | 1.5004947782352427e-05 | 96.62% | 2855.13% | 29.55x | ✅ | |
25 | | -| `filter_abi_by_type[event-present]` | 0.0003798105116947303 | 1.5696467811862846e-05 | 95.87% | 2319.72% | 24.20x | ✅ | |
26 | | -| `filter_abi_by_type[function-present]` | 9.66614528950427e-05 | 1.4046039236740302e-05 | 85.47% | 588.18% | 6.88x | ✅ | |
27 | | -| `function_abi_to_4byte_selector[constructor]` | 0.0005322638708946348 | 0.00025888167221113157 | 51.36% | 105.60% | 2.06x | ✅ | |
28 | | -| `function_abi_to_4byte_selector[event]` | 0.0005797996341762288 | 0.00027478426546392886 | 52.61% | 111.00% | 2.11x | ✅ | |
29 | | -| `function_abi_to_4byte_selector[fallback]` | 0.00042410647017248585 | 0.00023424481379148338 | 44.77% | 81.05% | 1.81x | ✅ | |
30 | | -| `function_abi_to_4byte_selector[function]` | 0.0005608122284827467 | 0.0002751389321834399 | 50.94% | 103.83% | 2.04x | ✅ | |
31 | | -| `function_abi_to_4byte_selector[receive]` | 0.0004249986439814298 | 0.00023486481995180434 | 44.74% | 80.95% | 1.81x | ✅ | |
32 | | -| `function_signature_to_4byte_selector[approve]` | 0.00035796361664145197 | 0.00017249681614110195 | 51.81% | 107.52% | 2.08x | ✅ | |
33 | | -| `function_signature_to_4byte_selector[mint]` | 0.0003632525450564824 | 0.00017237774610568047 | 52.55% | 110.73% | 2.11x | ✅ | |
34 | | -| `function_signature_to_4byte_selector[transfer]` | 0.00036302146573145415 | 0.00017260216137724934 | 52.45% | 110.32% | 2.10x | ✅ | |
35 | | -| `get_abi_input_names[approve]` | 6.457093646291928e-05 | 1.8394323488201047e-05 | 71.51% | 251.04% | 3.51x | ✅ | |
36 | | -| `get_abi_input_names[mint]` | 6.43292181580079e-05 | 1.837162493163022e-05 | 71.44% | 250.16% | 3.50x | ✅ | |
37 | | -| `get_abi_input_names[transfer]` | 6.524045427360794e-05 | 1.826213295484951e-05 | 72.01% | 257.24% | 3.57x | ✅ | |
38 | | -| `get_abi_input_types[approve]` | 9.468152096719017e-05 | 2.085589248868514e-05 | 77.97% | 353.98% | 4.54x | ✅ | |
39 | | -| `get_abi_input_types[mint]` | 9.41380651012734e-05 | 2.1096686897760435e-05 | 77.59% | 346.22% | 4.46x | ✅ | |
40 | | -| `get_abi_input_types[transfer]` | 9.476740827408145e-05 | 2.1013155270489754e-05 | 77.83% | 350.99% | 4.51x | ✅ | |
41 | | -| `get_abi_output_names[approve]` | 5.8293316595544485e-05 | 1.5751661376644903e-05 | 72.98% | 270.08% | 3.70x | ✅ | |
42 | | -| `get_abi_output_names[mint]` | 5.806263667000815e-05 | 1.574841181950774e-05 | 72.88% | 268.69% | 3.69x | ✅ | |
43 | | -| `get_abi_output_names[transfer]` | 5.990994249570273e-05 | 1.577132201767388e-05 | 73.67% | 279.87% | 3.80x | ✅ | |
44 | | -| `get_abi_output_types[approve]` | 7.519802346012972e-05 | 1.810429874567078e-05 | 75.92% | 315.36% | 4.15x | ✅ | |
45 | | -| `get_abi_output_types[mint]` | 7.487787636040558e-05 | 1.831602623686933e-05 | 75.54% | 308.81% | 4.09x | ✅ | |
46 | | -| `get_abi_output_types[transfer]` | 7.48720636901673e-05 | 1.828288548494934e-05 | 75.58% | 309.52% | 4.10x | ✅ | |
47 | | -| `get_aligned_abi_inputs[approve]` | 0.0003699952382600247 | 0.0002037855888811636 | 44.92% | 81.56% | 1.82x | ✅ | |
48 | | -| `get_aligned_abi_inputs[mint]` | 0.0003748021155471334 | 0.00020414810159851137 | 45.53% | 83.59% | 1.84x | ✅ | |
49 | | -| `get_aligned_abi_inputs[transfer]` | 0.0003757977711081787 | 0.00020289386795842177 | 46.01% | 85.22% | 1.85x | ✅ | |
50 | | -| `get_all_event_abis[empty]` | 0.00036532973108285974 | 1.05195601875073e-05 | 97.12% | 3372.86% | 34.73x | ✅ | |
51 | | -| `get_all_event_abis[function-and-event]` | 0.00037715552927499655 | 1.5653745302134452e-05 | 95.85% | 2309.36% | 24.09x | ✅ | |
52 | | -| `get_all_function_abis[empty]` | 8.574220140381952e-05 | 8.726614805216176e-06 | 89.82% | 882.54% | 9.83x | ✅ | |
53 | | -| `get_all_function_abis[function-and-event]` | 9.780682536818658e-05 | 1.3674322745076593e-05 | 86.02% | 615.26% | 7.15x | ✅ | |
54 | | -| `get_normalized_abi_inputs[approve]` | 0.00010074294721634332 | 1.7622591598357757e-05 | 82.51% | 471.67% | 5.72x | ✅ | |
55 | | -| `get_normalized_abi_inputs[mint]` | 0.00010174967746467482 | 1.79700998476897e-05 | 82.34% | 466.22% | 5.66x | ✅ | |
56 | | -| `get_normalized_abi_inputs[transfer]` | 0.00010027208305492011 | 1.777915588719366e-05 | 82.27% | 463.99% | 5.64x | ✅ | |
| 5 | +| `abi_to_signature[constructor]` | 0.00015453990750504006 | 7.746760902069451e-05 | 49.87% | 99.49% | 1.99x | ✅ | |
| 6 | +| `abi_to_signature[event]` | 0.0001949584986137125 | 9.403308404350527e-05 | 51.77% | 107.33% | 2.07x | ✅ | |
| 7 | +| `abi_to_signature[fallback]` | 5.854873313732039e-05 | 5.33031575054541e-05 | 8.96% | 9.84% | 1.10x | ✅ | |
| 8 | +| `abi_to_signature[function]` | 0.00018288792550154512 | 9.003669775238037e-05 | 50.77% | 103.13% | 2.03x | ✅ | |
| 9 | +| `abi_to_signature[receive]` | 5.9596578108434554e-05 | 5.2303381392493315e-05 | 12.24% | 13.94% | 1.14x | ✅ | |
| 10 | +| `collapse_if_tuple[constructor]` | 1.816319142043428e-05 | 5.386662995824064e-06 | 70.34% | 237.19% | 3.37x | ✅ | |
| 11 | +| `collapse_if_tuple[event]` | 1.807476429447159e-05 | 5.450479651983334e-06 | 69.84% | 231.62% | 3.32x | ✅ | |
| 12 | +| `collapse_if_tuple[fallback]` | 1.8498139816937038e-05 | 5.403130853982803e-06 | 70.79% | 242.36% | 3.42x | ✅ | |
| 13 | +| `collapse_if_tuple[function]` | 1.8440380342581495e-05 | 5.367126440059513e-06 | 70.89% | 243.58% | 3.44x | ✅ | |
| 14 | +| `collapse_if_tuple[receive]` | 1.962603821785679e-05 | 5.396843706381131e-06 | 72.50% | 263.66% | 3.64x | ✅ | |
| 15 | +| `event_abi_to_log_topic[constructor]` | 0.0005355792046619561 | 0.00025612120768224087 | 52.18% | 109.11% | 2.09x | ✅ | |
| 16 | +| `event_abi_to_log_topic[event]` | 0.0005752631565104331 | 0.00027350097233101793 | 52.46% | 110.33% | 2.10x | ✅ | |
| 17 | +| `event_abi_to_log_topic[fallback]` | 0.0004314858121184869 | 0.00023199176699049075 | 46.23% | 85.99% | 1.86x | ✅ | |
| 18 | +| `event_abi_to_log_topic[function]` | 0.0005508269745299552 | 0.0002696125890167324 | 51.05% | 104.30% | 2.04x | ✅ | |
| 19 | +| `event_abi_to_log_topic[receive]` | 0.00042369954995638955 | 0.00023026899905114967 | 45.65% | 84.00% | 1.84x | ✅ | |
| 20 | +| `event_signature_to_log_topic[Approval]` | 0.0003514205174569863 | 0.00016669025325947455 | 52.57% | 110.82% | 2.11x | ✅ | |
| 21 | +| `event_signature_to_log_topic[Transfer]` | 0.0003444905964413388 | 0.00016603300123037938 | 51.80% | 107.48% | 2.07x | ✅ | |
| 22 | +| `filter_abi_by_name[nonexistent-no-match]` | 2.387173573509566e-05 | 1.5265015016227377e-05 | 36.05% | 56.38% | 1.56x | ✅ | |
| 23 | +| `filter_abi_by_name[transfer-match]` | 2.6399894071667683e-05 | 1.8154586175656892e-05 | 31.23% | 45.42% | 1.45x | ✅ | |
| 24 | +| `filter_abi_by_type[error-not-present]` | 0.0004759891831265011 | 1.6012679208613043e-05 | 96.64% | 2872.58% | 29.73x | ✅ | |
| 25 | +| `filter_abi_by_type[event-present]` | 0.00039905612116108606 | 1.554149050521045e-05 | 96.11% | 2467.68% | 25.68x | ✅ | |
| 26 | +| `filter_abi_by_type[function-present]` | 0.00010112152102035306 | 1.3820797945235967e-05 | 86.33% | 631.66% | 7.32x | ✅ | |
| 27 | +| `function_abi_to_4byte_selector[constructor]` | 0.0005364761564663792 | 0.00025942928294783556 | 51.64% | 106.79% | 2.07x | ✅ | |
| 28 | +| `function_abi_to_4byte_selector[event]` | 0.000579661952231482 | 0.00027569631023567924 | 52.44% | 110.25% | 2.10x | ✅ | |
| 29 | +| `function_abi_to_4byte_selector[fallback]` | 0.00043612432712024715 | 0.00023282666022706036 | 46.61% | 87.32% | 1.87x | ✅ | |
| 30 | +| `function_abi_to_4byte_selector[function]` | 0.0005738921568749866 | 0.0002736209801241696 | 52.32% | 109.74% | 2.10x | ✅ | |
| 31 | +| `function_abi_to_4byte_selector[receive]` | 0.0004360809045837292 | 0.0002320731851409127 | 46.78% | 87.91% | 1.88x | ✅ | |
| 32 | +| `function_signature_to_4byte_selector[approve]` | 0.00035276363104679156 | 0.00016993508948307266 | 51.83% | 107.59% | 2.08x | ✅ | |
| 33 | +| `function_signature_to_4byte_selector[mint]` | 0.00035371417349140693 | 0.0001696639852967559 | 52.03% | 108.48% | 2.08x | ✅ | |
| 34 | +| `function_signature_to_4byte_selector[transfer]` | 0.0003550666446085796 | 0.00017248360417892878 | 51.42% | 105.86% | 2.06x | ✅ | |
| 35 | +| `get_abi_input_names[approve]` | 6.435872709827136e-05 | 1.8106760430979496e-05 | 71.87% | 255.44% | 3.55x | ✅ | |
| 36 | +| `get_abi_input_names[mint]` | 6.475469410371196e-05 | 1.810111130709276e-05 | 72.05% | 257.74% | 3.58x | ✅ | |
| 37 | +| `get_abi_input_names[transfer]` | 6.546480707429362e-05 | 1.7918889267896947e-05 | 72.63% | 265.34% | 3.65x | ✅ | |
| 38 | +| `get_abi_input_types[approve]` | 9.631392831607265e-05 | 2.0618832467050824e-05 | 78.59% | 367.12% | 4.67x | ✅ | |
| 39 | +| `get_abi_input_types[mint]` | 9.58657749009967e-05 | 2.0524849409672622e-05 | 78.59% | 367.07% | 4.67x | ✅ | |
| 40 | +| `get_abi_input_types[transfer]` | 9.512812505216395e-05 | 2.063492156439948e-05 | 78.31% | 361.01% | 4.61x | ✅ | |
| 41 | +| `get_abi_output_names[approve]` | 5.814439528731644e-05 | 1.5787728269531885e-05 | 72.85% | 268.29% | 3.68x | ✅ | |
| 42 | +| `get_abi_output_names[mint]` | 5.8937752955435924e-05 | 1.5590446348232827e-05 | 73.55% | 278.04% | 3.78x | ✅ | |
| 43 | +| `get_abi_output_names[transfer]` | 5.798771836677306e-05 | 1.56374149176409e-05 | 73.03% | 270.83% | 3.71x | ✅ | |
| 44 | +| `get_abi_output_types[approve]` | 7.432940608203146e-05 | 1.8271263257638567e-05 | 75.42% | 306.81% | 4.07x | ✅ | |
| 45 | +| `get_abi_output_types[mint]` | 7.445826674470533e-05 | 1.8492426197190453e-05 | 75.16% | 302.64% | 4.03x | ✅ | |
| 46 | +| `get_abi_output_types[transfer]` | 7.44549985194049e-05 | 1.8094371821060754e-05 | 75.70% | 311.48% | 4.11x | ✅ | |
| 47 | +| `get_aligned_abi_inputs[approve]` | 0.0003877924197184145 | 0.0002142007101695417 | 44.76% | 81.04% | 1.81x | ✅ | |
| 48 | +| `get_aligned_abi_inputs[mint]` | 0.00038967156788146827 | 0.00021391271069603576 | 45.10% | 82.16% | 1.82x | ✅ | |
| 49 | +| `get_aligned_abi_inputs[transfer]` | 0.0003915816548671044 | 0.0002134958916255976 | 45.48% | 83.41% | 1.83x | ✅ | |
| 50 | +| `get_all_event_abis[empty]` | 0.000385619567534415 | 1.0545336809852713e-05 | 97.27% | 3556.78% | 36.57x | ✅ | |
| 51 | +| `get_all_event_abis[function-and-event]` | 0.0004038125768565075 | 1.5600960979418355e-05 | 96.14% | 2488.38% | 25.88x | ✅ | |
| 52 | +| `get_all_function_abis[empty]` | 9.140214554739966e-05 | 8.73360432642799e-06 | 90.44% | 946.56% | 10.47x | ✅ | |
| 53 | +| `get_all_function_abis[function-and-event]` | 0.00010254689205395622 | 1.3331274826442902e-05 | 87.00% | 669.22% | 7.69x | ✅ | |
| 54 | +| `get_normalized_abi_inputs[approve]` | 0.00010291524806614366 | 1.7796744209022218e-05 | 82.71% | 478.28% | 5.78x | ✅ | |
| 55 | +| `get_normalized_abi_inputs[mint]` | 0.00010212922444786987 | 1.768319909656686e-05 | 82.69% | 477.55% | 5.78x | ✅ | |
| 56 | +| `get_normalized_abi_inputs[transfer]` | 0.00010427460893050659 | 1.7864238311905935e-05 | 82.87% | 483.71% | 5.84x | ✅ | |
0 commit comments