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

Executables very slow on Debian 12? #159

Open
mavavilj opened this issue Jan 23, 2024 · 6 comments
Open

Executables very slow on Debian 12? #159

mavavilj opened this issue Jan 23, 2024 · 6 comments

Comments

@mavavilj
Copy link

I am testing the Fibonacci code. As an example I am finding the 41st number.

fibo.zip

node fibo.js returns pretty quickly, but ./fibo.out after

nectar fibo.js -o fibo.out

takes noticeably long to return.

This is entirely different what's supposed to happen based on the benchmarks in the repository.

Is something broken?

@mavavilj
Copy link
Author

OTOH, the loop at:

#68

runs about 7x faster with nectar than node.

@mavavilj
Copy link
Author

Other test code at e.g.:

https://github.com/drujensen/fib

time node fib.js
2971215073

real 0m40.203s
user 0m40.191s
sys 0m0.012s

nectar fib.js -o fibnectar

time ./fibnectar
2.97122e+09

real 7m55.692s
user 7m55.680s
sys 0m0.000s

@adrien-thierry
Copy link
Contributor

Hi,

which compiler are you using ?

@mavavilj
Copy link
Author

gcc --version
gcc (Debian 12.2.0-14) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

g++ --version
g++ (Debian 12.2.0-14) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@adrien-thierry
Copy link
Contributor

it should not be so slow, quite strange

@mavavilj
Copy link
Author

mavavilj commented Jan 24, 2024

Problem persists even after reinstalling a fresh Debian 12.

Likely specific to the OS or a particular version of the OS or some packages?

Any other OSes to try?

OTOH, since Node seems to work flawlessly, then maybe it's just nectar?

There's no difference when building with:

node nectar fib.js -o fibnectarman

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

2 participants