FAQ Database Discussion Community


Why does Math.abs take so much longer than Math.round?

javascript,performance,algorithm,profiling,profiler
I know Math.abs() and Math.round() are very different functions, but I assumed they would have a relatively similar efficiency. console.time('round'); for (var i = 0; i < 100000; i++) { var a = Math.random() - 0.5; Math.round(a); } console.timeEnd('round'); console.time('abs'); for (var i = 0; i < 100000; i++) {...

Web Profiler not showing up in dev

php,symfony2,profiler
Im using Symfony2 (const version="2.5.10") and using xampp with PHP version 5.5.19. I got a problem that in my dev environment the profiler didn't show up.What could be the problem? config.yml imports: - { resource: parameters.yml } - { resource: security.yml } framework: #esi: ~ #translator: { fallback: "%locale%" }...

Hide long description of function while profiling with gprof2dot

g++,profiling,profiler,gprof
I use gprof2dot to profile my application: ./gprof2dot.py -f callgrind callgrind.out.x | dot -Tsvg -o output.svg source Even though, it gives me beautiful graphical profiling, the name of each function in each box is very long and goes far over screen size. Since boost library has high usage of templates....

Swift app only performing reasonably when built for Xcode's Time Profiler?

ios,xcode,performance,swift,profiler
I'm working on an app that processes large float arrays, and I was extremely disappointed to find that Swift is apparently a good 10x slower than Python when running on my iPhone 5. I guess that can't be true, but I would have thought it true had I not tested...

Comparison of two separate Data Access Layers (DALs) of a project

c#,visual-studio-2013,profiling,profiler
I have two separate DALs of a project and I want to compare them to see which one is the better DAL with regards to performance. The performance metrics that I have in mind are memory, execution time of queries etc. The problems that I have faced are: 1) I...

Is it possible to use the MVC path in XDebugs profiler outout filename?

php,model-view-controller,xdebug,profiler,kcachegrind
I am using XDebug to profile a large MVC application and it would be much easier to profile individual requests by their URI rather than filename (.php) as several requests are made via internal functions, resulting in multiple grind files for a single page refresh. I have seen %p =...

How to read sbcl deterministic profiler output?

profiling,common-lisp,profiler,sbcl
How is the output of the deterministic profiler of sbcl to be interpreted? seconds | gc | consed | calls | sec/call | name ------------------------------------------------------- seconds (total execution time),calls (amount overall calls),sec/call (average time per call), and name (well the name of the function) are quite straight forward. What does...

Is there any profiler for laravel like codeigniter's?

php,codeigniter,laravel,profiler
I was searching for a solution a couple hours but it seems like so far there isn't any non-outdated solution. P.S. such a framework with huge fuss like laravel makes me surprise. that was a great disappointment......

The proper way of accessing heavy object members of class

c#,.net,performance,profiler
I have a class like this: class BuildingFloor { // The list of building rooms; // Room is "heavy" object with many-many fields List< Room > m_rooms; // The list of all apertures on the floor List< Aperture > m_apertures; ... List< Room > Rooms { get { return m_rooms;...

Why is my (newbie) code so slow?

python,performance,profiler
I'm learning python and came across this example of a simulation of a model I've seen before. One of the functions looked unnecessarily long, so I thought it would be good practice to try to make it more efficient. My attempt, while requiring less code, is about 1/60th as fast....