简体   繁体   English

Postman 请求越来越快

[英]Postman requests are getting faster and faster

Every postman requests spent less and less time每个 postman 请求花费的时间越来越少

在此处输入图像描述

This is the first request这是第一个请求

在此处输入图像描述

And this is second.这是第二个。

Why does it work like this?为什么它会这样工作? I saw this when I was writing spring application and now the same with quarkus.我在编写 spring 应用程序时看到了这一点,现在与 quarkus 相同。

Similar to running your JSP pages when running a Spring application, at the first time, everything is getting compiled, built, rendered, and presented, and many other operations, but if you hit refresh for that JSP page again, it will happen much faster because it does not compile, build and rendered every time, it is just being present.类似于在运行 Spring 应用程序时运行 JSP 页面,第一次,一切都在编译、构建、呈现和呈现以及许多其他操作,但是如果您为该 Z2D7FCA4F5778E4B29B6069141 页面点击刷新,它会再次发生得更快因为它不是每次都编译、构建和渲染,它只是存在。

This is just a very simple example to get an idea, you are probably not using JSP pages, but the concept is still the same.这只是一个非常简单的示例,您可能没有使用 JSP 页面,但概念仍然相同。

Basically, first requests in theory do like 10 tasks, but after everything is done, the number of tasks is much lower, hence the speed.基本上,理论上第一个请求确实像 10 个任务,但在一切都完成后,任务的数量要少得多,因此速度也快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM