JsonParserByLeo/Test/Ben/BenAsm.mq5

42 lines
1.5 KiB
MQL5
Raw Permalink Normal View History

2026-06-28 18:47:50 -05:00
//+------------------------------------------------------------------+
//| BenAsm.mq5 |
//| Copyright 2026, Niquel Mendoza. |
//| https://www.mql5.com/ |
//+------------------------------------------------------------------+
#property copyright "Copyright 2026, Niquel Mendoza."
#property link "https://www.mql5.com/"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
#include "..\\..\\Src\\JsonNode.mqh"
#resource "twitter.jsonasm" as const string g_json_data
//+------------------------------------------------------------------+
//| Script program start function |
//+------------------------------------------------------------------+
void OnStart()
{
//---
TSN::CJsonParser parser;
parser.Assing(g_json_data);
Sleep(200);
ulong a = GetMicrosecondCount();
for(int i = 0; i < 1000; i++)
{
parser.ParseAssembly();
}
ulong b = GetMicrosecondCount() - a;
Print("Time: ", b);
//---
/*
2026-07-20 12:04:54 -05:00
2026.07.20 12:04:11.709 BenAsm (EURUSD,H1) Time: 651908
2026.07.20 12:04:14.262 BenAsm (EURUSD,H1) Time: 652301
2026-06-28 18:47:50 -05:00
*/
}
//+------------------------------------------------------------------+