GithubHelp home page GithubHelp logo

hack-php-async-io's Introduction

Hsl vs Psl Async IO benchmarks

The benchmarks are ran against a local http server ( src/server.php ), to run the server, use:

php -dopcache.jit=1235 -dopcache.enable_cli=yes -dopcache.enable=yes src/server.php

benchmark results:

> php -v
PHP 8.1.1 (cli) (built: Jan 11 2022 14:39:53) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.1, Copyright (c) Zend Technologies

> hhvm --version
HipHop VM 4.140.1 (rel) (non-lowptr)
Compiler: 1639780718_704029463
Repo schema: 05349a1136367893ac89597528b7a3308aecbe6d

> hyperfine --version
hyperfine 1.10.0

> hyperfine --runs 100 "php -dopcache.jit=1235 -dopcache.enable_cli=yes -dopcache.enable=yes src/main.php" "php src/main.php" "hhvm -d hhvm.jit=1 src/main.hack"
Benchmark #1: php -dopcache.jit=1235 -dopcache.enable_cli=yes -dopcache.enable=yes src/main.php
  Time (mean ± σ):      1.366 s ±  0.090 s    [User: 264.5 ms, System: 191.8 ms]
  Range (min … max):    1.150 s …  1.619 s    100 runs

Benchmark #2: php src/main.php
  Time (mean ± σ):      1.430 s ±  0.277 s    [User: 280.7 ms, System: 197.5 ms]
  Range (min … max):    1.147 s …  3.279 s    100 runs

Benchmark #3: hhvm -d hhvm.jit=1 src/main.hack
  Time (mean ± σ):      3.468 s ±  0.820 s    [User: 2.545 s, System: 0.542 s]
  Range (min … max):    2.257 s …  6.800 s    100 runs

Summary
  'php -dopcache.jit=1235 -dopcache.enable_cli=yes -dopcache.enable=yes src/main.php' ran
    1.05 ± 0.21 times faster than 'php src/main.php'
    2.54 ± 0.62 times faster than 'hhvm -d hhvm.jit=1 src/main.hack'

hack-php-async-io's People

Contributors

azjezz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.