> ## Documentation Index
> Fetch the complete documentation index at: https://docs.soo.network/llms.txt
> Use this file to discover all available pages before exploring further.

# GetRecentPerformanceSamples

## getRecentPerformanceSamples RPC Method

Returns a list of recent performance samples, in reverse slot order.

#### Performance Sample Details

Performance samples are taken every 60 seconds and include the number of transactions and slots that occur in a given time window.

<div className="grid grid-cols-2 gap-1 mt-2">
  <div className="col-span-1">
    #### Parameters

    **limit** `usize` **optional**\
    Number of samples to return

    * Maximum of 720 samples

    #### Voting Transactions Calculation

    To calculate the number of voting transactions:

    * `numVotingTransactions = numTransactions - numNonVoteTransactions`
  </div>

  <div className="col-span-1">
    #### Code Sample

    ```bash theme={"system"}
    curl https://rpc.testnet.soo.network/rpc \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{
      "jsonrpc": "2.0",
      "id": 1,
      "method": "getRecentPerformanceSamples",
      "params": [10]
    }'
    ```

    #### Response

    ```json theme={"system"}
    {
      "jsonrpc": "2.0",
      "result": [
        {
          "slot": 369624,
          "numTransactions": 1000,
          "numSlots": 50,
          "samplePeriodSecs": 60,
          "numNonVoteTransactions": 800
        }
      ],
      "id": 1
    }
    ```
  </div>
</div>

#### Result Details

An array of performance sample objects, each containing:

* `slot: <u64>`
  * Slot in which the sample was taken
  * Identifies the specific blockchain slot for the performance measurement

* `numTransactions: <u64>`
  * Total number of transactions processed during the sample period
  * Includes both voting and non-voting transactions

* `numSlots: <u64>`
  * Number of slots completed during the sample period
  * Indicates the blockchain's processing activity

* `samplePeriodSecs: <u16>`
  * Duration of the sample window in seconds
  * Typically 60 seconds per sample

* `numNonVoteTransactions: <u64>`
  * Number of non-vote transactions processed
  * Available starting with v1.15

#### Important Notes

* Samples are returned in reverse slot order
* Maximum of 720 samples can be retrieved
* Samples are taken every 60 seconds
