Git Product home page Git Product logo

Comments (6)

mavavilj avatar mavavilj commented on June 8, 2024

OTOH, the loop at:

#68

runs about 7x faster with nectar than node.

from nerd.

mavavilj avatar mavavilj commented on June 8, 2024

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

from nerd.

adrien-thierry avatar adrien-thierry commented on June 8, 2024

Hi,

which compiler are you using ?

from nerd.

mavavilj avatar mavavilj commented on June 8, 2024

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.

from nerd.

adrien-thierry avatar adrien-thierry commented on June 8, 2024

it should not be so slow, quite strange

from nerd.

mavavilj avatar mavavilj commented on June 8, 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

from nerd.

Related Issues (20)

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.