摘要
动态Web页的静态化处理不仅可以减少用户请求等待的时间,而且还可以增强应用系统的运行性能,更重要的是可以有效的降低并发访问量较大时服务器的工作负载。针对Web应用项目响应时间长、运行效能低下的问题,提出了一种基于Smarty模板引擎的Web页真静态化处理的方案,并对纯动态、真静态和伪静态三种情况下分别进行了服务器的压力测试,结果表明在同等并发数量访问的环境中,真静态化处理方案中用户请求等待时间最短,服务器传输速率最快,在解决好HTML文件存储空间的情况下,是中大型Web应用项目常用的静态化处理方案。
The static operation of dynamic Web can not only save the users’ time for waiting but also can increase the application system’s performance ,what’s more ,it can effectively decrease the server’s burden under enormous access .On the problem of long time Web application item takes and the low effective performance ,this thesis proposes a method of Web real static operation based on Smarty template engine ,and organizes the pressure test of the server respectively under the cir‐cumstances of pure dynamic ,real static and disguised static ,the result indicates ,in the situation of spontaneous concurrent amount access ,it takes user’s the shortest time to wait in real static operation ,the server transform is the most efficient ,un‐der the premise of HTML file storage space is well solved ,is the common static operation method in the huge Web applica‐tion .
出处
《计算机与数字工程》
2015年第2期295-298,333,共5页
Computer & Digital Engineering
关键词
模板引擎
真静态
伪静态
模板标签
压力测试
template engine
true static
pseudo-static
template tags
stress test