I have the following permalinks structure in mind for a new blog, now instead getting theoretical answers on which is best, i would like to find myself which is best in terms of speed. How can i find this? I tried using get_num_queries() but i find the results varying each time i access the blog.

Note: I am running a local XAMPP installation with WordPress on it and i am new to PHP, so any guidance is much appreciated.





I am expecting 5000 plus posts but pages wont exceed 10. Thought this might also help someone when replying back to my query. Thank You.

  • /%post_id%/%postname%/ is the fastest. /%category%/%postname%/ the slowest. /%post_id%//%postname%/ and /%post_id%/%postname%/ are the same.
    – gmazzap
    Apr 29, 2014 at 20:56
  • @G.M. not that we don't trust you, but answer with reasons or benchmarks for that would be in order :)
    – Rarst
    Apr 29, 2014 at 21:49
  • Why do you think URL rewrite would be bottleneck or one of bottlenecks in your site?
    – Rarst
    Apr 29, 2014 at 21:50
  • 1
    @Rarst for sure, for that reason I didn't write an answer but a comment :)
    – gmazzap
    Apr 29, 2014 at 22:09

1 Answer 1


Any speed differences between the various permalink structures is negligible. I mean, we're talking likely milliseconds of difference. Forget speed, just go with the structure that makes the most sense semantically for your site. On another note, it makes sense to go with a structure that will make the most sense for your users. For example, it makes sense to go with /category/post_name if you have a lot of categories/posts, as it makes navigation easier for users.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.