Comments (6)
OTOH, the loop at:
runs about 7x faster with nectar than node.
from nerd.
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.
Hi,
which compiler are you using ?
from nerd.
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.
it should not be so slow, quite strange
from nerd.
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)
- Cyclic references leak memory HOT 2
- nectarjs.com down HOT 8
- ESP32 HOT 3
- Parsing Error: Unexpected Token HOT 1
- Great project HOT 1
- Unexpected behaviors when using Regular Expressions
- nectarjs.com is down again HOT 3
- Confused with cpp out / GPL3 HOT 3
- Unexpected token HOT 2
- javascript file can not exists name is 'main' function HOT 2
- Update description project URL HOT 3
- XDG Spec
- Documentation Template Recommendation
- Compiling HTTP example - no matching function for call to 'NerdCore::Class::Function::New()'
- Has the project been abandoned? HOT 2
- Installation instructions are incomplete? HOT 2
- Compilation error __NERD_DIRNAME with fib.js, Debian 12 and pre-compiled nerd v0.0.16 HOT 5
- Recursion broken (fibo.js)? HOT 3
- How to setup a dev environment so that the compilation of .js/.ng can be debugged (preferably step-wise)? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nerd.