Questions tagged [performance-measuring]
27 questions
21
votes
5 answers
How to measure the speed of a python function
I usually write codes(functions) on www.codefights.com as a competitor.So speed is one of the important part of the code . How can i measure the speed of a certain code in python language whether it is the lambda function or a def function .

Hissaan Ali
- 2,229
- 4
- 25
- 51
11
votes
3 answers
Why scikit learn confusion matrix is reversed?
I have 3 questions:
1)
The confusion matrix for sklearn is as follows:
TN | FP
FN | TP
While when I'm looking at online resources, I find it like this:
TP | FP
FN | TN
Which one should I consider?
2)
Since the above confusion matrix for scikit…

John Sall
- 1,027
- 1
- 12
- 25
6
votes
2 answers
Get same value for precision, recall and F score in Apache Spark Logistic regression algorithm
I have implemented a logistic regression for a classification problem. I get the same value for precision, recall and F1 score. Is it ok to have the same value? I also got this problem in implementing decision trees and random forest. There also I…

Thamali Wijewardhana
- 464
- 2
- 7
- 22
2
votes
0 answers
How can I get client-side and server-side performance metrics in Java EE (Servlets) project
There is a Java EE project. Its goal is getting client-side and server-side performance metrics (as much as possible) of some predeffined URL with some frequency and collect that data for visualisation and so on...
So I expect to recieve those…

Mykhailo Pavliuk
- 81
- 4
2
votes
1 answer
Custom performance measure when building models with mlr-package
I have just made the switch from caret to mlr for a specific problem I am working on at the moment.
I am wondering if anyone here is familiar with specifying custom performance measures within the resample() function.
Here's a reproducible code…

veghokstvd
- 183
- 1
- 8
2
votes
3 answers
How Can I evaluate WER (Word Error Rate) in ASR ( Automatic Speech Recognition)?
How Can I evaluate WER (Word Error Rate) in ASR ( Automatic Speech Recognition)?
For Example, If I have (Human Ref. Translation) for the sentences and Output of ASR.
I know the equation but I do not know how to calculate it. Do I enter punctuation…

Randa Taiseer
- 21
- 1
- 1
- 2
1
vote
0 answers
Technique to measure GPU utilization over a given period of time
We run an HPC cluster with GPUs. We would like to report the overall GPU utilization for the job. I know I can do it by periodically sampling in the background and doing the math. I was wondering if there was a tool where I could basically start…

William Allcock
- 134
- 2
- 9
1
vote
0 answers
Access PMU registers in ARM Streamline
I have a Qualcomm Development board with a Kryo 680 processor running a userdebug build of Android 11. I want to run some programs (e.g., benchmarks) and profile them using the ARM Streamline program. Unfortunately, some PMU registers return zero…

vic
- 359
- 4
- 18
1
vote
1 answer
How to control execution time of a process and handle exception across classes in c#
I appreciate your support in below:
I have function getCode(processURL_) , that is complex function and has many function works in the underlying of it, and consume time, so I want to monitor the execution time and stop it if it exceeds certain…

kingbode
- 131
- 2
- 8
1
vote
1 answer
Why are my r^2 values so consistently negative?
I'm not sure if the problem is with my regression estimator models, or with my understanding of what the r^2 measure-of-fittedness actually means. I am working on a project using scikit learn and ~11 different regression estimators in order to…

SubtleHyperbole
- 23
- 1
- 4
1
vote
0 answers
How do I get detailed flamegraphs with the flame crate for code written using Rayon?
I'm trying to get some performance metrics using the flame crate with code I've written using Rayon:
extern crate flame;
flame::start("TAG-A");
//Assume vec is a Vec
vec.par_iter_mut().filter(|a| a == 1).for_each(|b| func(b));
//func(b)…

Darakian
- 619
- 2
- 9
- 22
0
votes
0 answers
Measure the time it takes to store data in the blockchain using Hyperledger Fabric
I used Hyperledger Fabric to build an application. For, chaincode and api I used JavaScript.
Now, I want to find out how much time it takes to store the data in the ledger. How can I do this?

Mallika
- 3
- 3
0
votes
0 answers
Clientside Redirect 'chrome-error' in PageSpeed
I have a site that ask for Location permission in the first moment, with that information, reload the page for set it. When I use PageSpeed Insights (https://pagespeed.web.dev/) for measure performance it throws the next error of redirect:
We…
0
votes
1 answer
TensorFlow.js prediction time is difference between the first trial and followings
I am testing to load the TensorFlow.js model and trying to measure how many milliseconds it takes to predict. For example, the first time, it takes about 300 milliseconds to predict value but the time is decreased to 13~20 milliseconds from the…

hihi
- 13
- 2
0
votes
1 answer
Function CPU time additivity in the vtune measurements
Suppose I have the following call structure:
funcA() -> funcB() -> funcC()
funcB() -> funcC(), funcD()
In the VTune results (uarch-exploration with hotspots results), the CPU times of individual functions are shown. My question is whether the cpu…

Harsh Kumar
- 97
- 6