Best way to convert IEnumerable to string?
How about this to convert IEnumerable<char> to string: string.Concat(x.TakeWhile(char.IsLetter));
How about this to convert IEnumerable<char> to string: string.Concat(x.TakeWhile(char.IsLetter));
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
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
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
The easiest way to install it is using Homebrew: brew install jmeter Plugins are now included And to open it, use the following command (since it doesn’t appear in your Applications): open /usr/local/bin/jmeter
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
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
One of the Roslyn engineers who specializes in understanding optimization of stack usage took a look at this and reports to me that there seems to be a problem in the interaction between the way the C# compiler generates local variable stores and the way the JIT compiler does register scheduling in the corresponding x86 … Read more