Skip to content

More performant node code #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Skitionek
Copy link

Referring to the issue: #2

php-node-bubblesort-test$ node bubble-sort-v2.js 
[V8] array contains 4001 elements, execution time: 44.51882 ms
Reverse input: [V8] array contains 4001 elements, execution time: 19.384506 ms
 php-node-bubblesort-test$ node bubble-sort-reverse-v2.js 
[V8] array contains 4001 elements, execution time: 23.241149 ms
Reverse input: [V8] array contains 4001 elements, execution time: 17.997886 ms
php-node-bubblesort-test$ node bubble-sort-int32-v2.js 
[V8] array contains 4001 elements, execution time: 40.790994 ms
Reverse input: [V8] array contains 4001 elements, execution time: 18.772959 ms
php-node-bubblesort-test$ node bubble-sort-reverse-int32-v2.js 
[V8] array contains 4001 elements, execution time: 22.879192 ms
Reverse input: [V8] array contains 4001 elements, execution time: 18.070068 ms

added case for revesed input data and checks if sorting results are correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant