php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80601 FFI is much slower on PHP 8 than PHP 7.4
Submitted: 2021-01-06 20:01 UTC Modified: 2021-09-20 16:28 UTC
From: lyrixx at lyrixx dot info Assigned:
Status: Open Package: FFI (PECL)
PHP Version: 8.0.0 OS: linux
Private report: No CVE-ID: None
 [2021-01-06 20:01 UTC] lyrixx at lyrixx dot info
Description:
------------
I make a simple script for FFI + UUID and result a worst on PHP8

https://github.com/jolicode/ffi-uuid/pull/13

>…/jolicode/ffi-uuid(8) php8.0 bench.php 
FFI:
 * [v1] 2.175s
 * [v4] 6.949s
PECL:
 * [v1] 0.683s
 * [v4] 5.320s
> …/jolicode/ffi-uuid(8) php7.4 bench.php 
FFI:
 * [v1] 1.720s
 * [v4] 6.808s
PECL:
 * [v1] 0.570s
 * [v4] 5.342s


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-09-20 16:28 UTC] cmb@php.net
-Package: *General Issues +Package: FFI
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 14 14:01:27 2024 UTC