服务器端客户端javascript vs嵌入式脚本. [英] Client side javascript vs Embedded script in server control.

查看:58
本文介绍了服务器端客户端javascript vs嵌入式脚本.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

"客户端javascript与服务器控件中的嵌入式脚本"有什么性能差异?

有人告诉我,客户端javascript更快.

请评论.

Hello,

Is there any performance difference in "Client side javascript vs Embedded script in server control"

Somebody tell me that client side javascript is faster.

please comment.

推荐答案

是的,虽然性能有所不同,但都适合于不同的情况.我们不能忽略任何人,因为它们的结合为我们提供了良好的便利.

阅读此内容

http://www.scribd.com/doc/3095639/ClientSide-vs-ServerSide-脚本5 [ ^ ]

http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=569 [ ^ ]
Yes there r difference in performance but both r suitable for different situation. we can not neglect any one because they combined give us good set of facility.

Read This

http://www.scribd.com/doc/3095639/ClientSide-vs-ServerSide-Scripting-5[^]

http://www.eggheadcafe.com/PrintSearchContent.asp?LINKID=569[^]


问题实际上没有任何意义.

如果在客户端和服务器端使用相同的脚本(但是怎么可能是相同的)比较性能,则它们的性能特征(例如,以纯CPU滴答度数衡量)并不能说明整个系统的总吞吐量.客户,这将取决于当前的状况和各种因素,首先取决于客户的活动.

特别是,一个重要因素是服务器主机通常比任何客户端计算机都忙着服务客户端.也就是说,即使客户端处理效率低得多,从服务器部分中删除部分工作负载并向客户端添加一些工作负载也比优化客户端部分脚本更为有效.

在许多情况下,在服务器上进行某些处理的选择并不取决于性能,而是取决于功能的一些重要因素,例如安全性或高可用性.

—SA
The question makes no sense practically.

If you compare performance if the same script (but how can it be the same?) on client and server side, their performance characteristics (say, measured in pure CPU ticks) do not say much about the total throughput of the whole system with all the clients and will depend on current situation and various factors, first of all, on the activity of the client.

In particular, one important factor is that the server host is normally much more busy serving clients than any of the clients machine. That said, removing part of the workload from server part and adding some workload to the client is much more effective than optimizing of the client part scripting, even if the client processing is much less efficient.

In many cases, the choice to do certain processing on the server is defined not by performance, but some important factors of functionality such as safety or high availability.

—SA



我认为您正在比较两个相等的事物,因为当服务器进程控件和呈现的html/javascript结果作为响应发送给客户端(浏览器)时,最终会在客户端上执行服务器控件中嵌入的javasripts.
Hi,
I think that you are comparing two things that are equal, because embeded javasripts in server controls are eventully executed on client when server process control and result with renderd html/javascript is sent as response to the client (browser).


这篇关于服务器端客户端javascript vs嵌入式脚本.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆