|
1 | | -#### [faster_eth_utils.abi](https://github.com/BobTheBuidler/faster-eth-utils/blob/renovate/pytest-benchmark-5.x/faster_eth_utils/abi.py) - [view benchmarks](https://github.com/BobTheBuidler/faster-eth-utils/blob/renovate/pytest-benchmark-5.x/benchmarks/test_abi_benchmarks.py) |
| 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) |
2 | 2 |
|
3 | 3 | | Function | Reference Mean | Faster Mean | % Change | Speedup (%) | x Faster | Faster | |
4 | 4 | |----------|---------------|-------------|----------|-------------|----------|--------| |
5 | | -| `abi_to_signature[constructor]` | 0.00015406194143201225 | 7.883971023623535e-05 | 48.83% | 95.41% | 1.95x | ✅ | |
6 | | -| `abi_to_signature[event]` | 0.00020092910443389366 | 9.514829486560427e-05 | 52.65% | 111.17% | 2.11x | ✅ | |
7 | | -| `abi_to_signature[fallback]` | 5.903795026401285e-05 | 5.24933106650633e-05 | 11.09% | 12.47% | 1.12x | ✅ | |
8 | | -| `abi_to_signature[function]` | 0.00018037638661969518 | 9.097150614892828e-05 | 49.57% | 98.28% | 1.98x | ✅ | |
9 | | -| `abi_to_signature[receive]` | 5.989296388221863e-05 | 5.2188090282253125e-05 | 12.86% | 14.76% | 1.15x | ✅ | |
10 | | -| `collapse_if_tuple[constructor]` | 1.7893571725809663e-05 | 5.343175525683382e-06 | 70.14% | 234.89% | 3.35x | ✅ | |
11 | | -| `collapse_if_tuple[event]` | 1.7350654541605075e-05 | 5.3449955910779705e-06 | 69.19% | 224.61% | 3.25x | ✅ | |
12 | | -| `collapse_if_tuple[fallback]` | 1.7822348390857575e-05 | 5.2378191377958894e-06 | 70.61% | 240.26% | 3.40x | ✅ | |
13 | | -| `collapse_if_tuple[function]` | 1.7283440018482697e-05 | 5.252043088054279e-06 | 69.61% | 229.08% | 3.29x | ✅ | |
14 | | -| `collapse_if_tuple[receive]` | 1.7779851290908416e-05 | 5.285495977704245e-06 | 70.27% | 236.39% | 3.36x | ✅ | |
15 | | -| `event_abi_to_log_topic[constructor]` | 0.0005233329713480397 | 0.00025597374835508753 | 51.09% | 104.45% | 2.04x | ✅ | |
16 | | -| `event_abi_to_log_topic[event]` | 0.0005706812542874173 | 0.00027464009349965923 | 51.88% | 107.79% | 2.08x | ✅ | |
17 | | -| `event_abi_to_log_topic[fallback]` | 0.0004189624982857493 | 0.00022892661372697444 | 45.36% | 83.01% | 1.83x | ✅ | |
18 | | -| `event_abi_to_log_topic[function]` | 0.0005505000444060592 | 0.0002715737051865893 | 50.67% | 102.71% | 2.03x | ✅ | |
19 | | -| `event_abi_to_log_topic[receive]` | 0.0004237502289971452 | 0.00022834879939975564 | 46.11% | 85.57% | 1.86x | ✅ | |
20 | | -| `event_signature_to_log_topic[Approval]` | 0.0003462471376838147 | 0.00016734559476010795 | 51.67% | 106.91% | 2.07x | ✅ | |
21 | | -| `event_signature_to_log_topic[Transfer]` | 0.0003474990815314403 | 0.00016699402997546933 | 51.94% | 108.09% | 2.08x | ✅ | |
22 | | -| `filter_abi_by_name[nonexistent-no-match]` | 2.335475064350175e-05 | 1.5350714476572253e-05 | 34.27% | 52.14% | 1.52x | ✅ | |
23 | | -| `filter_abi_by_name[transfer-match]` | 2.629475472040448e-05 | 1.7518379508277726e-05 | 33.38% | 50.10% | 1.50x | ✅ | |
24 | | -| `filter_abi_by_type[error-not-present]` | 0.00046487027527814586 | 1.5003208466308542e-05 | 96.77% | 2998.47% | 30.98x | ✅ | |
25 | | -| `filter_abi_by_type[event-present]` | 0.0003878114089833878 | 1.533116471758823e-05 | 96.05% | 2429.56% | 25.30x | ✅ | |
26 | | -| `filter_abi_by_type[function-present]` | 0.00010001719590416286 | 1.3751716019847191e-05 | 86.25% | 627.31% | 7.27x | ✅ | |
27 | | -| `function_abi_to_4byte_selector[constructor]` | 0.0005331745779554338 | 0.0002598487122056946 | 51.26% | 105.19% | 2.05x | ✅ | |
28 | | -| `function_abi_to_4byte_selector[event]` | 0.0005775443390662859 | 0.0002778601692572288 | 51.89% | 107.85% | 2.08x | ✅ | |
29 | | -| `function_abi_to_4byte_selector[fallback]` | 0.00042777031055642173 | 0.00023335619240805023 | 45.45% | 83.31% | 1.83x | ✅ | |
30 | | -| `function_abi_to_4byte_selector[function]` | 0.0005605077369976231 | 0.0002754276811965866 | 50.86% | 103.50% | 2.04x | ✅ | |
31 | | -| `function_abi_to_4byte_selector[receive]` | 0.00042796006064209076 | 0.0002331120076262701 | 45.53% | 83.59% | 1.84x | ✅ | |
32 | | -| `function_signature_to_4byte_selector[approve]` | 0.0003544417936620434 | 0.00017183509944661092 | 51.52% | 106.27% | 2.06x | ✅ | |
33 | | -| `function_signature_to_4byte_selector[mint]` | 0.0003517438970250788 | 0.00017262847808264598 | 50.92% | 103.76% | 2.04x | ✅ | |
34 | | -| `function_signature_to_4byte_selector[transfer]` | 0.0003520514805447615 | 0.00017211476631023858 | 51.11% | 104.54% | 2.05x | ✅ | |
35 | | -| `get_abi_input_names[approve]` | 6.450567919912176e-05 | 1.8105232599571254e-05 | 71.93% | 256.28% | 3.56x | ✅ | |
36 | | -| `get_abi_input_names[mint]` | 6.491307538923631e-05 | 1.7985529987958188e-05 | 72.29% | 260.92% | 3.61x | ✅ | |
37 | | -| `get_abi_input_names[transfer]` | 6.441900510660436e-05 | 1.8192325800349597e-05 | 71.76% | 254.10% | 3.54x | ✅ | |
38 | | -| `get_abi_input_types[approve]` | 9.501303354972057e-05 | 2.0609164546961033e-05 | 78.31% | 361.02% | 4.61x | ✅ | |
39 | | -| `get_abi_input_types[mint]` | 9.538478929430737e-05 | 2.0625798507115704e-05 | 78.38% | 362.45% | 4.62x | ✅ | |
40 | | -| `get_abi_input_types[transfer]` | 9.454817698840323e-05 | 2.0697147795015987e-05 | 78.11% | 356.82% | 4.57x | ✅ | |
41 | | -| `get_abi_output_names[approve]` | 5.751113811651376e-05 | 1.5750829561492053e-05 | 72.61% | 265.13% | 3.65x | ✅ | |
42 | | -| `get_abi_output_names[mint]` | 5.783865973580425e-05 | 1.579628327428679e-05 | 72.69% | 266.15% | 3.66x | ✅ | |
43 | | -| `get_abi_output_names[transfer]` | 5.7962586846508256e-05 | 1.5797261664636608e-05 | 72.75% | 266.92% | 3.67x | ✅ | |
44 | | -| `get_abi_output_types[approve]` | 7.463843455391946e-05 | 1.8110062785398904e-05 | 75.74% | 312.14% | 4.12x | ✅ | |
45 | | -| `get_abi_output_types[mint]` | 7.383523711742609e-05 | 1.8216524373529176e-05 | 75.33% | 305.32% | 4.05x | ✅ | |
46 | | -| `get_abi_output_types[transfer]` | 7.472135088900136e-05 | 1.8348716066225217e-05 | 75.44% | 307.23% | 4.07x | ✅ | |
47 | | -| `get_aligned_abi_inputs[approve]` | 0.0003793849607842874 | 0.00020732140900238443 | 45.35% | 82.99% | 1.83x | ✅ | |
48 | | -| `get_aligned_abi_inputs[mint]` | 0.0003797842690197312 | 0.00020882727702998716 | 45.01% | 81.87% | 1.82x | ✅ | |
49 | | -| `get_aligned_abi_inputs[transfer]` | 0.0003792123750786306 | 0.0002086595242065649 | 44.98% | 81.74% | 1.82x | ✅ | |
50 | | -| `get_all_event_abis[empty]` | 0.00038153279485231376 | 1.0572935814165215e-05 | 97.23% | 3508.58% | 36.09x | ✅ | |
51 | | -| `get_all_event_abis[function-and-event]` | 0.00038411442084167674 | 1.550924476805113e-05 | 95.96% | 2376.68% | 24.77x | ✅ | |
52 | | -| `get_all_function_abis[empty]` | 8.983020825295678e-05 | 8.684457947343702e-06 | 90.33% | 934.38% | 10.34x | ✅ | |
53 | | -| `get_all_function_abis[function-and-event]` | 0.00010027009625364283 | 1.3149811661657592e-05 | 86.89% | 662.52% | 7.63x | ✅ | |
54 | | -| `get_normalized_abi_inputs[approve]` | 0.00010202495926047575 | 1.7710310691485253e-05 | 82.64% | 476.08% | 5.76x | ✅ | |
55 | | -| `get_normalized_abi_inputs[mint]` | 0.00010156871835815509 | 1.7695257216507024e-05 | 82.58% | 473.99% | 5.74x | ✅ | |
56 | | -| `get_normalized_abi_inputs[transfer]` | 0.00010299091106164934 | 1.774371203653762e-05 | 82.77% | 480.44% | 5.80x | ✅ | |
| 5 | +| `abi_to_signature[constructor]` | 0.00015517825752399075 | 8.133208912404979e-05 | 47.59% | 90.80% | 1.91x | ✅ | |
| 6 | +| `abi_to_signature[event]` | 0.0002024091552308011 | 9.860485780136697e-05 | 51.28% | 105.27% | 2.05x | ✅ | |
| 7 | +| `abi_to_signature[fallback]` | 5.847696970457126e-05 | 5.260692594034854e-05 | 10.04% | 11.16% | 1.11x | ✅ | |
| 8 | +| `abi_to_signature[function]` | 0.00018172677856421234 | 9.314318005790924e-05 | 48.75% | 95.10% | 1.95x | ✅ | |
| 9 | +| `abi_to_signature[receive]` | 6.089798360861954e-05 | 5.4234201353673206e-05 | 10.94% | 12.29% | 1.12x | ✅ | |
| 10 | +| `collapse_if_tuple[constructor]` | 1.7636775083719932e-05 | 5.278152758650568e-06 | 70.07% | 234.15% | 3.34x | ✅ | |
| 11 | +| `collapse_if_tuple[event]` | 1.7510292304632908e-05 | 5.291240856755364e-06 | 69.78% | 230.93% | 3.31x | ✅ | |
| 12 | +| `collapse_if_tuple[fallback]` | 1.789297793570508e-05 | 5.266278048857575e-06 | 70.57% | 239.77% | 3.40x | ✅ | |
| 13 | +| `collapse_if_tuple[function]` | 1.753755766494139e-05 | 5.365355739306877e-06 | 69.41% | 226.87% | 3.27x | ✅ | |
| 14 | +| `collapse_if_tuple[receive]` | 1.7332604034884244e-05 | 5.283419595478817e-06 | 69.52% | 228.06% | 3.28x | ✅ | |
| 15 | +| `event_abi_to_log_topic[constructor]` | 0.00053557372764214 | 0.0002662890388400472 | 50.28% | 101.12% | 2.01x | ✅ | |
| 16 | +| `event_abi_to_log_topic[event]` | 0.0005851464210858151 | 0.0002866491453846841 | 51.01% | 104.13% | 2.04x | ✅ | |
| 17 | +| `event_abi_to_log_topic[fallback]` | 0.00043790827738593083 | 0.00023825867096270332 | 45.59% | 83.80% | 1.84x | ✅ | |
| 18 | +| `event_abi_to_log_topic[function]` | 0.0005645513090233057 | 0.0002795997663362031 | 50.47% | 101.91% | 2.02x | ✅ | |
| 19 | +| `event_abi_to_log_topic[receive]` | 0.00043215079641320114 | 0.000236412010823677 | 45.29% | 82.80% | 1.83x | ✅ | |
| 20 | +| `event_signature_to_log_topic[Approval]` | 0.0003570791903624886 | 0.00017978681946817347 | 49.65% | 98.61% | 1.99x | ✅ | |
| 21 | +| `event_signature_to_log_topic[Transfer]` | 0.0003584034824786973 | 0.0001798854997222198 | 49.81% | 99.24% | 1.99x | ✅ | |
| 22 | +| `filter_abi_by_name[nonexistent-no-match]` | 2.3721294080408438e-05 | 1.5071491772273423e-05 | 36.46% | 57.39% | 1.57x | ✅ | |
| 23 | +| `filter_abi_by_name[transfer-match]` | 2.659976477999375e-05 | 1.7751583867308637e-05 | 33.26% | 49.84% | 1.50x | ✅ | |
| 24 | +| `filter_abi_by_type[error-not-present]` | 0.00045926802864091514 | 1.5032316787146343e-05 | 96.73% | 2955.20% | 30.55x | ✅ | |
| 25 | +| `filter_abi_by_type[event-present]` | 0.0003845263292538127 | 1.5393174391621474e-05 | 96.00% | 2398.03% | 24.98x | ✅ | |
| 26 | +| `filter_abi_by_type[function-present]` | 9.504170132117934e-05 | 1.387829527936774e-05 | 85.40% | 584.82% | 6.85x | ✅ | |
| 27 | +| `function_abi_to_4byte_selector[constructor]` | 0.0005438610609255477 | 0.00026867517460757467 | 50.60% | 102.42% | 2.02x | ✅ | |
| 28 | +| `function_abi_to_4byte_selector[event]` | 0.0005925706093656564 | 0.0002969618254295022 | 49.89% | 99.54% | 2.00x | ✅ | |
| 29 | +| `function_abi_to_4byte_selector[fallback]` | 0.00044266558213267764 | 0.0002449987738489897 | 44.65% | 80.68% | 1.81x | ✅ | |
| 30 | +| `function_abi_to_4byte_selector[function]` | 0.000579244493538515 | 0.0002863030548779667 | 50.57% | 102.32% | 2.02x | ✅ | |
| 31 | +| `function_abi_to_4byte_selector[receive]` | 0.0004442694790476832 | 0.0002451089981999725 | 44.83% | 81.25% | 1.81x | ✅ | |
| 32 | +| `function_signature_to_4byte_selector[approve]` | 0.0003622356068087159 | 0.0001767061618379593 | 51.22% | 104.99% | 2.05x | ✅ | |
| 33 | +| `function_signature_to_4byte_selector[mint]` | 0.00036059031231116417 | 0.00017807574664494778 | 50.62% | 102.49% | 2.02x | ✅ | |
| 34 | +| `function_signature_to_4byte_selector[transfer]` | 0.0003612960709703717 | 0.00017646349535147603 | 51.16% | 104.74% | 2.05x | ✅ | |
| 35 | +| `get_abi_input_names[approve]` | 6.483715447613551e-05 | 1.8234537892250067e-05 | 71.88% | 255.57% | 3.56x | ✅ | |
| 36 | +| `get_abi_input_names[mint]` | 6.58866738329736e-05 | 1.8334044270748957e-05 | 72.17% | 259.37% | 3.59x | ✅ | |
| 37 | +| `get_abi_input_names[transfer]` | 6.5519457971762e-05 | 1.8094530360021755e-05 | 72.38% | 262.10% | 3.62x | ✅ | |
| 38 | +| `get_abi_input_types[approve]` | 9.440186784501198e-05 | 2.072866589335025e-05 | 78.04% | 355.42% | 4.55x | ✅ | |
| 39 | +| `get_abi_input_types[mint]` | 9.494295341042616e-05 | 2.109857709601435e-05 | 77.78% | 350.00% | 4.50x | ✅ | |
| 40 | +| `get_abi_input_types[transfer]` | 9.509513012493048e-05 | 2.0930946304810602e-05 | 77.99% | 354.33% | 4.54x | ✅ | |
| 41 | +| `get_abi_output_names[approve]` | 5.780118069137332e-05 | 1.5728664261946537e-05 | 72.79% | 267.49% | 3.67x | ✅ | |
| 42 | +| `get_abi_output_names[mint]` | 5.7937044248794574e-05 | 1.574874214143055e-05 | 72.82% | 267.88% | 3.68x | ✅ | |
| 43 | +| `get_abi_output_names[transfer]` | 5.983814857336132e-05 | 1.5903873603556272e-05 | 73.42% | 276.25% | 3.76x | ✅ | |
| 44 | +| `get_abi_output_types[approve]` | 7.420514649266499e-05 | 1.8219008905455068e-05 | 75.45% | 307.30% | 4.07x | ✅ | |
| 45 | +| `get_abi_output_types[mint]` | 7.464531558804207e-05 | 1.8222956695394393e-05 | 75.59% | 309.62% | 4.10x | ✅ | |
| 46 | +| `get_abi_output_types[transfer]` | 7.548976165214482e-05 | 1.8252808355994796e-05 | 75.82% | 313.58% | 4.14x | ✅ | |
| 47 | +| `get_aligned_abi_inputs[approve]` | 0.00038130250219905093 | 0.00020892766709578194 | 45.21% | 82.50% | 1.83x | ✅ | |
| 48 | +| `get_aligned_abi_inputs[mint]` | 0.00038210034443992495 | 0.00020967696425476943 | 45.13% | 82.23% | 1.82x | ✅ | |
| 49 | +| `get_aligned_abi_inputs[transfer]` | 0.0003838380842963076 | 0.00021039624554817837 | 45.19% | 82.44% | 1.82x | ✅ | |
| 50 | +| `get_all_event_abis[empty]` | 0.000375856820288903 | 1.0443362454525794e-05 | 97.22% | 3499.00% | 35.99x | ✅ | |
| 51 | +| `get_all_event_abis[function-and-event]` | 0.0003858076183327973 | 1.5560099578346745e-05 | 95.97% | 2379.47% | 24.79x | ✅ | |
| 52 | +| `get_all_function_abis[empty]` | 8.758905843320365e-05 | 8.755682228494426e-06 | 90.00% | 900.37% | 10.00x | ✅ | |
| 53 | +| `get_all_function_abis[function-and-event]` | 0.00010026351375359189 | 1.3321679727898243e-05 | 86.71% | 652.63% | 7.53x | ✅ | |
| 54 | +| `get_normalized_abi_inputs[approve]` | 0.000102351945628856 | 1.7687681859569646e-05 | 82.72% | 478.66% | 5.79x | ✅ | |
| 55 | +| `get_normalized_abi_inputs[mint]` | 0.0001026835551238505 | 1.7789914406642258e-05 | 82.68% | 477.20% | 5.77x | ✅ | |
| 56 | +| `get_normalized_abi_inputs[transfer]` | 0.00010291805691634733 | 1.7779562525329286e-05 | 82.72% | 478.86% | 5.79x | ✅ | |
0 commit comments