CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 13:30:33 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"1da0a34cd925b079064d60d5b93accc5"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=t0TDUgiVMfO8yJqNOA9gkYgzmT6BIxPsT7vmVQQyoA16BP5VHdoiWc5U2PR4pxgto%2BHXrpJ9eWzLeEZQM%2Ba3%2F0lsyPj%2Fo3NvPS1ZVqAywRsFugN9jU22Z7XTIZN%2B2D2H4dIGd3JmK%2F9zDUbuhbihM%2BCJfUoq8t9oGvCvqfL7oosi%2Bb1tIR2yYb7x%2F%2Bol%2BlRUAZw%2FiU0EDU87kFak5bR%2F3Y4bInLEdgvyEGAm1LsH5HRCHLsAocSUEmJGld00MlJJW6N%2B0tvbhdEPjhKB7%2BOVJA%3D%3D--%2FrH9pmU7ymwPGgzh--oaocA6i2m8km46J2CU1uCA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2028501607.1753968633; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 13:30:33 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 13:30:33 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9338:5A781:4A2C5C:52CE11:688B6FF9
LINQ for PHP comparison: YaLinqo vs Ginq vs Pinq performance (see https://github.com/Athari/YaLinqoPerf) · GitHub
Show Gist options
Save Athari/1d001fde76f86f219c23 to your computer and use it in GitHub Desktop.
{{ message }}
Instantly share code, notes, and snippets.
-
Star
1
(1)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save Athari/1d001fde76f86f219c23 to your computer and use it in GitHub Desktop.
LINQ for PHP comparison: YaLinqo vs Ginq vs Pinq performance (see https://github.com/Athari/YaLinqoPerf)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Iterating over 1000 ints | |
------------------------ | |
PHP [for] 0.00006 sec x1.0 (100%) | |
PHP [array functions] 0.00011 sec x1.8 (+83%) | |
YaLinqo 0.00022 sec x3.7 (+267%) | |
Ginq 0.00077 sec x12.8 (+1183%) | |
Pinq 0.00040 sec x6.7 (+567%) | |
Generating array of 1000 integers | |
--------------------------------- | |
PHP [for] 0.00022 sec x1.2 (+22%) | |
PHP [array functions] 0.00018 sec x1.0 (100%) | |
YaLinqo 0.00039 sec x2.2 (+117%) | |
Ginq 0.00109 sec x6.1 (+506%) | |
Pinq 0.00054 sec x3.0 (+200%) | |
Generating lookup of 1000 floats, calculate sum | |
----------------------------------------------- | |
PHP 0.00124 sec x1.0 (100%) | |
YaLinqo 0.00381 sec x3.1 (+207%) | |
YaLinqo [string lambda] 0.00403 sec x3.3 (+225%) | |
Ginq 0.01390 sec x11.2 (+1021%) | |
Pinq * Not implemented | |
Counting values in arrays | |
------------------------- | |
PHP [for] 0.00023 sec x1.0 (100%) | |
PHP [arrays functions] 0.00052 sec x2.3 (+126%) | |
YaLinqo 0.00056 sec x2.4 (+143%) | |
YaLinqo [string lambda] 0.00059 sec x2.6 (+157%) | |
Ginq 0.00129 sec x5.6 (+461%) | |
Pinq 0.00233 sec x10.6 (+959%) | |
Counting values in arrays deep | |
------------------------------ | |
PHP [for] 0.00064 sec x1.0 (100%) | |
PHP [arrays functions] 0.00323 sec x5.0 (+405%) | |
YaLinqo 0.00798 sec x12.5 (+1147%) | |
Ginq 0.01416 sec x22.1 (+2113%) | |
Pinq 0.03600 sec x55.4 (+5438%) | |
Filtering values in arrays | |
-------------------------- | |
PHP [for] 0.00049 sec x1.0 (100%) | |
PHP [arrays functions] 0.00072 sec x1.5 (+47%) | |
YaLinqo 0.00094 sec x1.9 (+92%) | |
YaLinqo [string lambda] 0.00094 sec x1.9 (+92%) | |
Ginq 0.00296 sec x6.4 (+543%) | |
Pinq 0.00260 sec x5.7 (+465%) | |
Filtering values in arrays deep | |
------------------------------- | |
PHP [for] 0.00514 sec x1.0 (100%) | |
PHP [arrays functions] 0.00739 sec x1.4 (+44%) | |
YaLinqo 0.01556 sec x3.0 (+203%) | |
YaLinqo [string lambda] 0.01750 sec x3.4 (+240%) | |
Ginq 0.03312 sec x6.6 (+556%) | |
Pinq 0.04571 sec x9.1 (+805%) | |
Sorting arrays of strings | |
------------------------- | |
PHP 0.02152 sec x1.0 (100%) | |
YaLinqo 0.02228 sec x1.0 (+4%) | |
YaLinqo [sort flags] 0.02257 sec x1.0 (+5%) | |
YaLinqo [callback] 0.03883 sec x1.8 (+80%) | |
Ginq 0.04100 sec x1.9 (+91%) | |
Pinq * Not implemented | |
Sorting arrays of objects | |
------------------------- | |
PHP [multisort] 0.00013 sec x1.0 (100%) | |
PHP [usort] 0.00035 sec x2.7 (+169%) | |
YaLinqo 0.00027 sec x2.1 (+108%) | |
YaLinqo [string lambda] 0.00031 sec x2.4 (+138%) | |
YaLinqo [sort flags] 0.00032 sec x2.5 (+146%) | |
Ginq 0.00349 sec x26.8 (+2585%) | |
Ginq [property path] 0.01695 sec x130.4 (+12938%) | |
Pinq 0.00122 sec x9.4 (+838%) | |
Joining arrays | |
-------------- | |
PHP 0.00021 sec x1.0 (100%) | |
YaLinqo 0.00065 sec x3.1 (+210%) | |
YaLinqo [string lambda] 0.00070 sec x3.3 (+233%) | |
Ginq 0.00103 sec x4.9 (+390%) | |
Ginq [property path] 0.00200 sec x9.5 (+852%) | |
Pinq 0.00902 sec x41.0 (+4000%) | |
Aggregating arrays | |
------------------ | |
PHP [for] 0.00059 sec x1.0 (100%) | |
PHP [array functions] 0.00162 sec x2.7 (+175%) | |
YaLinqo 0.00190 sec x3.2 (+222%) | |
YaLinqo [string lambda] 0.00233 sec x3.9 (+295%) | |
Ginq 0.00641 sec x10.9 (+986%) | |
Ginq [property path] 0.03927 sec x66.6 (+6556%) | |
Pinq 0.01568 sec x27.0 (+2603%) | |
Aggregating arrays custom | |
------------------------- | |
PHP [for] 0.00006 sec x1.0 (100%) | |
PHP [array functions] 0.00033 sec x5.5 (+450%) | |
YaLinqo 0.00044 sec x7.3 (+633%) | |
YaLinqo [string lambda] 0.00055 sec x9.2 (+817%) | |
Ginq 0.00044 sec x7.3 (+633%) | |
Pinq 0.00415 sec x69.2 (+6816%) | |
Process data from ReadMe example | |
-------------------------------- | |
PHP [multisort] 0.00220 sec x1.0 (100%) | |
PHP [usort] 0.00660 sec x3.0 (+200%) | |
YaLinqo 0.00560 sec x2.5 (+155%) | |
YaLinqo [string lambda] 0.00580 sec x2.6 (+164%) | |
Ginq 0.07820 sec x35.5 (+3454%) | |
Pinq 0.02720 sec x12.4 (+1136%) | |
Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can’t perform that action at this time.