Skip to content
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

Results #2

Open
cojack opened this issue Mar 23, 2021 · 0 comments
Open

Results #2

cojack opened this issue Mar 23, 2021 · 0 comments

Comments

@cojack
Copy link

cojack commented Mar 23, 2021

Hey,
I have prepare a test.sh script to bring results here:

#!/usr/bin/env bash

FIRST_TRY=10000
SECOND_TRY=100000

QUEUES=(SplicingQueue DeletingQueue UndefinedQueue MapQueue MapUndefQueue)

for QUEUE in "${QUEUES[@]}"
do
    node test.js $QUEUE $FIRST_TRY
    node test.js $QUEUE $SECOND_TRY
done

echo -e "\nProcessor $(cat /proc/cpuinfo | grep 'model name' | uniq)"

Tested only on Linux, and the output:

Starting SplicingQueue 10000
    0s 18.2461ms

Starting SplicingQueue 100000
    4s 859.5277ms

Starting DeletingQueue 10000
    0s 4.6314ms

Starting DeletingQueue 100000
    0s 9.5889ms

Starting UndefinedQueue 10000
    0s 3.4845ms

Starting UndefinedQueue 100000
    0s 6.5454ms

Starting MapQueue 10000
    0s 4.6861ms

Starting MapQueue 100000
    0s 16.9658ms

Starting MapUndefQueue 10000
    0s 4.4171ms

Starting MapUndefQueue 100000
    0s 15.1833ms

Procesor model name     : AMD Ryzen 7 5800X 8-Core Processor
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

No branches or pull requests

1 participant