From fb9ba4f835e5054151534346c45c4a9c16025ded Mon Sep 17 00:00:00 2001 From: "A.L." Date: Thu, 6 Jun 2024 10:48:40 +0200 Subject: [PATCH] gas: add snapshot --- .gas-snapshot | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .gas-snapshot diff --git a/.gas-snapshot b/.gas-snapshot new file mode 100644 index 0000000..c75cbf8 --- /dev/null +++ b/.gas-snapshot @@ -0,0 +1,75 @@ +FlagsLibTest:testGetDecimalDifference() (gas: 3974) +FlagsLibTest:testIsCompositeRoute() (gas: 4341) +FlagsLibTest:testPackSimplePrice(int8,uint256) (runs: 258, μ: 7792, ~: 7555) +QueryProcessorTest:testFindNearestSample_CanFindExactValue(uint32,uint256,uint256,uint256) (runs: 258, μ: 67863792, ~: 75472767) +QueryProcessorTest:testFindNearestSample_CanFindIntermediateValue(uint32,uint256,uint256,uint256) (runs: 258, μ: 72718344, ~: 80564855) +QueryProcessorTest:testFindNearestSample_NotInitialized() (gas: 8937393461068805977) +QueryProcessorTest:testFindNearestSample_OneSample(uint256) (runs: 258, μ: 80316, ~: 80360) +QueryProcessorTest:testGetInstantValue() (gas: 124248) +QueryProcessorTest:testGetInstantValue_NotInitialized(uint256) (runs: 258, μ: 19397, ~: 19397) +QueryProcessorTest:testGetInstantValue_NotInitialized_BeyondBufferSize(uint8,uint16) (runs: 258, μ: 68389661, ~: 68389600) +QueryProcessorTest:testGetPastAccumulator_BufferEmpty(uint8) (runs: 258, μ: 27028, ~: 27087) +QueryProcessorTest:testGetPastAccumulator_ExactMatch(uint32,uint256,uint256,uint16) (runs: 258, μ: 71845891, ~: 81233735) +QueryProcessorTest:testGetPastAccumulator_ExactMatch_LatestAccumulator(uint32,uint256,uint256) (runs: 258, μ: 70132751, ~: 79224986) +QueryProcessorTest:testGetPastAccumulator_ExactMatch_OldestAccumulator(uint32,uint256,uint256) (runs: 258, μ: 70162763, ~: 79256586) +QueryProcessorTest:testGetPastAccumulator_ExtrapolatesBeyondLatest(uint32,uint256,uint256,uint256) (runs: 258, μ: 72691274, ~: 80536404) +QueryProcessorTest:testGetPastAccumulator_InterpolatesBetweenPastAccumulators(uint32,uint256,uint256,uint256) (runs: 258, μ: 72725805, ~: 80570863) +QueryProcessorTest:testGetPastAccumulator_InvalidAgo(uint32,uint256,uint256,uint256) (runs: 258, μ: 72682883, ~: 80528115) +QueryProcessorTest:testGetPastAccumulator_QueryTooOld(uint32,uint256,uint256,uint256) (runs: 258, μ: 72694171, ~: 80537999) +QueryProcessorTest:testGetTimeWeightedAverage(uint32,uint256,uint256,uint256,uint256) (runs: 257, μ: 107929035, ~: 114562314) +QueryProcessorTest:testGetTimeWeightedAverage_BadSecs() (gas: 10995) +ReservoirPriceOracleTest:testClearRoute() (gas: 52090) +ReservoirPriceOracleTest:testClearRoute_AllWordsCleared() (gas: 155074) +ReservoirPriceOracleTest:testDesignatePair() (gas: 29047) +ReservoirPriceOracleTest:testDesignatePair_IncorrectPair() (gas: 21089) +ReservoirPriceOracleTest:testDesignatePair_NotOwner() (gas: 17487) +ReservoirPriceOracleTest:testDesignatePair_TokenOrderReversed() (gas: 30619) +ReservoirPriceOracleTest:testGasBountyAvailable(uint256) (runs: 258, μ: 9927, ~: 9925) +ReservoirPriceOracleTest:testGasBountyAvailable_Zero() (gas: 8961) +ReservoirPriceOracleTest:testGetLargestSafeQueryWindow() (gas: 8390) +ReservoirPriceOracleTest:testGetLatest(uint32) (runs: 258, μ: 92769, ~: 92726) +ReservoirPriceOracleTest:testGetLatest_Inverted() (gas: 96846) +ReservoirPriceOracleTest:testGetPastAccumulators() (gas: 196354) +ReservoirPriceOracleTest:testGetPastAccumulators_Inverted() (gas: 156772) +ReservoirPriceOracleTest:testGetQuote(uint256,uint256) (runs: 258, μ: 35745, ~: 35862) +ReservoirPriceOracleTest:testGetQuote_AmountInTooLarge() (gas: 13002) +ReservoirPriceOracleTest:testGetQuote_ComplicatedDecimals() (gas: 10352998) +ReservoirPriceOracleTest:testGetQuote_Inverse(uint256,uint256) (runs: 258, μ: 37907, ~: 38085) +ReservoirPriceOracleTest:testGetQuote_MultipleHops() (gas: 114368) +ReservoirPriceOracleTest:testGetQuote_MultipleHops_Inverse() (gas: 114626) +ReservoirPriceOracleTest:testGetQuote_MultipleHops_PriceZero() (gas: 127226) +ReservoirPriceOracleTest:testGetQuote_NoPath() (gas: 11697) +ReservoirPriceOracleTest:testGetQuote_PriceZero() (gas: 16470) +ReservoirPriceOracleTest:testGetQuote_RandomizeAllParam_1HopRoute(uint256,uint256,address,address,uint8,uint8) (runs: 258, μ: 5327808, ~: 5327931) +ReservoirPriceOracleTest:testGetQuote_RandomizeAllParam_2HopRoute(uint256,uint256,uint256,address,address,address,uint8,uint8,uint8) (runs: 258, μ: 10493756, ~: 10493869) +ReservoirPriceOracleTest:testGetQuote_SameBaseQuote(uint256,address) (runs: 258, μ: 8987, ~: 8987) +ReservoirPriceOracleTest:testGetQuote_ZeroIn() (gas: 39282) +ReservoirPriceOracleTest:testGetQuotes(uint256,uint256) (runs: 258, μ: 33304, ~: 33421) +ReservoirPriceOracleTest:testGetTimeWeightedAverage() (gas: 141982) +ReservoirPriceOracleTest:testGetTimeWeightedAverage_Inverted() (gas: 121063) +ReservoirPriceOracleTest:testSetRoute() (gas: 58782) +ReservoirPriceOracleTest:testSetRoute_InvalidRoute() (gas: 17960) +ReservoirPriceOracleTest:testSetRoute_InvalidRouteLength() (gas: 17567) +ReservoirPriceOracleTest:testSetRoute_MultipleHops() (gas: 196025) +ReservoirPriceOracleTest:testSetRoute_NotSorted() (gas: 12073) +ReservoirPriceOracleTest:testSetRoute_OverwriteExisting() (gas: 162468) +ReservoirPriceOracleTest:testSetRoute_SameToken() (gas: 12026) +ReservoirPriceOracleTest:testUndesignatePair() (gas: 30263) +ReservoirPriceOracleTest:testUndesignatePair_NotOwner() (gas: 15354) +ReservoirPriceOracleTest:testUpdatePriceDeviationThreshold(uint256) (runs: 258, μ: 21395, ~: 21080) +ReservoirPriceOracleTest:testUpdatePrice_BeyondThreshold() (gas: 214272) +ReservoirPriceOracleTest:testUpdatePrice_BeyondThreshold_InsufficientReward(uint256) (runs: 258, μ: 203470, ~: 203684) +ReservoirPriceOracleTest:testUpdatePrice_BeyondThreshold_ZeroRecipient() (gas: 195975) +ReservoirPriceOracleTest:testUpdatePrice_FirstUpdate() (gas: 203451) +ReservoirPriceOracleTest:testUpdatePrice_IntermediateRoutes() (gas: 15868694) +ReservoirPriceOracleTest:testUpdatePrice_PriceOutOfRange() (gas: 5353128) +ReservoirPriceOracleTest:testUpdatePrice_WithinThreshold() (gas: 204527) +ReservoirPriceOracleTest:testUpdateRewardGasAmount() (gas: 19039) +ReservoirPriceOracleTest:testUpdateRewardGasAmount_NotOwner() (gas: 10984) +ReservoirPriceOracleTest:testUpdateTwapPeriod(uint256) (runs: 258, μ: 21659, ~: 21773) +ReservoirPriceOracleTest:testUpdateTwapPeriod_InvalidTwapPeriod(uint256) (runs: 258, μ: 17832, ~: 18120) +ReservoirPriceOracleTest:testWritePriceCache(uint256) (runs: 258, μ: 29930, ~: 29733) +SamplesTest:testAccumulator() (gas: 3959) +SamplesTest:testAccumulator_BadVariableRequest() (gas: 3523) +SamplesTest:testInstant() (gas: 3909) +SamplesTest:testInstant_BadVariableRequest() (gas: 3566) \ No newline at end of file