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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lyrixx at lyrixx dot info
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Mar 19 07:01:29 2024 UTC