Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: Perl regex speed

by eyepopslikeamosquito (Archbishop)
on Oct 27, 2022 at 04:24 UTC ( [id://11147726]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl regex speed
in thread Perl regex speed

Please do us all a favour and stop posting links to pretty pictures in .jpg files.

I would much rather see links that describe in detail how the measurements were done, with full source code of the benchmark programs along with exactly how they were compiled and run, so that others can independently run the benchmarks for themselves.

Replies are listed 'Best First'.
Re^6: Perl regex speed
by cavac (Parson) on Oct 27, 2022 at 11:45 UTC

    If a plot is required, one can be easily done in a way the text-based forum supports it (as long as the screen width is sufficient):

    Air pressure BME + 991.28 +--------------------------------------------------------- +--------------------------------------+ | + *** + + + + + + + + | 991.26 |-+ ******* + +-| | ***** ** ** **** + | 991.24 |** *** ***** *** **** + +-| |* * **** ** ** + | |* ****** ** **** ** * + | 991.22 |-+ ********** + +-| | * * **** +** | 991.2 |-+ ******* ** * +*** +-| | * ****** **** + ** | hPa 991.18 |-+ ** **** + * +-| | ** + *** *** | 991.16 |-+ + ******** +-| | + ** *** | 991.14 |-+ + *** +-| | + * | | + ***** | 991.12 |-+ + *** +-| | + ** * | 991.1 |-+ + ********* +-| | + + + + + + + + ****** | 991.08 +--------------------------------------------------------- +--------------------------------------+ 27.10 27.10 27.10 27.10 27.10 27.10 + 27.10 27.10 27.10 27.10 09:30 09:45 10:00 10:15 10:30 10:45 + 11:00 11:15 11:30 11:45

    I used Gnuplot to make this:

    set title "Air pressure BME" set datafile separator ";" set terminal dumb size 120,30 #set output "bme_pressure.png" set xlabel "Logtime UTC" set ylabel "hPa" set xdata time #set timefmt "%Y-%m-%d" #set xrange ["03/21/95":"03/22/95"] set format x "%d.%m\n%H:%M" set timefmt "%Y-%m-%d %H:%M:S" set key autotitle columnhead outside plot "bme_pressureonly.csv" using 1:2 title "" with lines

    The magic line here is:

    set terminal dumb size 120,30

    PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
      Well, you can run my code. Exactly. Use something like termcap for terminal graphics. But frankly, pictures are easier to read. Apple's code, I don't have, so I can't make terminal graphics out of that.
Re^6: Perl regex speed
by Bod (Parson) on Oct 28, 2022 at 11:43 UTC
    stop posting links to pretty pictures

    Would you prefer pictures that are not pretty???

      Would you prefer pictures that are not pretty???

      Sorry, I should have been clearer. I was not asking for pictures at all. I smelled an Apple Fanboy and the supporting pretty pictures looked more marketing than science to me.

      Given the OP claims to be a University professor, I was frankly astonished to see these pretty pictures being presented as evidence. I expected to see peer-reviewed academic papers, or at the very least, links than contain source code along with details of how the benchmarks were run, so they can be independently reviewed and verified by others.

      Update 28 Nov 2022: Noticed this Quora story in my inbox today asking: Why is the M1 chip in Mac far overrated over the core i9 11th generation?

      One random quote that caught my eye:

      There’s a war of words going on between Apple and Intel fanboys here. The raw performance of some Intel chips exceeds the performance of the M1 and M1 Pro. On performance per watt Apple wins hands down.

        Sorry, I should have been clearer

        No - I was just being pedantic...

        I have to agree that I too was doubtful of the claims of being "for teaching". I see there are lots more comments from trusted sources (read: respected Monks) that I shall go and read through. It could be good for a giggle!

      "Pretty <xxx>" is an sarcastic term attacking the trend of "Form over Function" °

      This is one of the fundamental conflicts software designers have, if they are asked by amateurs (aka bosses) to dumb down carefully designed interfaces into something prettier (sic).

      In this case: Charts look better with less text and appealing colors, but loose crucial information.

      E.g: I'm afraid the new metacpan interface is an example for sacrificing function for form.

      Cheers Rolf
      (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
      Wikisyntax for the Monastery

      °) Apparently this conflict is much older than IT and originates in architecture ... Makes sense :)

      see Form follows function

        I'm afraid the new metacpan interface is an example for sacrificing function for form

        Assuming you mean metacpan.org, yes, I see your point. The screen looks a bit too vacant for my tastes.

        Though not a Web Site designer, this interface looks to me like it's optimized for novices, rather than experts ... such as the LanX. :).

        From the "GUI Design Checklist" section at On Interfaces and APIs the two most relevant points are perhaps:

        • Define personas; design to satisfy their goals
        • Cater for both novice and expert

        I wonder if they consulted and tested with expert CPAN users when creating this new design.

        This is one of the fundamental conflicts software designers have

        All too often I see this in website design. It manifests itself as websites that are so beautifully formed that they are either impossible to use or impossible to edit or both. Often I see web design people suggest a complete rebuild to cure the problems when (usually) iterative improvements would be better. It would certainly be easier to test what is working. But there is good money in producing beautiful websites...money that is banked well before the poor conversion performance becomes apparent.

        In their book Making Websites Win, Karl Blanks and Ben Jesson (two people who truly understand website design and two truly lovely gentlemen) liken aesthetic design to asking Mo Farah to run carrying an egg and spoon!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147726]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 00:53 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found