Introduction XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based navigational interface. The raw data collection component is implemented in C (as a PHP extension). Install XHProf on OS X $ brew install php56-xhprof For…
Go Programs Performance Measurement and Profiling
Performance measurement and profiling Profiling Basics Before you profile, you must have a stable environment to get repeatable results. The machine must be idle - don't profile on shared hardware, don't browse the web while waiting for a long benchmark…
Handy use SphinxQL Query Builder for PHP
Wiki Sphinx Sphinx is an open source search engine that allows full-text searches. It is best known for performing searches over large data very efficiently. The data to be indexed can generally come from very different sources: SQL databases, plain…
RSA Encryption & Decryption on PHP
Generate an RSA keypair with a 4096 bit private key Execute command: openssl genrsa -out private_key.pem 4096 e.g. $ openssl genrsa -out private_key.pem 4096 Generating RSA private key, 4096 bit long modulus .............................++++++ ................................................................++++++ e is 65537 (0x10001) Make sure…