DataMigrate Pro·Operation
DataMigrate Pro Benchmark Feature Guide
The benchmark for putdata and putalldata writes cumulative phase timings to a JSON file. This guide explains how to enable it and read the metrics.
Date: 2026-03-31
1. Purpose
This guide explains the benchmark feature for putdata and putalldata:
- How to enable it.
- Where the output is written.
- How the JSON output is structured.
- How to interpret the metrics correctly.
The benchmark is designed to provide cumulative, phase-based timings across all chunks and all processed tables.
2. Enable Benchmark
Benchmarking is disabled by default and is only active when a benchmark switch is passed.
Supported switches:
--benchmark-benchmark--bm-bm--benchmarkjson(also enables run recording)
Accepted truthy values for explicit switch values:
1trueonyes
Examples:
DataMigratePro.exe -t putalldata --benchmarkDataMigratePro.exe -t putalldata --bm true --changesonly 1DataMigratePro.exe -t putdata -s 36 -i "SELECT * FROM [CRONUS$Sales Header]" --benchmarkOptional mode hint:
DataMigratePro.exe -t putalldata --benchmark --benchmarkmode azuresqlNotes:
--benchmarkmodesets themodefield in output (for exampleapiorazuresql).- Benchmark does not change business logic; it only records timings and counters.
3. Output Location
Each benchmark run writes one JSON file:
- Directory:
logs/perf - File name:
<runId>.json
Example path:
logs/perf/6e5b2ef3fef0455d9f0bf0d4d5d7f79f.jsonA compact console summary is also logged at the end of the run.
4. JSON Output Shape
Top-level output structure:
{
"schemaVersion": "1",
"runId": "6e5b2ef3fef0455d9f0bf0d4d5d7f79f",
"mode": "api",
"startedAtUtc": "2026-03-31T09:02:11.186Z",
"finishedAtUtc": "2026-03-31T09:12:03.529Z",
"totalDurationMs": 592343,
"totalRecordsSent": 1250045,
"totalPayloadBytes": 913442119,
"totalChunks": 318,
"totalRetries": 12,
"totalErrors": 0,
"avgRecordBytes": 730,
"throughputRecordsPerSec": 2110.2,
"throughputMBps": 1.47,
"phases": [
{
"phase": "SendToBC",
"cumulativeDurationMs": 269000,
"pctOfTotal": 45.41,
"callCount": 318,
"recordsProcessed": 1250045,
"fieldsTotal": 0,
"payloadBytes": 913442119,
"avgRecordBytes": 730,
"throughputRecordsPerSec": 4647.0,
"throughputMBps": 3.24,
"p50DurationMs": 710,
"p95DurationMs": 1620
}
],
"tables": [
{
"tableNo": 36,
"tableName": "Sales Header",
"plannedRecords": 350000,
"fieldCount": 0,
"phaseMs": {
"QueryBuild": 1850,
"QueryExecute": 12000,
"Transform": 15900,
"SendToBC": 74200,
"TransferLogWrite": 120
}
}
]
}5. Phase Catalog
Current phase names in benchmark output:
SchemaReadRecordCountReadMappingBuildQueryBuildQueryExecuteTransformChannelSetupSendToBCAzureSqlUploadTransferLogWriteBCFinalizeWait
Interpretation hints:
6. How to Interpret Measures
6.1 First pass: where is time spent?
Sort by pctOfTotal in phases.
- Biggest
pctOfTotal= primary bottleneck. - Second biggest = secondary optimization target.
6.2 Throughput and volume
Use these top-level values together:
totalRecordsSenttotalDurationMsthroughputRecordsPerSecthroughputMBpsavgRecordBytes
If records/s is low while MB/s is high, records are likely large and payload-heavy. If records/s and MB/s are both low, the bottleneck is usually CPU transformation, waiting, retries, or endpoint latency.
6.3 Phase latency distribution
Use p50DurationMs and p95DurationMs:
p50= typical chunk latency.p95= tail latency (slow chunks).
If p95 is much larger than p50, chunk performance is unstable.
Common causes:
- Intermittent network latency.
- Server-side lock/contention.
- Retries under load.
6.4 Retry signal
totalRetries > 0 indicates transport instability or transient endpoint pressure.
Practical rule:
- Stable runs should keep retries near zero.
- Rising retries usually inflate
BCFinalizeWaitand/orSendToBCtime.
6.5 Table-level hotspot analysis
Use tables[].phaseMs to find problematic tables.
- High
QueryExecuteper table: source SQL bottleneck. - High
Transform: mapping/transformation cost. - High
SendToBCorAzureSqlUpload: transport bottleneck.
7. Practical Comparison: API vs Azure SQL
For fair comparison, keep these constants the same:
- Same data snapshot.
- Same table set.
- Same chunk strategy and runtime options.
- Same environment and network path as far as possible.
Compare at least:
totalDurationMsthroughputRecordsPerSecthroughputMBpstotalRetries- Dominant phase (
pctOfTotalleader)
Decision pattern:
8. Common Misinterpretations
- High
callCountis not automatically bad. - Low
totalDurationMswith lowtotalRecordsSentis not a performance win. - Comparing runs with different data sizes without normalization is misleading.
Always normalize by records and bytes.
9. Fast Analysis Checklist
After each run:
- Confirm benchmark file exists under
logs/perf. - Check
totalRecordsSentagainst expected volume. - Identify top phase by
pctOfTotal. - Inspect
p50/p95gap for instability. - Check
totalRetriesandtotalErrors. - Inspect top 3 tables in
tables[].phaseMsfor hotspot concentration.
10. Related Documentation
docs/Performance-Analysis-Guide.mddocs/Performance-Logging-Guide.mddocs/Performance-Optimizations-Summary.mddocs/AzureSql-EndUser-Guide.md