Dart team posts an example of fast code with 22ms for a “Hello world”
1–10 of 33 posts
Re: Dart team posts an example of fast code with 22ms for a “Hello world”
#2Re: Dart team posts an example of fast code with 22ms for a “Hello world”
#3Here's hello.sh (in bash) on a Raspberry Pi 3B+:
#!/bin/bash
echo "Hello World!"
xxxxx@xxxxxxx:~ $ time ./hello.sh
Hello World!
real 0m0.010s
user 0m0.001s
sys 0m0.010s
Yay, I beat the high score!Re: Dart team posts an example of fast code with 22ms for a “Hello world”
#4Re: Dart team posts an example of fast code with 22ms for a “Hello world”
#5Also C++ with cout, -O3 is 4ms and one in *.Zig is 1ms for some reason.
Re: Dart team posts an example of fast code with 22ms for a “Hello world”
#6It's a startup time of the runtime. More interested in results with two "hello,world"s. How much the next one going to cost. Also C++ with cout, -O3 is 4ms and one in *.Zig is 1ms for some reason.
Re: Dart team posts an example of fast code with 22ms for a “Hello world”
#7I also have a rule, I don't bash novice developers for their lack of knowledge.
Re: Dart team posts an example of fast code with 22ms for a “Hello world”
#8Re: Dart team posts an example of fast code with 22ms for a “Hello world”
#9Both process startup and terminal can be very slow depending on OS. I also have a rule, I don't bash novice developers for their lack of knowledge.
Re: Dart team posts an example of fast code with 22ms for a “Hello world”
#10It's a startup time of the runtime. More interested in results with two "hello,world"s. How much the next one going to cost. Also C++ with cout, -O3 is 4ms and one in *.Zig is 1ms for some reason.
Probably want -Os (and strip afterwards) if you're interested in startup time. C is also 1ms. C++ has a big cxxrt that zig doesn't. FWIW c++ only takes 2ms on my (quite slow) machine.