problem about performance-testing-Collection of common programming errors


  • bholanath
    c performance gcc performance-testing cpu-architecture
    I am accessing a shared library (shared array data structure)from program1 and find the access time to read all elements of that array. I got around 17000 ticks while only Program1 executed alone.Now when I execute program2 (having empty while loop to hold it from termination) in another tab first , then run program1 and measure the access time to read all elements of that array. To my surprise now I am getting 8000ticks as compared to previous scenario where only Program1 executing.It looks lik

  • bholanath
    c linux shared-libraries performance-testing cpu-architecture
    Can anyone explain these results in C ? Access time after sleep is LOWER whereas Higher access time is expected. CASE 1 : Only program1 (check.c) is running. No other program is running. After sleep I am getting HIGHER access time to access 4K shared library data.CASE 2 : First I run dummy.c in one terminal, and then run check.c in other tab. Before going to sleep I am getting higher access time, but after sleep I am getting LOWER access time than before going to sleep to access 4K shared librar

  • Erogol
    matlab performance-testing
    I want to be able to measure performance of my code and find the lacking parts. What is the proper way to do that in Matlab? I know I can use just tic: and toc; functions to see the time passing but there might be more convenient way.

  • Stormfjes
    performance-testing loadrunner
    We have recently started using the truClient protocol, but we have problems when it comes to multiplying wait time (Like the functionality for multiplying think time in http web scripts). The only value we can find is “wait time”, but there is no “multiply wait time” setting in runtime settings in Performance Center.We thought about having an external param file and using a value there as base for multiplying think time, but I’m not sure this is very ideal. Is there a “best practice” way to mult

  • scott.korin
    vb.net visual-studio-2010 debugging visual-studio-debugging performance-testing
    In our VB6 applications, we added a few utility functions for tracking the amount of time spent in a function. We did this to track performance bottlenecks.Basically, how it worked was there were two utility functions: StartTickCount() and EndTickCount(). You would pass the name of the function in each, and the functions would use a dictionary to get the tick count when StartTickCount() was called, and then subtract the tick count when EndTickCount() was called. This wasn’t perfect because it

  • Nashibukasan
    c# visual-studio-2010 selenium-webdriver performance-testing
    Currently I am noticing my automated tests (CodedUI) are running a bit slow at times. I want to run a performance profiling tool on them as they run through VS2010. I have tried to use Red Gate’s ANTs Profiler but am confused as to what process (or other?) I am supposed to attach it to.The closest I came was by starting the Profiler from commandline and having a Mstest.exe call that runs a few tests as the process argument. This only returns me VS method performance and not my own test code.//e.

  • Justin Dearing
    powershell performance-testing integer-division
    Microsoft technet suggests [Math]::Floor([int]$a / [int]$b) for integer division. I believe that [int][Math]::Floor($a / $b) is both more readable as well as more performant due to one less cast operation. I have proven both methods equivalent. However, I cannot get consistent results. My methodology involves repeating both methodologies 10,000 times and measuring the results with the Measure-Command cmdlet. However cannot constuct a test where one test performs better than another test repeated

  • nairboon
    performance computer-science performance-testing measurement perf
    In parallel systems every process has an impact onto other processes, because they all compete for several scarce resources like cpu-caches, memory, disk I/O, network, etc.What method is best suited for measuring interference between processes? Such as Process A & B each access the disk heavily. So running them parallel will probably slower then running sequential (individual runtime). Because the bottleneck is the hard drive.If I don’t know exactly the behaviour of a process (disk-, memory-

  • Thorbjørn Ravn Andersen
    java scala jvm performance-testing
    I am a very proficient C# developer, but need to start writing code that works on the JVM. The Java language is feature poor compared to C# these days, so I was interested in the features that Scala offers. However, when hearing that in Scala, all operators are simply methods, I became suspicious of the performance impact that would have on math-heavy computations (which is important for the types of applications my team writes)So I ran some simple int based tests, and find that Scala is about

  • Alies Belik
    jmeter performance-testing beanshell jmeter-plugins
    I have a Jmeter script in which I want to publish 1500 events in 10 mins duration. Is it possible to configure this using “Ultimate Thread Group” or “Throughput Shaping Timer”? If yes, then how?I tried using the default thread group in which I used “Number of threads” to 30 & “Loop Count” as 50, so as to make 1500 events. But, how can I achieve this to publish 1500 events in 10 mins?I am using JMS Point-to-Point as my Sampler.

  • Marc-André Lafortune
    ruby performance-testing ruby-prof
    Attempting to profile the difference in runtime between “1+1” and “1×2” using Ruby and the gem ruby-prof.Install the gem and hacked together some code that appears to work, but does not give me the answer I’m looking for, that being the difference in runtime.Is this possible, and if so, what code would give me this answer.This code appears to work, but does not allow me to see a runtime difference.require ‘ruby-prof’result = RubyProf.profile do 1+1 end printer = RubyProf::GraphPrinter.new(result

  • Thomas Stringer
    performance query performance-testing
    As a software developer and an aspiring DBA, I try to encorporate best practices when I design my SQL Server databases (99% of the time my software sits on top of SQL Server). I make the best possible design prior to and during development.But, just like any other software developer, there is added functionality, bugs, and just change of requirements that demands altered/created database objects.My question is, should query tuning be proactive or reactive? In other words, a few weeks after som

  • Fulproof
    sql-server query-performance optimization database-tuning performance-testing
    I have the task to improve the performance of a SQL Server 2012 database (one of 4 in an instance) by 60% confirmed by corresponding statistics. So, I need to measure “performance” of the RDBMS database before performance tuning and optimization and after.Which metrics are better suited for this? Trying to answer the obvious questions ahead …I/O (hardware) bottlenecks are absent since the SQL Server runs on a virtual rack having plenty of physical resources under it. The database is used by a

  • CadentOrange
    postgresql performance performance-testing vacuum
    I’m trying to get PostgreSQL to aggressively auto vacuum my database. I’ve currently configured auto vacuum as follows:autovacuum_vacuum_cost_delay = 0 #Turn off cost based vacuum autovacuum_vacuum_cost_limit = 10000 #Max value autovacuum_vacuum_threshold = 50 #Default value autovacuum_vacuum_scale_factor = 0.2 #Default valueI notice that the auto vacuum only kicks in when the database is not under load, so I get into situations where there are far more dead tuples than live tuples. See the atta

  • notfed
    sql-server performance-testing
    I have a table which might be causing excessive delays during insertion of new records. I’d like to run a test against the database, measuring how long it takes to select, insert, and delete from the table.Are there any built-in tools to do this against an SQL Server database table?

  • andreas-h
    postgresql performance performance-testing postgresql-9.1
    I’m running a Postgres 9.1 database on a Debian Squeeze server. It’s a paravirtualized XEN guest system with 4G RAM and 1 CPU core, based on a i7-2600 host system with Linux software-RAID1.I’m trying to get a feel for how fast/slow my setup is, and am running pgbench. This is the command I’ve been running to initialize pgbench:pgbench -i -s 100 -U jboss -p 5432 -h 127.0.0.1 project2_coreThe first 5000000 tuples run by very quickly, but then it gets slower and slower. Now, it displayed10000000 tu

  • michaelb958
    java android performance-testing
    I’m writing an app now which uses four main buttons that take up most of the screen. Each one has three animations: a 12 frame introductory animation, a 33 frame looping animation, and an animation that closes based on the current frame the loop was clicked.Images around around 250 250 to 450 250 in height. Loading all of these as the app loads has turned out to not only cause slow initial loading, but also has resulted in Out of Memory Exceptions on devices with smaller available memory.The pro

  • Cliff
    objective-c ios remote-debugging performance-testing
    I have an iOS application that is exhibiting performance issues. The problem is that the developers can’t reproduce it. And the user who can reproduce the problem is physically nowhere near the developers. This means we can’t use Instruments to help debug the problem.Is there anyway we can do method level timing?

  • ZH Tonmoy
    selenium-webdriver jmeter load-testing performance-testing
    I was running 5K users on a website while load testing with Jmeter. It was taking too long time and my colleagues were not able to access the site. Then i stop the test. now the website is totally dead and is not accessible. What should I do now?

  • Srivastava
    jmeter load-testing performance-testing
    I am recording a scenario with Jmeter where user clicks on categories under a tab in web application. All the categories when clicked are getting recorded, but there is one category clicking on which I got an exception. Although when I checked that link by switching off the proxy server, the link works fine. This is what the exception is shown:at java.net.URI$Parser.fail(Unknown Source) at java.net.URI$Parser.checkChars(Unknown Source) at java.net.URI$Parser.parseHierarchical(Unknown Source) at

  • Kyle
    apache soap jmeter performance-testing
    I have a CSV Data Config which is looking up a number list. This number list goes from 1 to 4050.I have 4050 XML files which are to be transmitted via SOAP-XML. Named 1.xml, 2.xml etc..As you can see my intention is that my thread iterates through the xml files, sending them in order of 1,2,3,…It does do this however when my load test has finished, the number of samples that has been sent is 3278 (this is seen via View Results in Table)I have triple checked my CSV file has 4050 numbers, I have

  • Saravanakumar Marudhachalam
    performance performance-testing performancecounter query-performance
    I m using Webload to record a Java based web application. In that I m facing internal server error while replaying the script generated. wlHttp.FormData[“UNKNOWN”] = “w1.cursorLocation.x=666&w1.cursorLocation.y=396&uiRoot=w1&requestCounter=25″some junk values along with user data are passed in the post syntax. How to avoid this junk values. In some of the other request I need to parameterize the user data which are getting passed along with junk values. How to exclude this junk value

Web site is in building