开启php8的JIT 才能提现php8的速度

找到php版本文件夹下面的 php.ini 文件,开启如下字段:

zend_extension=opcache

修改如下字段:

[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1

; Determines if Zend OPCache is enabled for the CLI version of PHP
opcache.enable_cli=0

; The OPcache shared memory storage size.
opcache.memory_consumption=128

; The amount of memory for interned strings in Mbytes.
opcache.interned_strings_buffer=8

; The maximum number of keys (scripts) in the OPcache hash table.
; Only numbers between 200 and 1000000 are allowed.
opcache.max_accelerated_files=10000

在接着上面新增如下字段

opcache.jit=tracing
opcache.jit_buffer_size=100M

posted on 2024-01-16 21:10  完美前端  阅读(233)  评论(0)    收藏  举报

导航