From 29c2e43a2b750d7e44ecd8e204de350ed14fd5b1 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 19 Feb 2024 16:08:58 +1300 Subject: [PATCH] DOC Update percentages for eagerloading benchmark --- en/04_Changelogs/5.1.0.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/en/04_Changelogs/5.1.0.md b/en/04_Changelogs/5.1.0.md index ca42a5600..b680d979d 100644 --- a/en/04_Changelogs/5.1.0.md +++ b/en/04_Changelogs/5.1.0.md @@ -146,10 +146,10 @@ foreach ($teams as $team) { In a test setup with looping through 100 DataObjects each with 100 related DataObjects for a total of 10,000 records per test run, the following performance improvements were observed for different types of relations (eager-loading vs not eager-loading): -- HasOne - 3227% faster (0.0078s vs 0.2595s) -- HasMany - 25% faster (0.1453s vs 0.1819s) -- ManyMany - 25% faster (0.1664s vs 0.2083s) -- ManyManyThrough - 16% faster (0.6586s vs 0.7681s) +- HasOne - ~97% faster (0.0078s vs 0.2595s) +- HasMany - ~20% faster (0.1453s vs 0.1819s) +- ManyMany - ~20% faster (0.1664s vs 0.2083s) +- ManyManyThrough - ~14% faster (0.6586s vs 0.7681s) Note that those observations were made using MySQL.