Skip to content
TKTail

Performance · competitive-bench-v2

Benchmark v2: the same work, level by level - TKTail 1.3.0-rc.1

Historical benchmark — TKTail 1.3.0-rc.1 Measured on TKTail 1.3.0-rc.1 (commit cebe674522, Release - Shipping PGO d30b1ec73986) on 2026-11-08. The current release is TKTail 1.2.1; the release candidate in testing is TKTail 1.3.0-rc.6.

Release candidate 1.3.0-rc.1 (superseded), not the recommended release. The current stable release is TKTail 1.2.1 - the download page.

The same work at each level - L0 raw I/O, L1 record framing, L2 literal search, L3 structured search, L4 aggregation, and a regex row whose algorithms differ - done by TKTail engine, C# (.NET, framework-dependent), Python (CPython), PowerShell 7, Windows PowerShell 5.1 and C++ minimal reference on the same files. TKTail is measured as its engine: tktail_bench.exe, built from the commit of the measured TKTail.exe, with no MCP and no window. Each answer was checked equal across the implementations - and against the dataset generator's ground truth where it has one - before a time was kept.

Engine rows and the product, apart. The levels time repetitions inside a running process. TKTail's retained results and the product workflow - TKTail.exe answering through MCP, warm and cold - are measured in the same run and shown separately: they are never compared with the programs' rows. These are these implementations on one machine, not a ranking of programming languages.

v1: the purpose-built run - purpose-built programs beside TKTail's complete workflow through MCP, a product comparison. v2: the same work, level by level - this page.

At a glance

TKTail's engine against the lowest median of the baselines (C# (.NET, framework-dependent), Python (CPython), PowerShell 7, Windows PowerShell 5.1) at each level - the methodology's classification, losses and all. The C++ minimal reference is not a baseline: it is in each level's table below.

LevelAnswerTKTail engine, median wall (ms)Lowest baseline median (ms)TKTail engine / lowest baselineClass
L0 · raw104,857,716 bytes27.227.4C# (.NET, framework-dependent)0.99x wall1.00x CPUat most the lowest baseline median
L1 · lines779,407 lines82.942.8C# (.NET, framework-dependent)1.94x wall1.67x CPUmaterial loss: more than 1.25 times the lowest baseline median
L2 · literal-error44,261 lines78.751.7C# (.NET, framework-dependent)1.52x wall1.25x CPUmaterial loss: more than 1.25 times the lowest baseline median
L3 · count-5xx23,406 records103.9125.9C# (.NET, framework-dependent)0.83x wall0.88x CPUat most the lowest baseline median
L3 · count-503-post1,365 records102.2116.1C# (.NET, framework-dependent)0.88x wall0.75x CPUat most the lowest baseline median
L4 · top-ip-5xx23,406 records108.0125.3C# (.NET, framework-dependent)0.86x wall0.88x CPUat most the lowest baseline median
regex · elapsed-ge-1000different algorithms30,185 records390.394.1C# (.NET, framework-dependent)4.15x wall3.57x CPUmaterial loss: more than 1.25 times the lowest baseline median

The levels

Each table: one row per implementation, times in milliseconds per measured repetition inside a running process (the first repetition of each process dropped). The ratio columns divide the implementation's median by TKTail engine's median of the same level: above 1 it took longer, below 1 less time. Peak working set is the process's, its runtime included (MiB = 220 bytes); MB/s is the dataset's bytes (106) per second of the median.

L0 · raw - raw I/O: every byte in 1 MiB blocks

Dataset iis-100mb (104,857,716 bytes) · TKTail engine row P0

Answer: 104,857,716 bytes. Equivalent: every implementation returned this answer in every measured repetition; it is the dataset generator's ground truth.

ImplementationMedian wall (ms)Min - max (ms)SpreadMedian CPU (ms)Peak working set (MiB)MB/sWall vs TKTail engineCPU vs TKTail engineRepetitions
TKTail engine27.225.1 - 33.430.5 %31.210.93,851.0referencereference15
C# (.NET, framework-dependent)27.423.8 - 29.119.3 %31.231.43,827.61.01x1.00x15
Python (CPython)28.326.5 - 30.514.2 %31.221.13,709.91.04x1.00x9
PowerShell 732.427.9 - 54.481.8 %31.293.83,240.51.19x1.00x9
Windows PowerShell 5.132.229.9 - 43.943.6 %31.293.33,259.21.18x1.00x6
C++ minimal reference28.124.8 - 34.835.3 %31.25.43,725.21.03x1.00x15

L1 · lines - record framing: every line end (LF / CRLF), one physical line = one record

Dataset iis-100mb (104,857,716 bytes) · TKTail engine row P1

Answer: 779,407 lines. Equivalent: every implementation returned this answer in every measured repetition; the dataset generator records no ground truth for it.

ImplementationMedian wall (ms)Min - max (ms)SpreadMedian CPU (ms)Peak working set (MiB)MB/sWall vs TKTail engineCPU vs TKTail engineRepetitions
TKTail engine82.974.8 - 126.562.3 %78.114.31,264.6referencereference15
C# (.NET, framework-dependent)42.839.7 - 45.814.3 %46.932.72,452.00.52x0.60x15
Python (CPython)74.364.8 - 86.929.8 %78.121.11,412.10.90x1.00x9
PowerShell 7170.8142.1 - 212.441.2 %296.9137.1614.02.06x3.80x9
Windows PowerShell 5.1612.5599.5 - 654.59.0 %609.4106.3171.27.39x7.80x6
C++ minimal reference50.747.9 - 57.318.5 %46.95.02,070.10.61x0.60x15

L2 · literal-error - simple search: lines containing the literal ERROR (case-sensitive), counted

Dataset applog-100mb (104,857,833 bytes) · TKTail engine row E6c

Answer: 44,261 lines. Equivalent: every implementation returned this answer in every measured repetition; it is the dataset generator's ground truth.

ImplementationMedian wall (ms)Min - max (ms)SpreadMedian CPU (ms)Peak working set (MiB)MB/sWall vs TKTail engineCPU vs TKTail engineRepetitions
TKTail engine78.760.9 - 112.865.9 %78.121.41,332.0referencereference15
C# (.NET, framework-dependent)51.737.4 - 87.396.4 %62.532.82,029.80.66x0.80x15
Python (CPython)348.7321.3 - 411.525.9 %343.821.5300.84.43x4.40x9
PowerShell 7336.9318.7 - 408.126.6 %453.1121.5311.34.28x5.80x9
Windows PowerShell 5.1481.3456.1 - 525.814.5 %484.4164.5217.96.12x6.20x6
C++ minimal reference74.160.1 - 95.848.3 %62.55.01,415.30.94x0.80x15

L3 · count-5xx - structured search: #Fields read from the file, sc-status >= 500, counted

Dataset iis-100mb (104,857,716 bytes) · TKTail engine row E1c

Answer: 23,406 records. Equivalent: every implementation returned this answer in every measured repetition; it is the dataset generator's ground truth.

ImplementationMedian wall (ms)Min - max (ms)SpreadMedian CPU (ms)Peak working set (MiB)MB/sWall vs TKTail engineCPU vs TKTail engineRepetitions
TKTail engine103.994.6 - 132.336.3 %109.414.01,009.4referencereference15
C# (.NET, framework-dependent)125.9108.3 - 282.5138.3 %125.032.8832.71.21x1.14x15
Python (CPython)552.0525.4 - 644.321.5 %546.921.6189.95.31x5.00x9
PowerShell 71,138.7945.2 - 1,336.234.3 %1,250.0125.292.110.96x11.43x9
Windows PowerShell 5.11,700.71,413.7 - 2,272.350.5 %1,609.4167.861.716.37x14.71x6
C++ minimal reference158.8146.0 - 174.618.0 %156.25.0660.11.53x1.43x15

L3 · count-503-post - structured search: sc-status = 503 and cs-method = POST, counted

Dataset iis-100mb (104,857,716 bytes) · TKTail engine row E8c

Answer: 1,365 records. Equivalent: every implementation returned this answer in every measured repetition; it is the dataset generator's ground truth.

ImplementationMedian wall (ms)Min - max (ms)SpreadMedian CPU (ms)Peak working set (MiB)MB/sWall vs TKTail engineCPU vs TKTail engineRepetitions
TKTail engine102.285.0 - 111.025.4 %93.812.31,025.8referencereference15
C# (.NET, framework-dependent)116.1105.9 - 165.351.2 %125.032.9903.31.14x1.33x15
Python (CPython)488.3465.2 - 524.012.0 %484.421.7214.74.78x5.16x9
PowerShell 71,127.4967.1 - 1,327.732.0 %1,156.2125.293.011.03x12.33x9
Windows PowerShell 5.11,828.61,472.2 - 2,147.436.9 %1,765.6167.257.317.89x18.82x6
C++ minimal reference161.5142.8 - 187.427.6 %156.25.0649.31.58x1.67x15

L4 · top-ip-5xx - aggregation: sc-status >= 500 grouped by c-ip, top 10 (count descending, then the value)

Dataset iis-100mb (104,857,716 bytes) · TKTail engine row E2c

Answer: 23,406 records. Equivalent: every implementation returned this answer in every measured repetition; it is the dataset generator's ground truth.

The top 10, as every implementation returned them - the value and its records:

  1. 203.0.113.12 2,330
  2. 203.0.113.49 2,065
  3. 203.0.113.86 1,834
  4. 203.0.113.123 1,543
  5. 203.0.113.160 1,323
  6. 203.0.113.197 1,095
  7. 203.0.113.234 799
  8. 198.51.100.17 658
  9. 198.51.100.54 524
  10. 198.51.100.91 383
ImplementationMedian wall (ms)Min - max (ms)SpreadMedian CPU (ms)Peak working set (MiB)MB/sWall vs TKTail engineCPU vs TKTail engineRepetitions
TKTail engine108.0103.7 - 119.815.0 %109.415.0970.6referencereference15
C# (.NET, framework-dependent)125.3121.0 - 134.710.9 %125.034.5836.61.16x1.14x15
Python (CPython)525.2485.1 - 563.014.8 %500.021.9199.64.86x4.57x9
PowerShell 71,362.71,031.3 - 1,753.253.0 %1,609.4129.877.012.62x14.71x9
Windows PowerShell 5.12,007.11,778.3 - 2,120.817.1 %1,921.8174.852.218.58x17.57x6
C++ minimal reference154.4140.0 - 172.621.1 %156.25.1679.01.43x1.43x15

regex · elapsed-ge-1000 - number from text: records with elapsed: <n>ms >= 1000 - TKTail a regex named capture, the programs a literal find and a number parse (the same answer, different algorithms)

Dataset applog-100mb (104,857,833 bytes) · TKTail engine row E7c

Answer: 30,185 records. Equivalent: every implementation returned this answer in every measured repetition; it is the dataset generator's ground truth. Different algorithms: the same answer reached two ways - read this row as that, not as an engine-equal comparison.

ImplementationMedian wall (ms)Min - max (ms)SpreadMedian CPU (ms)Peak working set (MiB)MB/sWall vs TKTail engineCPU vs TKTail engineRepetitions
TKTail engine390.3366.9 - 448.020.8 %390.613.8268.7referencereference15
C# (.NET, framework-dependent)94.184.9 - 128.346.1 %109.433.11,114.20.24x0.28x15
Python (CPython)391.8353.9 - 404.412.9 %375.021.4267.71.00x0.96x9
PowerShell 71,692.61,237.6 - 1,907.639.6 %1,734.4123.262.04.34x4.44x9
Windows PowerShell 5.11,749.41,251.9 - 1,970.741.1 %1,718.7166.059.94.48x4.40x6
C++ minimal reference130.6123.8 - 146.517.4 %125.05.0802.70.33x0.32x15

Retained results (L5) - TKTail only, not comparable

TKTail only: the session keeps up to 5,000 results for paging (the product default). No program keeps results, so no program is compared with these rows; each must give the answer of the level it extends. The difference is the L5 median minus TKTail engine's count-only median of that level - it can be negative when it is smaller than the run-to-run variation.

SessionExtendsMedian wall (ms)Median CPU (ms)Peak working set (MiB)Same answer as the levelDifference, wall (ms)Difference, CPU (ms)
L5 · count-5xxL3 · count-5xx102.893.814.9yes-1.1-15.6
L5 · top-ip-5xxL4 · top-ip-5xx115.0109.415.8yes+7.00.0
L5 · literal-errorL2 · literal-error64.462.522.4yes-14.3-15.6
L5 · elapsed-ge-1000regex · elapsed-ge-1000385.2390.614.7yes-5.10.0

The product workflow - TKTail.exe through MCP, not comparable with the engine rows

Product workflow - TKTail.exe through MCP (JSON-RPC over stdio, the bridge process, the window's search session with results retained, provenance). Warm: the files open and indexed, one MCP session. Cold: a new window per question - start, open, detect, answer. Not an engine level: never compared with the programs' rows.

These rows time what a user's AI client reaches; the last column divides each by TKTail engine's median of the same level - what the interface, the window and (cold) the start cost on top of the engine. They are never compared with the programs.

QuestionModeMedian wall (ms)Min - max (ms)Median CPU (ms)Peak working set (MiB)Answer over MCP (bytes)MCP callsSame answer as the levelvs TKTail engine
L2 · literal-errorwarm - open and indexed, one MCP session80.673.8 - 86.778.180.08711yes1.02x
L2 · literal-errorcold - a new window per question1,207.51,158.0 - 1,598.41,250.077.78711yes15.34x
L3 · count-5xxwarm - open and indexed, one MCP session129.6113.4 - 137.2125.080.09181yes1.25x
L3 · count-5xxcold - a new window per question1,042.1927.9 - 1,170.31,218.870.49171yes10.03x
L3 · count-503-postwarm - open and indexed, one MCP session108.194.9 - 122.093.880.09811yes1.06x
L3 · count-503-postcold - a new window per question1,499.81,086.6 - 1,957.91,500.068.29801yes14.68x
L4 · top-ip-5xxwarm - open and indexed, one MCP session138.5133.1 - 148.9125.080.04,4411yes1.28x
L4 · top-ip-5xxcold - a new window per question1,273.41,079.5 - 1,383.41,546.970.94,4401yes11.79x
regex · elapsed-ge-1000warm - open and indexed, one MCP session448.4426.7 - 505.3468.880.01,0291yes1.15x
regex · elapsed-ge-1000cold - a new window per question1,343.01,289.3 - 1,565.81,703.170.71,0281yes3.44x

How each one ran - and what is not counted

No level counts installation, process start or a first run: they time repetitions inside a running process. The cold product workflow is the only place start-up is in the number.

TKTail engine
  • tktail_bench.exe 1.3.0-rc.1, Release - Shipping PGO d30b1ec73986 build, commit cebe674522
  • The measured TKTail.exe: TKTail 1.3.0-rc.1, build: Release - Shipping PGO d30b1ec73986, commit: cebe674522; SHA-256 2ee765d7dc48877497f9a07e4d6fcd038574975bb0f698ea45041e6a71172b1c
  • Both built from commit cebe674522.

The run's own statement: The TKTail rows of L0 - L5 are TKTail's engine (core, io, workspace) built from commit cebe674522 into tktail_bench.exe (Release - Shipping PGO d30b1ec73986 build, the levels command: no MCP, no window, no PGO profile); the measured product is TKTail.exe TKTail 1.3.0-rc.1 (commit cebe674522).

C# (.NET, framework-dependent)
  • Runtime .NET 10.0.14, SDK 10.0.403
  • framework-dependent (Microsoft.NETCore.App 10.0.0, the newest installed patch of it at run time)
  • dotnet build -c Release (csharp/CompetitiveBench.csproj: net10.0, win-x64, SelfContained false; tiered JIT and dynamic PGO as .NET defaults; no ReadyToRun, no NativeAOT) - built by run_v2.py

Measured as a framework-dependent Release build. The same program could be published self-contained or compiled with NativeAOT: that changes start-up and deployment, which the engine levels do not time (they time repetitions inside a running process) - not measured. Installing the .NET runtime is not counted.

Python (CPython)
  • CPython 3.13.0
  • the interpreter running run_v2.py, started per process with -I (isolated: no user site, no PYTHON* variables)

Run by the CPython interpreter. The script could be frozen or packaged into an executable - not measured. Installing Python is not counted.

PowerShell 7
  • 7.6.9 on .NET 10.0.14
  • pwsh -NoProfile -NonInteractive -ExecutionPolicy Bypass -File powershell/bench.ps1 (a separate install)

PowerShell 7 is a separate install - not counted.

Windows PowerShell 5.1
  • 5.1.26100.9818 on .NET Framework 4.8.10008.0
  • powershell -NoProfile -NonInteractive -ExecutionPolicy Bypass -File powershell/bench.ps1 (part of Windows)

Windows PowerShell 5.1 ships with every supported Windows - nothing to install.

C++ minimal reference
  • MSVC 195136260 (static CRT)
  • MSVC x64, /O2 /GL /Gy /Gw, static CRT (/MT), LTCG - the product's flags (CMake target competitive_cpp_minimal, or cpp/build.cmd)

An engineering reference, not a baseline: the C# program written as minimally in C++ with TKTail's compiler and flags. It separates what the compiler, the C runtime and Windows I/O cost from what TKTail's pipeline costs, and it is not used for the classification.

What is still not equivalent

  • Text decoding: TKTail validates UTF-8 and decodes the lines and fields it keeps to UTF-16 where a decision needs it; the C#, C++ and Python programs work on bytes; PowerShell decodes every line. The data is ASCII - the answers are equal, the work is not identical.
  • Line ends: TKTail ends a line at LF, CR or CRLF and bounds a giant line; the C#, C++ and Python programs end a line at LF and strip one CR; PowerShell's ReadLine ends at CR, LF or CRLF. The datasets end every line with CRLF (W3C) or LF, so the counts agree.
  • L1 for TKTail is the viewer's general line walk (its block cache and a bounded record per line), not the search's own block reader.
  • Field splitting: C# and C++ split fields as ranges; Python makes a bytes object and PowerShell a string per field; TKTail's byte filter reads only the columns the condition names and parses the accepted records through its record model.
  • Prepared state: TKTail opens the document (encoding, format detection, the format's #Fields) once per process, before the measured repetitions; the programs know their format by construction and read #Fields in every repetition. Discovery from zero is in the cold product workflow.
  • The session: TKTail's rows include its session machinery - counters, progress, cancellation checkpoints, the analysis structure - that no program has; count-only means no stored results, not no session.
  • The regex row compares a regular expression (TKTail, the scenario's definition) with a literal find and a number parse (the programs): the same answer, different algorithms - not an engine-equal row.
  • CPU time is the whole process's, sampled at the Windows scheduler tick (see the method below): a small CPU figure is accurate to about one tick.

Machine and method

Machine
Intel(R) Core(TM) i9-14900F, 24 cores / 32 logical, 191.8 GB RAM
Windows
Microsoft Windows 11 Pro, build 26300, Balanced power plan
Storage
Samsung SSD 980 PRO 1TB (NVMe, NTFS)
Security software
Norton 360, Windows Defender
Measured
2026-11-08 (UTC 21:32:33 - 21:38:03)
Rounds
3 - each round runs every level once per implementation, one process each; the implementations' order rotates by level and round
Repetitions per process
TKTail engine 5, C# (.NET, framework-dependent) 5, Python (CPython) 3, PowerShell 7 3, Windows PowerShell 5.1 2, C++ minimal reference 5; dropped: the first of every process (JIT, interpreter, caches)
File cache
warm: every dataset was read once before the measured runs; the OS file cache is not cleared
Wall time
per repetition, measured by the program itself (startup excluded)
CPU time
per repetition, the program's process CPU time (user + kernel, every thread; Windows tick 15.6 ms)
Peak working set
the process's peak working set, measured from outside after it exited (runtime included)
Priority
normal; no affinity, no pinning
Suite
competitive-bench-v2, source commit d65a060a673d1b4b2e22d7cebd7baac9c725f265, source digest 68a19878b08a00bc3103bef7d5737d93a05776e40f8477e62971f10eeade1b06

Raw data and how to reproduce

The run's files as published - the same bytes as in the results ZIP:

  • summary.json · 40,258 bytes (39 KB) · SHA-256 b91de00e0be36ea17358db97a0414be80fdb8d495afe0142b594ee8c0a6622ae
  • results.jsonl · 259,071 bytes (253 KB) · SHA-256 5b48fb01993d6d2a0c070bc50dd8f870d28b20fd1cbfbc641ab05537cb010eb8
  • workflow.jsonl · 21,125 bytes (21 KB) · SHA-256 71243ad49fc25109e8707b46d3dfd217ffecc9816dc1ebc210c42b821d0d7d47
  • environment.json · 6,970 bytes (7 KB) · SHA-256 69431c7b6ce091985bda7c978ad27d9a9353ea888ed52f409284bfbe0e1588bb

Repeat this run from the source ZIP (its README.md lists the requirements; the method is methodology/METHODOLOGY.md section 9). tktail_bench.exe is built from the measured commit cebe674522 (CMake target tktail_bench) - it is not part of the TKTail download.

cd TKTail-Competitive-Benchmarks-competitive-bench-v2
python datasets\generate.py --config datasets\configs\iis-100mb.json --out D:\bench\data
python datasets\generate.py --config datasets\configs\applog-100mb.json --out D:\bench\data
cpp\build.cmd D:\bench\bin
python scripts\run_v2.py --data D:\bench\data --out D:\bench\results --size 100mb ^
    --bench C:\Tools\TKTail\tktail_bench.exe --tktail C:\Tools\TKTail\TKTail.exe --cpp D:\bench\bin\competitive_cpp_minimal.exe ^
    --rounds 3 --repeat 5 --repeat-for python=3 pwsh=3 powershell=2 --workflow --workflow-repeat 5

v1 and v2

v1: the purpose-built run sets purpose-built programs beside TKTail's complete workflow through MCP - a product comparison, with what an AI assistant receives and an investigation session. v2, this page, measures the same work in every implementation, level by level, and keeps the product workflow apart. Neither replaces the other.