Skip to content

Commit db4e385

Browse files
authored
Create README.md
1 parent 6af9aaf commit db4e385

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

bench/README.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# JPHP Benchmark
2+
3+
A set of synthetic performance tests of various parts of the PHP language.
4+
5+
JPHP (1.2.8) Bench Results:
6+
7+
```
8+
-> fibonacci: 27.0 ms
9+
-> loop: 187.0 ms
10+
-> condition: 27.0 ms
11+
-> math: 122.0 ms
12+
-> fetch constants: 164.0 ms
13+
-> constant call: 164.0 ms
14+
-> simple func call: 1182.0 ms
15+
-> simple method call: 958.0 ms
16+
-> type hinting: 130.0 ms
17+
-> new object: 340.0 ms
18+
-> object property: 609.0 ms
19+
-> array: 525.0 ms
20+
-> string: 268.0 ms
21+
-> closure: 143.0 ms
22+
-> undefined: 19.0 ms
23+
-> singleton pattern: 82.0 ms
24+
-> array access object: 156.0 ms
25+
-> getter + setter: 308.0 ms
26+
-> iterator: 353.0 ms
27+
-> service container: 137.0 ms
28+
-> n-body: 367.0 ms
29+
30+
-------- total: 6.27 s.
31+
```
32+
33+
PHP 7.4.3
34+
35+
```
36+
-> fibonacci: 14 ms
37+
-> loop: 933 ms
38+
-> condition: 88 ms
39+
-> math: 300 ms
40+
-> fetch constants: 122 ms
41+
-> constant call: 158 ms
42+
-> simple func call: 514 ms
43+
-> simple method call: 420 ms
44+
-> type hinting: 118 ms
45+
-> new object: 289 ms
46+
-> object property: 213 ms
47+
-> array: 578 ms
48+
-> string: 405 ms
49+
-> closure: 198 ms
50+
-> undefined: 121 ms
51+
-> singleton pattern: 64 ms
52+
-> array access object: 146 ms
53+
-> getter + setter: 214 ms
54+
-> iterator: 126 ms
55+
-> service container: 224 ms
56+
-> n-body: 248 ms
57+
58+
-------- total: 5.49 s.
59+
```

0 commit comments

Comments
 (0)