From 6c20531184c1b337de06816762aefbab17f05385 Mon Sep 17 00:00:00 2001 From: "A.L." Date: Thu, 6 Jun 2024 11:01:43 +0200 Subject: [PATCH] gas: replace snapshot with clean one --- .gas-snapshot | 56 +++++++++++++++++++++++++-------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.gas-snapshot b/.gas-snapshot index c75cbf8..4f61770 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,22 +1,22 @@ 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) +FlagsLibTest:testPackSimplePrice(int8,uint256) (runs: 256, μ: 7794, ~: 7555) +QueryProcessorTest:testFindNearestSample_CanFindExactValue(uint32,uint256,uint256,uint256) (runs: 256, μ: 67643035, ~: 75383254) +QueryProcessorTest:testFindNearestSample_CanFindIntermediateValue(uint32,uint256,uint256,uint256) (runs: 256, μ: 72673686, ~: 80564855) QueryProcessorTest:testFindNearestSample_NotInitialized() (gas: 8937393461068805977) -QueryProcessorTest:testFindNearestSample_OneSample(uint256) (runs: 258, μ: 80316, ~: 80360) +QueryProcessorTest:testFindNearestSample_OneSample(uint256) (runs: 256, μ: 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:testGetInstantValue_NotInitialized(uint256) (runs: 256, μ: 19397, ~: 19397) +QueryProcessorTest:testGetInstantValue_NotInitialized_BeyondBufferSize(uint8,uint16) (runs: 256, μ: 68389660, ~: 68389600) +QueryProcessorTest:testGetPastAccumulator_BufferEmpty(uint8) (runs: 256, μ: 27027, ~: 27087) +QueryProcessorTest:testGetPastAccumulator_ExactMatch(uint32,uint256,uint256,uint16) (runs: 256, μ: 71794443, ~: 81233735) +QueryProcessorTest:testGetPastAccumulator_ExactMatch_LatestAccumulator(uint32,uint256,uint256) (runs: 256, μ: 70068127, ~: 79224986) +QueryProcessorTest:testGetPastAccumulator_ExactMatch_OldestAccumulator(uint32,uint256,uint256) (runs: 256, μ: 70098130, ~: 79256586) +QueryProcessorTest:testGetPastAccumulator_ExtrapolatesBeyondLatest(uint32,uint256,uint256,uint256) (runs: 256, μ: 72646619, ~: 80536404) +QueryProcessorTest:testGetPastAccumulator_InterpolatesBetweenPastAccumulators(uint32,uint256,uint256,uint256) (runs: 256, μ: 72681141, ~: 80570863) +QueryProcessorTest:testGetPastAccumulator_InvalidAgo(uint32,uint256,uint256,uint256) (runs: 256, μ: 72638228, ~: 80528115) +QueryProcessorTest:testGetPastAccumulator_QueryTooOld(uint32,uint256,uint256,uint256) (runs: 256, μ: 72649511, ~: 80537999) +QueryProcessorTest:testGetTimeWeightedAverage(uint32,uint256,uint256,uint256,uint256) (runs: 256, μ: 107655745, ~: 114208383) QueryProcessorTest:testGetTimeWeightedAverage_BadSecs() (gas: 10995) ReservoirPriceOracleTest:testClearRoute() (gas: 52090) ReservoirPriceOracleTest:testClearRoute_AllWordsCleared() (gas: 155074) @@ -24,27 +24,27 @@ 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(uint256) (runs: 256, μ: 9927, ~: 9925) ReservoirPriceOracleTest:testGasBountyAvailable_Zero() (gas: 8961) ReservoirPriceOracleTest:testGetLargestSafeQueryWindow() (gas: 8390) -ReservoirPriceOracleTest:testGetLatest(uint32) (runs: 258, μ: 92769, ~: 92726) +ReservoirPriceOracleTest:testGetLatest(uint32) (runs: 256, μ: 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(uint256,uint256) (runs: 256, μ: 35749, ~: 35862) ReservoirPriceOracleTest:testGetQuote_AmountInTooLarge() (gas: 13002) ReservoirPriceOracleTest:testGetQuote_ComplicatedDecimals() (gas: 10352998) -ReservoirPriceOracleTest:testGetQuote_Inverse(uint256,uint256) (runs: 258, μ: 37907, ~: 38085) +ReservoirPriceOracleTest:testGetQuote_Inverse(uint256,uint256) (runs: 256, μ: 37911, ~: 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_RandomizeAllParam_1HopRoute(uint256,uint256,address,address,uint8,uint8) (runs: 256, μ: 5327808, ~: 5327931) +ReservoirPriceOracleTest:testGetQuote_RandomizeAllParam_2HopRoute(uint256,uint256,uint256,address,address,address,uint8,uint8,uint8) (runs: 256, μ: 10493751, ~: 10493869) +ReservoirPriceOracleTest:testGetQuote_SameBaseQuote(uint256,address) (runs: 256, μ: 8987, ~: 8987) ReservoirPriceOracleTest:testGetQuote_ZeroIn() (gas: 39282) -ReservoirPriceOracleTest:testGetQuotes(uint256,uint256) (runs: 258, μ: 33304, ~: 33421) +ReservoirPriceOracleTest:testGetQuotes(uint256,uint256) (runs: 256, μ: 33308, ~: 33421) ReservoirPriceOracleTest:testGetTimeWeightedAverage() (gas: 141982) ReservoirPriceOracleTest:testGetTimeWeightedAverage_Inverted() (gas: 121063) ReservoirPriceOracleTest:testSetRoute() (gas: 58782) @@ -56,9 +56,9 @@ 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:testUpdatePriceDeviationThreshold(uint256) (runs: 256, μ: 21397, ~: 21080) ReservoirPriceOracleTest:testUpdatePrice_BeyondThreshold() (gas: 214272) -ReservoirPriceOracleTest:testUpdatePrice_BeyondThreshold_InsufficientReward(uint256) (runs: 258, μ: 203470, ~: 203684) +ReservoirPriceOracleTest:testUpdatePrice_BeyondThreshold_InsufficientReward(uint256) (runs: 256, μ: 203473, ~: 203684) ReservoirPriceOracleTest:testUpdatePrice_BeyondThreshold_ZeroRecipient() (gas: 195975) ReservoirPriceOracleTest:testUpdatePrice_FirstUpdate() (gas: 203451) ReservoirPriceOracleTest:testUpdatePrice_IntermediateRoutes() (gas: 15868694) @@ -66,9 +66,9 @@ 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) +ReservoirPriceOracleTest:testUpdateTwapPeriod(uint256) (runs: 256, μ: 21663, ~: 21773) +ReservoirPriceOracleTest:testUpdateTwapPeriod_InvalidTwapPeriod(uint256) (runs: 256, μ: 17830, ~: 18120) +ReservoirPriceOracleTest:testWritePriceCache(uint256) (runs: 256, μ: 29932, ~: 29733) SamplesTest:testAccumulator() (gas: 3959) SamplesTest:testAccumulator_BadVariableRequest() (gas: 3523) SamplesTest:testInstant() (gas: 3909)