Is there any performance gap between cloudflare Pages and Workers?


now I comparing performance between Cloudflare Pages and Cloudflare Workers for JAMStack-Based Website

I have heard that Cloudflare Pages uses workers when calling function. So It seems like also no difference.

But, when using only Cloudflare Workers for JAMStack website, routing is processd in workers. for example

addEventListener('fetch', (event: any) => {

async function handleRequest(event: any) {
  const url = new URL(request.url);

  if (/\.\w+$/.test(url.pathname)) {

    // If path ends with extension, serve static file
    return handleStaticAssets(event, url);

  } else {

    // Otherwise Server side render qwik
    const request = event.request;
    return handleQwik(event, request);


on the other hand, routing process of Cloudflare Pages is not in workers (as I know). so I think that performance will vary between Pages and Workers

Is there any reading materials about this ? Thank you. :grinning:

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.