php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
micro_bench.php File Reference

Go to the source code of this file.

Data Structures

class  Foo
 

Functions

 hallo ()
 
 simpleucall ($n)
 
 simpleudcall ($n)
 
 hallo2 ()
 
 simpleicall ($n)
 
 read_static ($n)
 
 write_static ($n)
 
 isset_static ($n)
 
 empty_static ($n)
 
 call_static ($n)
 
 create_object ($n)
 
 read_const ($n)
 
 read_auto_global ($n)
 
 read_global_var ($n)
 
 read_hash ($n)
 
 read_str_offset ($n)
 
 issetor ($n)
 
 issetor2 ($n)
 
 ternary ($n)
 
 ternary2 ($n)
 
 empty_loop ($n)
 
 gethrtime ()
 
 start_test ()
 
 end_test ($start, $name, $overhead=null)
 
 total ()
 

Variables

const TEST null
 
 $g_var = 0
 
const N = 5000000
 
 $t0 = $t = start_test()
 
 $t = end_test($t, 'empty_loop')
 
 $overhead = $last_time
 
 $x = new Foo()
 

Function Documentation

◆ call_static()

call_static ( $n)

Definition at line 157 of file micro_bench.php.

◆ create_object()

create_object ( $n)

Definition at line 163 of file micro_bench.php.

◆ empty_loop()

empty_loop ( $n)

Definition at line 236 of file micro_bench.php.

◆ empty_static()

empty_static ( $n)

Definition at line 151 of file micro_bench.php.

◆ end_test()

end_test ( $start,
$name,
$overhead = null )

Definition at line 253 of file micro_bench.php.

◆ gethrtime()

gethrtime ( )

Definition at line 241 of file micro_bench.php.

◆ hallo()

hallo ( )

Definition at line 3 of file micro_bench.php.

◆ hallo2()

hallo2 ( )

Definition at line 16 of file micro_bench.php.

◆ isset_static()

isset_static ( $n)

Definition at line 145 of file micro_bench.php.

◆ issetor()

issetor ( $n)

Definition at line 205 of file micro_bench.php.

◆ issetor2()

issetor2 ( $n)

Definition at line 212 of file micro_bench.php.

◆ read_auto_global()

read_auto_global ( $n)

Definition at line 177 of file micro_bench.php.

◆ read_const()

read_const ( $n)

Definition at line 171 of file micro_bench.php.

◆ read_global_var()

read_global_var ( $n)

Definition at line 185 of file micro_bench.php.

◆ read_hash()

read_hash ( $n)

Definition at line 191 of file micro_bench.php.

◆ read_static()

read_static ( $n)

Definition at line 133 of file micro_bench.php.

◆ read_str_offset()

read_str_offset ( $n)

Definition at line 198 of file micro_bench.php.

◆ simpleicall()

simpleicall ( $n)

Definition at line 19 of file micro_bench.php.

◆ simpleucall()

simpleucall ( $n)

Definition at line 6 of file micro_bench.php.

◆ simpleudcall()

simpleudcall ( $n)

Definition at line 11 of file micro_bench.php.

◆ start_test()

start_test ( )

Definition at line 247 of file micro_bench.php.

◆ ternary()

ternary ( $n)

Definition at line 219 of file micro_bench.php.

◆ ternary2()

ternary2 ( $n)

Definition at line 227 of file micro_bench.php.

◆ total()

total ( )

Definition at line 273 of file micro_bench.php.

◆ write_static()

write_static ( $n)

Definition at line 139 of file micro_bench.php.

Variable Documentation

◆ $g_var

$g_var = 0

Definition at line 183 of file micro_bench.php.

◆ $overhead

$overhead = $last_time

Definition at line 288 of file micro_bench.php.

◆ $t

$t = end_test($t, 'empty_loop')

Definition at line 287 of file micro_bench.php.

◆ $t0

$t0 = $t = start_test()

Definition at line 285 of file micro_bench.php.

◆ $x

$x = new Foo()

Definition at line 315 of file micro_bench.php.

◆ N

const N = 5000000

Definition at line 283 of file micro_bench.php.

◆ TEST

const TEST null

Definition at line 169 of file micro_bench.php.