# NexusTools Public Benchmark Methodology

Published at: https://nexustools.tech/benchmarks/
Last verified: 2026-11-20

This directory contains the exact scripts used to generate the benchmark dataset
and to reproduce the published open-latency and memory measurements. We publish
them so that reviewers, competitors, and independent developers can verify our
numbers instead of trusting marketing copy.

## 1. Test bed (published numbers)

| Component | Specification |
| --- | --- |
| Operating system | Windows 11 Pro 23H2 (build 22631), clean boot |
| CPU | AMD Ryzen 9 7950X (16C/32T), stock clocks |
| RAM | 64GB DDR5-6000, EXPO enabled |
| Storage | Samsung 990 PRO 1TB PCIe 4.0 NVMe |
| GPU | NVIDIA GeForce RTX 4070 (drivers current at test date) |
| Background load | Windows Defender real-time scan and OneDrive sync disabled during trials |

The published tables in this section were measured on this single Windows
workstation. A macOS machine is **not** part of the published dataset because
the compared editors are Windows applications; any future cross-platform
measurement will be labelled separately.

## 2. Software versions

| Application | Version |
| --- | --- |
| Photonix | 0.1.7 |
| NexusNote | 0.1.7 |
| Notepad++ | 8.7 |
| Sublime Text | 4 (build 4180) |
| VS Code | 1.95 |
| hyperfine | 1.18 |

Record the exact version with `photonix --version` (or the About dialog) before
running trials. A version mismatch invalidates comparison with the published
table.

## 3. Dataset generation

```powershell
python .\generate_250mb_log.py --output .\access_250mb.log --size-mb 250 --seed 20261120
```

The generator is deterministic: the same `--seed` produces byte-identical
output. The script prints the SHA-256 digest of the generated file. Compare it
with the fingerprint below; if it differs, you are not benchmarking the same
dataset and numbers are not directly comparable.

**Dataset fingerprint (250 MiB, seed 20261120):**

- Size: 250.00 MiB (262,144,000 bytes target; final file may exceed by < 1 KiB)
- Lines: ~1,850,000
- SHA-256: run the generator to obtain the digest on your machine; the digest
  is deterministic for the same seed and Python version. Publish differences in
  a GitHub issue with your Python version and generated digest.

> The generator uses Python's Mersenne Twister with a fixed seed, so output is
> stable across Python 3.8+ on the same platform. We will publish a pinned
> digest here after the next dataset regeneration.

## 4. Measuring open latency

```powershell
.\run_benchmark.ps1 -LogPath .\access_250mb.log -Warmup 10 -Runs 50
```

- `hyperfine` measures wall-clock time from process launch until the command
  returns. For GUI editors, this requires an editor-specific exit flag (for
  example `--wait` or `--benchmark-quit`); the harness uses the flags shown in
  the script.
- Warm-up runs prime the OS file cache. If you want cold-cache numbers, clear
  the standby list with RAMMap (`Empty Standby List`) between runs and report
  that you did so.
- Report the median, mean, and standard deviation. The published table uses
  medians.

## 5. Measuring resident memory

1. Open the same 250MB file in the editor.
2. Wait until the UI is idle and scrolling is responsive.
3. Measure the private working set:

```powershell
Get-Process photonix, notepad++, sublime_text, Code |
  Select-Object Name, @{n='WorkingSetMB';e={[math]::Round($_.WorkingSet64/1MB,1)}}
```

For peak values, use Sysinternals Process Explorer (Private Bytes) or Windows
Performance Recorder and report the sampling interval.

## 6. Reporting discrepancies

Open an issue at https://github.com/xtc002007/Photonix with:

- hardware and OS build,
- application versions,
- the exact commands you ran,
- your `benchmark-results.md` output,
- whether the file cache was warm or cold.

We will update the published tables when a reproducible discrepancy is
confirmed. Marketing claims must never outrun the published dataset.
