Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Code benchmarking

Name: Anonymous 2007-01-28 8:46

Let's say I have 2 pieces of assembly code that do exactly the same thing. So is there any program out there that can benchmark and compare the two chunks of code, size- and speed-wise?

Name: Anonymous 2007-01-28 14:04

here's a bash script
du -sh prog1 prog2
time ./prog1
time ./prog2

Name: Anonymous 2007-01-29 14:37

>>1
get the specs of your CPU and time the stuff yourself by adding the cost of every instruction in the algorithm.

Name: Anonymous 2007-01-29 15:32

I suggest >>2's with millions of iterations, tested in a computer with normal loads. >>3 just got too hard to do, and there's a lot to consider. Pipelines, OoO, cache, multitasking and several sets of registers make it hard.

Name: Anonymous 2007-01-30 13:16

>>4
that's why I only work on Z80s!

Name: Anonymous 2009-01-14 13:20

SICP

Name: Anonymous 2009-03-06 5:28


The box at the   OP wanted to   say fuck you   need a RDBMS   backend for something   only kind of   target audience You   dont need all   the power of   the code indentation?

Name: Anonymous 2010-12-28 9:59

Name: Anonymous 2011-01-31 20:29

<-- check em dubz

Name: Anonymous 2011-02-03 3:15

Name: Sgt.Kabu썁㖦kimanࡊ鍷 2012-05-28 22:04

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List