Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!

Archive for Lipiec, 2014

Kinsta.com: Real-World WordPress Benchmarks with PHP5.5 PHP5.6 PHP-NG and HHVM

Kinsta.com: Real-World WordPress Benchmarks with PHP5.5 PHP5.6 PHP-NG and HHVM

The Kinsta.com blog has a new post with the results of some benchmarking they’ve done around WordPress comparing PHP 5.5, PHP 5.6 (PHPNG) and HHVM in response time (well, time taken for the request).

If you remember we wrote an article a good couple of months ago when WordPress 3.9 came out that HHVM was fully supported beginning with that release, and we were all happy about it. The initial benchmark results showed HHVM to be far more superior than the Zend engine that’s currently powering all PHP builds.

[...] Obviously you have to compromise based on your (or rather your sites’) needs but is it worth it? How much of a performance gain can you expect by switching to HHVM? [...] Today I finally took the time to set up a test environment and do some tests to compare a couple of different builds with a fresh out of the box WordPress install and one that has a bunch of content added plus runs WooCommerce!

The testing was all done locally on virtual machines (using Vagrant setups) and two different kinds of test WordPress installations. They share the results in the post, showing the differences between the HHVM installations and the plain PHP ones. The results also show the differences between having the opcode cache on and off. Curious to see how it would perform outside of a local system, they also pushed the same configurations out to a DigitalOcean instance with some slightly different results.

Link: https://kinsta.com/blog/real-world-wordpress-benchmarks-with-php5-5-php5-6-php-ng-and-hhvm/
Source: http://www.phpdeveloper.org/news/21503

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Kinsta.com: Real-World WordPress Benchmarks with PHP5.5 PHP5.6 PHP-NG and HHVM

Kinsta.com: Real-World WordPress Benchmarks with PHP5.5 PHP5.6 PHP-NG and HHVM

The Kinsta.com blog has a new post with the results of some benchmarking they’ve done around WordPress comparing PHP 5.5, PHP 5.6 (PHPNG) and HHVM in response time (well, time taken for the request).

If you remember we wrote an article a good couple of months ago when WordPress 3.9 came out that HHVM was fully supported beginning with that release, and we were all happy about it. The initial benchmark results showed HHVM to be far more superior than the Zend engine that’s currently powering all PHP builds.

[...] Obviously you have to compromise based on your (or rather your sites’) needs but is it worth it? How much of a performance gain can you expect by switching to HHVM? [...] Today I finally took the time to set up a test environment and do some tests to compare a couple of different builds with a fresh out of the box WordPress install and one that has a bunch of content added plus runs WooCommerce!

The testing was all done locally on virtual machines (using Vagrant setups) and two different kinds of test WordPress installations. They share the results in the post, showing the differences between the HHVM installations and the plain PHP ones. The results also show the differences between having the opcode cache on and off. Curious to see how it would perform outside of a local system, they also pushed the same configurations out to a DigitalOcean instance with some slightly different results.

Link: https://kinsta.com/blog/real-world-wordpress-benchmarks-with-php5-5-php5-6-php-ng-and-hhvm/
Source: http://www.phpdeveloper.org/news/21503

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: PHP Specification in Development

Community News: PHP Specification in Development

In a recent message to the PHP internals mailing list Sara Golemon has announced the development of a PHP specification, a document formally defining the interfaces and structure of the functionality of the language. The effort is being spearheaded by a group at Facebook.

We (As in PHP) have been talking about making a spec for the PHP language for a LONG time. With PHPNG around the corner, the need for a formal spec is even more important so that we can reliably ensure that PHP.Next matches PHP 5.6’s behavior as much as possible. Meanwhile, other implementations of PHP (like HHVM) should be as spec compliant as possible so that we don’t see the language bifurcate. To that end, we (as in Facebook), have been putting together a formal language spec for PHP (using PHP 5.6 as the source of truth) along with an additional conformance test suite (which compliments Zend/tests).

An initial version (a “sneak peek”) has already been posted providing a great start to the effort. There’s already been a lot of support for the project in the community and some of the concerns around workflow and maintenance are already starting to be addressed.

Link: http://grokbase.com/t/php/php-internals/147p423vvz/php-language-specification
Source: http://www.phpdeveloper.org/news/21502

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: PHP Specification in Development

Community News: PHP Specification in Development

In a recent message to the PHP internals mailing list Sara Golemon has announced the development of a PHP specification, a document formally defining the interfaces and structure of the functionality of the language. The effort is being spearheaded by a group at Facebook.

We (As in PHP) have been talking about making a spec for the PHP language for a LONG time. With PHPNG around the corner, the need for a formal spec is even more important so that we can reliably ensure that PHP.Next matches PHP 5.6’s behavior as much as possible. Meanwhile, other implementations of PHP (like HHVM) should be as spec compliant as possible so that we don’t see the language bifurcate. To that end, we (as in Facebook), have been putting together a formal language spec for PHP (using PHP 5.6 as the source of truth) along with an additional conformance test suite (which compliments Zend/tests).

An initial version (a “sneak peek”) has already been posted providing a great start to the effort. There’s already been a lot of support for the project in the community and some of the concerns around workflow and maintenance are already starting to be addressed.

Link: http://grokbase.com/t/php/php-internals/147p423vvz/php-language-specification
Source: http://www.phpdeveloper.org/news/21502

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

SitePoint PHP Blog: Understanding OpCache

SitePoint PHP Blog: Understanding OpCache

On the SitePoint PHP blog there’s a new tutorial posted helping you understand OpCache, the caching engine built into PHP versions 5.5 and above. This cache isn’t designed to cache data or other content, though. An OpCache caches “opcodes” when a script is executed.

PHP in version 5.5 comes with a caching engine built-in – OpCache – which stores precompiled script bytecode in the memory. If you’re familiar with APC or Xcache, you will already know how such engines work. As each PHP script is being compiled at runtime, a part of the execution time gets used for transforming the human readable code into code that can be understood by the machine. A bytecode cache engine like OpCache, APC or Xcache does it only once – during the first execution of a specific PHP file. Then the precompiled script is being stored in memory, which should lead to performance boosts in your PHP applications.

The remainder of the article is a series of answers to some common questions about using the cache, what it will do for your applications and some tools to use for tuning and status updates:

  • Is OpCache worth installing at all? What speed boost can I expect?

  • I already use APC cache. Should I migrate to OpCache?
  • How to check if OpCache is actually caching my files?
  • Is there any framework-specific config that I should set?
  • I keep my app config in a PHP file. Can I prevent it from being cached?
  • How can I run both a development and a production environment on a single server where OpCache is enabled?

Link: http://www.sitepoint.com/understanding-opcache/
Source: http://www.phpdeveloper.org/news/21501

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

SitePoint PHP Blog: Understanding OpCache

SitePoint PHP Blog: Understanding OpCache

On the SitePoint PHP blog there’s a new tutorial posted helping you understand OpCache, the caching engine built into PHP versions 5.5 and above. This cache isn’t designed to cache data or other content, though. An OpCache caches “opcodes” when a script is executed.

PHP in version 5.5 comes with a caching engine built-in – OpCache – which stores precompiled script bytecode in the memory. If you’re familiar with APC or Xcache, you will already know how such engines work. As each PHP script is being compiled at runtime, a part of the execution time gets used for transforming the human readable code into code that can be understood by the machine. A bytecode cache engine like OpCache, APC or Xcache does it only once – during the first execution of a specific PHP file. Then the precompiled script is being stored in memory, which should lead to performance boosts in your PHP applications.

The remainder of the article is a series of answers to some common questions about using the cache, what it will do for your applications and some tools to use for tuning and status updates:

  • Is OpCache worth installing at all? What speed boost can I expect?

  • I already use APC cache. Should I migrate to OpCache?
  • How to check if OpCache is actually caching my files?
  • Is there any framework-specific config that I should set?
  • I keep my app config in a PHP file. Can I prevent it from being cached?
  • How can I run both a development and a production environment on a single server where OpCache is enabled?

Link: http://www.sitepoint.com/understanding-opcache/
Source: http://www.phpdeveloper.org/news/21501

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

SitePoint PHP Blog: Understanding OpCache

SitePoint PHP Blog: Understanding OpCache

On the SitePoint PHP blog there’s a new tutorial posted helping you understand OpCache, the caching engine built into PHP versions 5.5 and above. This cache isn’t designed to cache data or other content, though. An OpCache caches “opcodes” when a script is executed.

PHP in version 5.5 comes with a caching engine built-in – OpCache – which stores precompiled script bytecode in the memory. If you’re familiar with APC or Xcache, you will already know how such engines work. As each PHP script is being compiled at runtime, a part of the execution time gets used for transforming the human readable code into code that can be understood by the machine. A bytecode cache engine like OpCache, APC or Xcache does it only once – during the first execution of a specific PHP file. Then the precompiled script is being stored in memory, which should lead to performance boosts in your PHP applications.

The remainder of the article is a series of answers to some common questions about using the cache, what it will do for your applications and some tools to use for tuning and status updates:

  • Is OpCache worth installing at all? What speed boost can I expect?

  • I already use APC cache. Should I migrate to OpCache?
  • How to check if OpCache is actually caching my files?
  • Is there any framework-specific config that I should set?
  • I keep my app config in a PHP file. Can I prevent it from being cached?
  • How can I run both a development and a production environment on a single server where OpCache is enabled?

Link: http://www.sitepoint.com/understanding-opcache/
Source: http://www.phpdeveloper.org/news/21501

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Voices of the ElePHPant: Interview with Joel Clermont

Voices of the ElePHPant: Interview with Joel Clermont

The Voices of the ElePHPant podcast has posted their latest episode in their series of community interviews. This time it’s with Joel Clermont, an organizer of the Milwaukee PHP User Group.

They talk some about a newsletter Joelputs out “learning how to learn” based around a conference talk he’s proposed/given. Joel also mentions the book he’s working on following the same topic. They also talk some about his involvement in the Milwaukee user group.

You can listen to this latest episode either through the in-page audio player or by downloading the mp3 directly. If you like what you hear, consider subscribing to their feed too.

Link: http://voicesoftheelephpant.com/2014/07/29/interview-with-joel-clermont
Source: http://www.phpdeveloper.org/news/21500

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

Community News: Packagist Latest Releases for 07.30.2014

Community News: Packagist Latest Releases for 07.30.2014Recent releases from the Packagist:

Source: http://www.phpdeveloper.org/news/21499

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>

PHPBuilder.com: Creating Real Time Applications with PHP and WebSockets

PHPBuilder.com: Creating Real Time Applications with PHP and WebSockets

On PHPBuilder.com today there’s a new tutorial introducing you to the combination of PHP and WebSockets to make real-time requests to fetch data in your application.

This article will explore the main PHP libraries used to create real time, bi-directional applications between clients and servers over WebSockets. WebSocket is full-duplex client/server communication over TCP. It is also a new feature available in browsers as a part of the HTML5 specs that allows JavaScript clients to open bi-directional socket connections to a server. [...] WebSocket connections are basically TCP socket connections that following the WebSocket rules to communicate. The WebSocket Protocol is an independent TCP-based protocol.

They introduce some of the basic concepts behind WebSockets (including an example URL) and show how to use the PHPWebSockets library to handle some sample requests. They also include some basic JavaScript to make the request to the backend PHP script and send or fetch content on the server. They also show you how to implement a simple chat server using a few other libraries like Ratchet, Elephpant.io and Socket.io.

Link: http://www.phpbuilder.com/articles/application-architecture/optimization/creating-real-time-applications-with-php-and-websockets.html
Source: http://www.phpdeveloper.org/news/21498

<!–
var d = new Date();
r = escape(d.getTime()*Math.random());
document.writeln('’);
//–>