Skip to content
All library documents

Benchmarking MetaTrader 4 and 5 Workloads Across PC Hardware

Article MQL5 code base

Summary

The document describes a script intended to compare MetaTrader 4 and MetaTrader 5 performance on a computer or hosted server. It combines procedural and object-oriented tests covering calculations, arrays, sorting, strings, graphical objects, canvas rendering, and copying a large set of minute bars. The script runs tests sequentially and reports elapsed time, allowing users to compare terminal and machine performance across workloads.

A sample run reports results for one workstation, with MetaTrader 5 faster in several computational tests and slower in others, including some string and graphics operations. The document also suggests comparing runs across hosted environments to assess provider performance. Its evidence is a single machine's benchmark table, so it does not establish general hardware recommendations or representative performance across systems. Results depend on the particular tests, terminal builds, and configuration; the benchmark is useful as a comparative diagnostic rather than proof that one platform or component is universally faster.

Key ideas

  • The benchmark compares MetaTrader 4 and 5 using a range of computational and terminal workloads.
  • Each test records elapsed time, and the script presents the results in a table.
  • Both procedural and object-oriented implementations are included for many tests.
  • The sample shows that relative performance varies by workload.
  • A single workstation run cannot establish general hardware or platform performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.