Skip to content

Instantly share code, notes, and snippets.

View Furgas's full-sized avatar

Tomasz Sawicki Furgas

  • Poznan University of Technology
  • Poznań, Poland
View GitHub Profile
PHP 7.2.9-1+0~20180910100512.5+stretch~1.gbpdaac35 (cli) (built: Sep 10 2018 10:05:13) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.9-1+0~20180910100512.5+stretch~1.gbpdaac35, Copyright (c) 1999-2018, by Zend Technologies
Auryn\Test\Benchmark\ExecuteBenchmark
No Group
Method Name Iterations Average Time Ops/s Relative
------------------------------ ---------- ------------ -------------- --------- ---------
native_invoke_closure : [Baseline] [10,000 ] [0.0000001112700] [8,987,152.34626]
@Furgas
Furgas / results.txt
Last active September 17, 2018 07:09
Try...catch benchmark
php --version
PHP 7.2.9-1+0~20180910100512.5+stretch~1.gbpdaac35 (cli) (built: Sep 10 2018 10:05:13) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.9-1+0~20180910100512.5+stretch~1.gbpdaac35, Copyright (c) 1999-2018, by Zend Technologies
php test.php
no except with no surrounding try: 2,2994790077209
no except with surrounding try: 2,427591085434
5,277333504877% slower

Keybase proof

I hereby claim:

  • I am furgas on github.
  • I am furgas (https://keybase.io/furgas) on keybase.
  • I have a public key ASDzG_6l-ymFuq1A7Ypv0Ki7dFHaqHb35eGnOQ0OX0tetgo

To claim this, I am signing this object:

Verifying my Blockstack ID is secured with the address 19QYyjTLQFVmBeeFLoX2xqCJGwqwW34po https://explorer.blockstack.org/address/19QYyjTLQFVmBeeFLoX2xqCJGwqwW34po
@Furgas
Furgas / composer.json
Created June 5, 2017 12:11
Benchmark - array with instanceof vs. typehinted variadic argument vs. separate iterator class
{
"require": {
"phpunit/php-timer": "~1.0"
}
}
Verifying that +furgas is my openname (Bitcoin username). https://onename.com/furgas