Skip to content

Instantly share code, notes, and snippets.

View mukeshpanchal27's full-sized avatar
🎯
Focusing

Mukesh Panchal mukeshpanchal27

🎯
Focusing
View GitHub Profile
@mukeshpanchal27
mukeshpanchal27 / README.md
Created November 6, 2023 09:24
Profile a modified version of `get_query_template` to see if we can speed it up.

Benchmark for get_query_template

Profile a modified version of get_query_template to see if we can speed it up.

This is used to benchmark the patch introduced for Trac ticket #59315.

Average time spent for 10 x 18 iterations.

TT3 ( Block theme )

Benchmarks for WP 6.3.2 > 6.4-RC2

The following profiling runs were run locally on my computer using the compare-wp-performance script, comparing WP 6.3.2 to 6.4-RC2. An automated run using GH actions can be found here:

Run 1

Web Vitals (Block Theme)

| Metric | Before | After | Diff % | Diff abs. |

@mukeshpanchal27
mukeshpanchal27 / WP-6.3.2-6.4-RC1.md
Created October 18, 2023 12:53
WP 6.4-RC1 Benchmarks

GH Action - Benchmark comaprisons for WP 6.1 – 6.4 (beta)

In order to compare performance benchmarks across the past several WP versions, I reran benchmarks between each WP version starting from 6.1, comparing the difference between the next major version. Links to the full benchmark summary is included below, with a summary of the change to LCP and Server Timing at the 50th percentile (p50).

WP 6.1.3 > 6.2.2

https://github.com/mukeshpanchal27/compare-wp-performance/actions/runs/6504111864

Twenty Twenty-three (block)

  • -3.18% p50 LCP

Web Vitals (Block Theme)

Metric Before After Diff % Diff abs.
FCP (p10) 378.45 ms 378.98 ms 0.14% 0.53 ms
FCP (p25) 391.15 ms 383.95 ms -1.84% -7.20 ms
FCP (p50) 395.75 ms 398.75 ms 0.76% 3.00 ms
FCP (p75) 410.42 ms 429.95 ms 4.76% 19.53 ms
FCP (p90) 455.36 ms 449.92 ms -1.19% -5.44 ms
LCP (p10) 378.45 ms 378.98 ms 0.14% 0.53 ms
@mukeshpanchal27
mukeshpanchal27 / wp-6.4-beta2<>6.3.1.md
Last active October 5, 2023 04:50
WP 6.4 Beta 2 – Performance Measurements (local)

WP 6.4 Beta 2 Benchmarks

Compared to WP 6.3.1 via https://github.com/swissspidy/compare-wp-performance, based on running:

./run.sh latest https://wordpress.org/wordpress-6.4-beta2.zip

Overview

| Metric | Run 1 Before | Run 1 After | Run 1 Diff % | Run 1 Diff abs. | Run 2 Before | Run 2 After | Run 2 Diff % | Run 2 Diff abs. |

@mukeshpanchal27
mukeshpanchal27 / wp-6.4-beta2<>6.2.2.md
Created October 4, 2023 14:58
WP 6.4 Beta 1 – Performance Measurements (local)

The following tables are local performance measurements of WP 6.2.2 and 6.4 beta 1 that I took using the CLI from https://github.com/swissspidy/compare-wp-performance.

Run 1

Web Vitals (Block Theme)

Metric Before After Diff % Diff abs.
FCP (p10) 400.49 ms 185.67 ms -53.64% -214.82 ms
FCP (p25) 403.65 ms 195.1 ms -51.67% -208.55 ms
FCP (p50) 414.6 ms 202.35 ms -51.19% -212.25 ms
@mukeshpanchal27
mukeshpanchal27 / README.md
Last active February 1, 2023 06:33
Mini MU plugin for Server-Timing metric

The MU Plugin should record and report the following metrics via the Server-Timing API:

  • wp-before-template: Time it takes from WordPress core's timer_start() call until the end of template_redirect action
  • wp-template: Time it takes from end of template_redirect action to start of shutdown
  • wp-total: Sum of both of the above metrics
@mukeshpanchal27
mukeshpanchal27 / README.md
Created November 15, 2022 06:26
Profile a modified version of wp_kses_bad_protocol to see if we can speed it up.

Benchmark Bad Protocol Detection Change - Approach 2

Profile a modified version of wp_kses_bad_protocol to see if we can speed it up.

This is used to benchmark the patch introduced for Trac ticket #22951.

Results of the benchmark are found in a shared Google Sheet.

@mukeshpanchal27
mukeshpanchal27 / README.md
Last active November 15, 2022 06:21
Profile a modified version of wp_kses_bad_protocol to see if we can speed it up.

Benchmark Bad Protocol Detection Change - Approach 1

Profile a modified version of wp_kses_bad_protocol to see if we can speed it up.

This is used to benchmark the patch introduced for Trac ticket #22951.

Results of the benchmark are found in a shared Google Sheet.