App Engine SDK与App Engine Production有何不同

时间:2023-01-24 00:16:44

I am using the AppEngine SDK for developing a PHP based project. For the project I am using PageSpeed optimisations [1]. However when I compare the "Page Speed" results using the chrome developer toolbar [2] and I find the results very different.

我正在使用AppEngine SDK开发基于PHP的项目。对于该项目,我正在使用PageSpeed优化[1]。但是,当我使用chrome开发人员工具栏[2]比较“页面速度”结果时,我发现结果非常不同。

Results in Development SDK App Engine SDK与App Engine Production有何不同

开发SDK中的结果

Results in Production App Engine SDK与App Engine Production有何不同

生产结果

So question is why is there a significant difference in page optimisation? Shouldn't the SDK behave identical (or at-least close) to production environment? What other differences should I need to be aware of during development. It is hard to test page optimisations if Development and Production behave differently.

所以问题是为什么页面优化存在显着差异? SDK不应该与生产环境相同(或至少接近)吗?在开发过程中我还需要注意哪些其他差异。如果开发和生产行为不同,则很难测试页面优化。

[1] https://developers.google.com/speed/pagespeed/

[2] https://chrome.google.com/webstore/detail/gplegfbjlmmehdoakndmohflojccocli

1 个解决方案

#1


0  

The two environments have almost the same APIs, but one is running on your computer and the other is running on hundreds of servers and serving millions of users.

这两个环境具有几乎相同的API,但其中一个在您的计算机上运行,​​另一个在数百台服务器上运行,为数百万用户提供服务。

You are able to profile your app in development though.

您可以在开发中分析您的应用程序。

Profiling can help you understand why the "Page Speeds" are slow in production, and show you where your need to improve your code.

分析可以帮助您了解“页面速度”生产速度缓慢的原因,并向您展示改进代码的需求。

#1


0  

The two environments have almost the same APIs, but one is running on your computer and the other is running on hundreds of servers and serving millions of users.

这两个环境具有几乎相同的API,但其中一个在您的计算机上运行,​​另一个在数百台服务器上运行,为数百万用户提供服务。

You are able to profile your app in development though.

您可以在开发中分析您的应用程序。

Profiling can help you understand why the "Page Speeds" are slow in production, and show you where your need to improve your code.

分析可以帮助您了解“页面速度”生产速度缓慢的原因,并向您展示改进代码的需求。