简体   繁体   English

用于测试繁重的javascript脚本的计算机/浏览器性能较慢

[英]Slow computer/browser performance for testing heavy javascript script

I am working on a javascript/html5 gif editor and i am wondering how can i test in a slower environment. 我正在使用javascript / html5 gif编辑器,我想知道如何在较慢的环境中进行测试。 It works great on my pc but since its using heavy javascript and algorithms i need to see if it works smoothly with a less powerful processor. 它在我的电脑上工作得很好但是由于它使用了大量的javascript和算法,我需要看看它是否能够用功能较弱的处理器顺利运行。

I recommend setting up a virtual machine using VMware Player or VirtualBox . 我建议使用VMware PlayerVirtualBox设置虚拟机。 You can adjust attributes like processor speed, number of processor cores, and memory. 您可以调整处理器速度,处理器核心数和内存等属性。 This will help you test your code out in a slower environments. 这将帮助您在较慢的环境中测试代码。

What an odd request! 多么奇怪的要求! Usually people want things faster and faster. 通常人们想要更快更快的东西。

  • Using a Virtual Machine is a good solve here. 使用虚拟机是一个很好的解决方案。 It allows you to allocate exactly how powerful the computer is, and might make a very suitable testing environment for you. 它允许您准确分配计算机的强大功能,并可能为您创建一个非常合适的测试环境。
  • If you want inefficiency, look no further than Internet Explorer. 如果您想要效率低下,请继续浏览Internet Explorer。 You just need to make sure it supports your HTML5 and your JS. 您只需要确保它支持您的HTML5和您的JS。
  • Using older versions of some of the more capable browsers might be a good idea too. 使用一些功能更强大的浏览器的旧版本也是一个好主意。
  • Also, and this is a bit of a hack, opening your program several times in the same browser might be something to look into. 此外,这是一个黑客攻击,在同一浏览器中多次打开您的程序可能需要考虑。 It will hog up the RAM, and your processor will be under more stress and will not perform as well as it would in a normal situation. 它会占用RAM,你的处理器将承受更大的压力,并且不会像正常情况那样表现得那么好。

Just thought I'd throw out every suggestion I could think of :) 只是以为我会抛弃我能想到的每一个建议:)

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

相关问题 如何衡量客户端计算机上javascript网页的性能? - How can I measure the performance of a javascript heavy webpage on a client computer? 大量HTML,缓慢的浏览器解压缩 - Heavy HTML, slow browser decompression Javascript播放声音性能重吗? - Is playing sound in Javascript performance heavy? 当在EE2中使用float:left并带有一些沉重的javascript时,非常缓慢的缓慢滚动(对于浏览器而言) - very buggy slow scroll (native to browser) when float:left is used in EE2 with some heavy javascript 在Visual Studio浏览器中启用JavaScript以进行Web性能测试 - Enabling JavaScript in Visual studio browser opened for Web Performance testing 性能慢的自定义脚本 GAS - Slow Performance Custom Script GAS 谷歌脚本性能下降 - Google Script Performance Slow Down 网站性能测试:如何最好地估算计算机性能? - Website Performance Testing: How best to approximate computer performance? 如何对沉重的JavaScript Web应用程序进行性能分析? - How to do performance analysis of a heavy JavaScript web app? 哪些Android平板电脑可用于测试Javascript繁重的Web应用程序 - Which Android tablets are usable for testing Javascript heavy web applications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM