Search Ctrl K
Home / Tools
THE FEUTEX TOOLKIT

Run Length Encoding Budget

Compare raw values with value-and-count pairs using a measured number of runs.

Developer workspace● Runs in your browser
01 Your input
02 Your result
View or copy raw result data
FormulaRaw payload = n*value/1e6; Run-length payload = runs*(value+count)/1e6; Encoded to raw ratio = 100*runs*(value+count)/(n*value)

Made for real tasks

  • Compare raw values with value-and-count pairs using a measured number of runs.
Explore step-by-step workflows →

Worked example

Inputs

Total values
1000000 values
Consecutive runs
10000 runs
Bytes per value
4 bytes
Bytes per run count
4 bytes

Expected results

Raw payload
4 MB
Run-length payload
0.08 MB
Encoded to raw ratio
2 %

Load the example in the workspace to reproduce these results. Display rounding does not change the underlying calculation.

How to use this tool

  1. Enter total values, consecutive runs, bytes per value, bytes per run count in the displayed units.
  2. Calculate the scenario, then compare it with measurements before changing a system.

Try this example

{
  "n": 1000000,
  "runs": 10000,
  "value": 4,
  "count": 4
}

Accuracy and scope

Fixed count width and no run splitting; all run lengths must fit the chosen count representation.

Is my data uploaded?

This tool runs locally in your browser. Input and output are not sent to a processing server. Copy or download your result before leaving the page.