Questions tagged [performance-testing]

Performance Testing: The process of testing to determine the performance of a software product. Performance Testing is the process of identifying and eliminating application or system performance bottlenecks by exercising actual expected user patterns.

Performance testing is an empirical, technical investigation conducted
to provide stakeholders with information about the quality of the product 
or service under test with regard to speed, scalability and/or stability 
characteristics.
Cem Kaner

Performance testing is a method of investigating quality-related characteristics of an application that may impact actual users by subjecting it to reality-based simulations.

Performance tests determine end-to-end timing (benchmarking) of various time-critical business processes and transactions under low load, but with a production sized database.

Performance goals are expressed as a maximum allowable response time at a pre-determined number of concurrent users.

5268 questions
1620
votes
6 answers

Try-catch speeding up my code?

I wrote some code for testing the impact of try-catch, but seeing some surprising results. static void Main(string[] args) { Thread.CurrentThread.Priority = ThreadPriority.Highest; Process.GetCurrentProcess().PriorityClass =…
Eren Ersönmez
  • 38,383
  • 7
  • 71
  • 92
319
votes
10 answers

Timing a command's execution in PowerShell

Is there a simple way to time the execution of a command in PowerShell, like the 'time' command in Linux? I came up with this: $s=Get-Date; .\do_something.ps1 ; $e=Get-Date; ($e - $s).TotalSeconds But I would like something simpler like time…
Paolo Tedesco
  • 55,237
  • 33
  • 144
  • 193
197
votes
2 answers

Why is TensorFlow 2 much slower than TensorFlow 1?

It's been cited by many users as the reason for switching to Pytorch, but I've yet to find a justification/explanation for sacrificing the most important practical quality, speed, for eager execution. Below is code benchmarking performance, TF1 vs.…
187
votes
13 answers

How do I install jmeter on a Mac?

We want to use JMeter. I've downloaded the production version as directed in the user manual at http://jmeter.apache.org/usermanual/get-started.html But how do I get started and install the software? I don't know java and I can't find any…
Michael Durrant
  • 93,410
  • 97
  • 333
  • 497
78
votes
4 answers

Entity Framework Vs Stored Procedures - Performance Measure

I'm trying to establish how much slower Entity Framework is over Stored Procedures. I hope to convince my boss to let us use Entity Framework for ease of development. Problem is I ran a performance test and it looks like EF is about 7 times slower…
77
votes
6 answers

Testing with JMeter: how to run N requests per second

I need to test if our system can perform N requests per second. Technically, it's 2 requests to one API, 2 requests to another, and 6 requests to third one. But the important thing that they should happen simultaneously - so 10 requests per…
alexeypro
  • 3,633
  • 7
  • 36
  • 49
61
votes
2 answers

Why is the execution time of this function call changing?

Preface This issue seems to only affect Chrome/V8, and may not be reproducible in Firefox or other browsers. In summary, the execution time of a function callback increases by an order of magnitude or more if the function is called with a new…
Lewis
  • 4,285
  • 1
  • 23
  • 36
54
votes
8 answers

Best way to convert IEnumerable to string?

Why isn't it possible to use fluent language on string? For example: var x = "asdf1234"; var y = new string(x.TakeWhile(char.IsLetter).ToArray()); Isn't there a better way to convert IEnumerable to string? Here is a test I've made: class…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
52
votes
9 answers

Java Performance Testing

I want to do some timing tests on a Java application. This is what I am currently doing: long startTime = System.currentTimeMillis(); doSomething(); long finishTime = System.currentTimeMillis(); System.out.println("That took: " + (finishTime -…
mainstringargs
  • 13,563
  • 35
  • 109
  • 174
47
votes
4 answers

Is JUnit the right tool to write performance tests?

In the last week I've created two classes which my team expressed some concerns about in regards to their performance. To evaluate my code I wrote some simple JUnit tests which exercised these classes by building rich sets of test data, then feeding…
Freiheit
  • 8,408
  • 6
  • 59
  • 101
44
votes
4 answers

Prometheus - Convert cpu_user_seconds to CPU Usage %?

I'm monitoring docker containers via Prometheus.io. My problem is that I'm just getting cpu_user_seconds_total or cpu_system_seconds_total. How to convert this ever-increasing value to a CPU percentage? Currently I'm…
M156
  • 1,044
  • 1
  • 12
  • 29
42
votes
1 answer

Measure full page size in Chrome DevTools

I've been googling for some time but haven't found any clear solution for this. I want to measure full webpage weight / size (all document + scripts + fonts + styles etc.). I know the network tab in the devtools has size/content - but I want to have…
41
votes
6 answers

I need a slow C# function

For some testing I'm doing I need a C# function that takes around 10 seconds to execute. It will be called from an ASPX page, but I need the function to eat up CPU time on the server, not rendering time. A slow query into the Northwinds database…
Sisiutl
  • 4,915
  • 8
  • 41
  • 54
39
votes
4 answers

How to load 100 million records into MongoDB with Scala for performance testing?

I have a small script that's written in Scala which is intended to load a MongoDB instance up with 100,000,000 sample records. The idea is to get the DB all loaded, and then do some performance testing (and tune/re-load if necessary). The problem is…
Mike Cialowicz
  • 9,892
  • 9
  • 47
  • 76
34
votes
1 answer

What is [Cycle Detected] with memory leak?

Visual Studio 2017 Community Edition I am trying to understand/use the Performance Profiler's Memory Usage in what I feel must be a memory leak in my application (MVVM with custom controls). Three snapshots were taken: Before opening my suspect…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
1
2 3
99 100