Why is the execution time of this function call changing?

V8 developer here. It’s not a bug, it’s just an optimization that V8 doesn’t do. It’s interesting to see that Firefox seems to do it… FWIW, I don’t see “ballooning to 400ms”; instead (similar to Jon Trent’s comment) I see about 2.5ms at first, and then around 11ms. Here’s the explanation: When you click only … Read more

Testing with JMeter: how to run N requests per second

You could use ConstantThroughputTimer. Quote from JMeter help files below: 18.6.4 Constant Throughput Timer This timer introduces variable pauses, calculated to keep the total throughput (in terms of samples per minute) as close as possible to a give figure. Of course the throughput will be lower if the server is not capable of handling it, … Read more

Entity Framework Vs Stored Procedures – Performance Measure

There are some things you can do to optimize your query. Here on MSDN you can find a nice overview. But to be honest, a stored procedure with manual mapping will always be faster in performance. But ask yourself, how important is performance? In most projects, development time is way more important then performance. What … Read more

Why is TensorFlow 2 much slower than TensorFlow 1?

UPDATE 8/1730/2020: TF 2.3 has finally done it: all cases run as fast, or notably faster, than any previous version. Further, my previous update was unfair to TF; my GPU was to blame, has been overheating lately. If you see a rising stem plot of iteration times, it’s a reliable symptom. Lastly, see a dev’s … Read more

Timing a command’s execution in PowerShell

Yup. Measure-Command { .\do_something.ps1 } Note that one minor downside of Measure-Command is that you see no stdout output. [Update, thanks to @JasonMArcher] You can fix that by piping the command output to some commandlet that writes to the host, e.g. Out-Default so it becomes: Measure-Command { .\do_something.ps1 | Out-Default } Another way to see … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)