PHP 7.3 Performance Benchmarks Are Looking Good Days Ahead Of Its Release (phoronix.com)
PHP 7.3 RC6 was released earlier this week. Phoronix ran some benchmarks and compared the performance of v7.3 RC6 with releases going back to the v5.5 series. From the story: I ran some fresh benchmarks over the past day on PHP 5.5.38, PHP 5.6.38, PHP 7.0.32, PHP 7.1.24, PHP 7.2.12, and the PHP 7.3.0-RC6 test release. All of the PHP5/PHP7 builds were configured and built in the same manner. All tests happened from the same Dell PowerEdge R7425 dual EPYC server running Ubuntu 18.10 Linux.
Besides continuing to evolve the performance of PHP7, the PHP 7.3 release is also delivering on FFI (the Foreign Function Interface) to access functions / variables / data structures from the C language, a platform-independent manner for obtaining information on network interfaces, an is_countable() call, WebP support within GD's image create from string, updated SQLite support, improved PHP garbage collection performance, and many other enhancements. PHP 7.3 is just shy of 10% faster than PHP 7.2 in the popular PHPBench. PHP 7.3 is 31% faster than PHP 7.0 or nearly 3x the speed of PHP5.
Besides continuing to evolve the performance of PHP7, the PHP 7.3 release is also delivering on FFI (the Foreign Function Interface) to access functions / variables / data structures from the C language, a platform-independent manner for obtaining information on network interfaces, an is_countable() call, WebP support within GD's image create from string, updated SQLite support, improved PHP garbage collection performance, and many other enhancements. PHP 7.3 is just shy of 10% faster than PHP 7.2 in the popular PHPBench. PHP 7.3 is 31% faster than PHP 7.0 or nearly 3x the speed of PHP5.
I beg to differ. I ran my own benchmarks days ago, and performance was lackluster at best.
Besides the critics, PHP is mature, well maintaned, has a good interaction with C and is easy to program.
Don't waste CPU cycles before you get owned. Use the new and improved PHP 7.3. Your neighbor's kid approves.
era of open honest communications & commerce still possible.. cease fire stand down there are mothers & children in every last town..
Working on horrendous legacy code, we did a whole system rewrite and saw our server costs cut in half. Our main expenses are staff wages and server costs. Performance is a real issue.
Performance may not necessarily be a problem in all applications of PHP, but better performance is always an improvement.
Disclaimer: Professional PHP dev here.
One of the things really annoying about PHP is that it's so n00b friendly you run across tons of crap code. The upside is that PHP is quite hilarious. There's not a week that goes by that doesn't have me laugh out load about some quirky thing PHP had up its sleeve.
The truth is also that PHP is so domain specific that it really gets SSI programming done better than any other solution out there.
PHPs badness is its advantage.
We suffer more in our imagination than in reality. - Seneca
I'm sure Facebook, arguably the largest PHP user on the web, would disagree with not needing more performance. An extra 1-2% performance bump is equivalent to getting an extra year of use out of compute resources they already own and have received a tax benefit from depreciation. It's million of dollars of free money.
moox. for a new generation.
But has it been rewritten to use the new and improved PHP?
This must only optimize poorly written code. I can't believe that well-writen code would run any faster. If there is 3x performance gain on well written code that would have to mean the performance before was abysmal.
See it already 0-dayed.
FB gets a lot from PHP, but do the contribute to the project, in return?
Isn't Facebook using HHVM ?
New things are always on the horizon
My guess is Facebook uses HHVM, but a quick look around on the web didn't tell me how that related to normal PHP.
New things are always on the horizon
PHP 7.2 is basically on par HHVM.
While this all makes sense, my problem with PHP ain't CPU burn, it's memory usage. What I need from my PHP CMS is for it to use less RAM, not for it to use less CPU. CPU is cheap, RAM ain't.
"You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
Most people aren't above-average. PHP is a "programming" "language" "designed" and "implemented" by such people, predominantly used by such people, and popular with such people, but that's as far as that goes. If you take its domain sufficiently narrow, it's the best there is. In the "the best windows ever!" sense: Don't ever compare it to a real OS. But if your view is but a teensy bit larger, the thing inevitably falls down on its face and can't get up.
It's the windows of programming languages. Many people have worked really hard at making that pig fly to the point that you might call the result "mature" and "well-maintained". But no matter what they do, there's no changing the basic nature of the thing.
I guess APK couldn't take the onslaught from me, "Lord of Posts"!
ZIP
Just make a new line in your code, with a single random word on it.
Run the script. Notice there is no error message.
Why not?
Because strings that PHP does not recognize as identifiers, are considered string literals!
And hence expressions. Which have return values.
And by default, unused return values are silently ignored.
If that doesn't make your neck hairs stand up, and raises all the red flags, you're not a programmer. You you just dabbled with some scripts. Sorry.
Of course, like in any "duck typing" language with implicit casting, that's a dangerous swamp of traps too. Made even worse by the value VS reference passing fuck-up.
And there's so much shit tacked-on later in a shitty way that clearly does not fit the original skeleton. Even the class system.
Its library is horrid too. It has the same disease as the Apple "store". There's an app/function for everything! Meaning there's a function for every possible combination of functionality! Instead of either one universal function, or just its base functions for individual combination.
But wait, there's more functions! Non-buggy versions of still existing buggy functions! (Like that whole escaping debacle.)
Sorry, PHP is shit. And if you keep clinging to it, and keep ignoring those problems, instead of working in some better designed an more advanced languages, you will never progress in your skill level, and stay a low-level botcher for the rest of your life. (Please don't.)
Justin Bieber is/was the most popular music video.
Trump was voted into office.
Need I continue?
I'd say popularity is unrelated to quality. But I suspect it is related... inversely proportionally!
Why are you arguing on the level of a child anyway? Isn't that fallacy taught in primary school already, nowadays?
No, it uses Delphi which was an early language by Anders Heidlburger. He threw it away and started over with a little language known as Node.JS.
Copyright (c) 1990 - 2014 Dice. All rights reserved. Use of this comment is subject to certain Terms and Conditions.
Facebook uses Hack. Originally, Hack was a PHP superset with types and some other extensions and better performance. In theory, PHP code could run under the Hack/HHVM interpreter/runtime without modifications. Around the time of PHP 7, Hack went their own way and is no longer a superset of PHP.
Prior to Hack/HHVM, they also tried HipHop, which transpiled PHP to C which was then compiled.
Copyright (c) 1990 - 2014 Dice. All rights reserved. Use of this comment is subject to certain Terms and Conditions.
I've no version 3.0++ & gweihir KNOWS u IMPERSONATE me https://it.slashdot.org/commen... c6gunner proves it https://linux.slashdot.org/com... he forgot to SUBMIT as AC & using his registered 'lusrname' instead (because he tried to mock me both BEFORE & after I FAIRLY challenged him to show he's done better work - he had ZERO).
& NO WAY I'd "cry" like you "playing victim ne'er-do-wells" on /. (TROLL /.ers, not all) OR post on hosts offtopic.
YOU HELPED ME https://science.slashdot.org/c... (& you quit trying to make me look bad trying to "tell lies" on hosts as "ME" IN YOUR IMPERSONATIONS of me e.g. https://tech.slashdot.org/comm... as regards Intel speculative execution attack? Hosts PREVENT 'EM)
APK
P.S.=> I KNOW the 2nd to last link above's KILLING YOU - YOU ACTUALLY HELPED ME getting me to see if hosts stop more than portsmash (& Meltdown + Spectre too) & "lo & behold" - hosts WORK on 'em - U LOSE... apk
PHP has always had types, though
Well, you did say you're a PHP user, so...
CPU isn't cheap. We lose 10% because intel cheated. Spectre and Metldown slow are stuff down. Any bump they get is making up for spectre.
I agree that memory footprint needs tuning as well. However, that is just as much about bad design patterns in PHP.
Memory is only used during a request. When a request is done, you get your free memory back. When a request is dealt with faster, you get more free memory in total (or you can handle more requests).
Well, don't worry about that. We can get you back before you leave. (Dr. Who)
So what? I'm not waiting on PHP, ever. I'm waiting on the network or the database, and making PHP faster won't appreciably affect execution time.
"You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
So what? So wat? :)
Are you from Murica?
I thought Dutch people were rude, but muricans on slashdot are quite something too.
Well, don't worry about that. We can get you back before you leave. (Dr. Who)
Despite HHVM team saying that they do not intend to be compatible with PHP7 and will now officially only support Hack?