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: -
From: lyrixx at lyrixx dot info Assigned:
Status: Open Package: *General Issues
PHP Version: 8.0.0 OS: linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Apr 23 08:01:24 2021 UTC