Git Product home page Git Product logo

perf's Introduction

Perfomance test

JS Array.from implementation

➜  perf node index.js 
Sum:  50000005000000
array_from: 1.326s
➜  perf node index.js
Sum:  50000005000000
array_from: 1.115s
➜  perf bun index.js
Sum:  50000005000000
[159.51ms] array_from
➜  perf bun index.js
Sum:  50000005000000
[154.79ms] array_from

JS Iterator implementation

➜  perf node iterator.js 
Sum:  50000005000000
iterator: 501.046ms
➜  perf node iterator.js
Sum:  50000005000000
iterator: 506.272ms
➜  perf bun iterator.js 
Sum:  50000005000000
[198.52ms] iterator
➜  perf bun iterator.js
Sum:  50000005000000
[185.22ms] iterator

JS for loop implementation

➜  perf node for-loop.js 
Sum:  50000005000000
for-loop: 28.997ms
➜  perf node for-loop.js
Sum:  50000005000000
for-loop: 28.983ms
➜  perf bun for-loop.js 
Sum:  50000005000000
[55.70ms] for-loop
➜  perf bun for-loop.js
Sum:  50000005000000
[25.27ms] for-loop

PHP implementation

➜  perf php index.php 
Sum: 50000005000000
Execution time: 346.09603881836 ms

➜  perf php index.php
Sum: 50000005000000
Execution time: 264.01090621948 ms
➜  perf php index.php
Sum: 50000005000000
Execution time: 257.40718841553 ms     

perf's People

Contributors

emilkhairullin avatar

Watchers

 avatar  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.