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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

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: Fri Nov 22 04:01:28 2024 UTC