Comments (4)
@KipRM I understand the apparent discrepancy you're flagging, but as @sonicrules1234 points out, this is actually completely logical as documented in code and README.md. I'm going to close this for that reason.
from primes.
If you look in the README.md file you'll see that it says that -warmup tells the program to run the sieve for a few seconds before running the benchmark to warm the JVM. I was surprised at first how long the benchmarks took for the Primes project, but when I started looking at the code, I saw that many of the solutions had more than one algorithm being run. That's not the issue in your case, but just remember to look a little closer next time please.
from primes.
I didn't see any way to report an observation. What percent of the audience out there is going to know the warm up will double the time ?
this is ran on a much better machine
Processors: 8
Processor speed: 2.5 GHz
Processor type: Intel(R) Core(TM) i7-4720HQ CPU @
Tue Dec 14 09:38:58 MST 2021
java -cp src PrimeSieveI32C -warmup
chrvanorleI32C;4586;5.000000;1;algorithm=base,faithful=yes,bits=1
Tue Dec 14 09:38:58 MST 2021 <----Started
09_39_08 <====Finished (10)sec 1639499938 - 1639499948
Tue Dec 14 09:39:08 MST 2021
java -cp src PrimeSieveI32C
chrvanorleI32C;4468;5.001000;1;algorithm=base,faithful=yes,bits=1
Tue Dec 14 09:39:08 MST 2021 <----Started
09_39_14 <====Finished (6)sec 1639499948 - 1639499954
from primes.
The README does literally state that "-warmup: Runs the sieve a few seconds to warmup the JVM". I think it makes sense that 5 + "a few seconds" gets you in the 9 to 10 second range.
.
Observations can be reported in a Discussion.
from primes.
Related Issues (20)
- PrimesV/solution_2 does not build HOT 1
- Bad access on CPP Solution3 with clang (macOS ARM64) HOT 3
- Number of threads isn't being reported by awk solution 1 HOT 4
- Dart/solution_1 hangs on 5950X runner HOT 5
- need a command to compile without running
- All Benchmarks Fail to Compile HOT 9
- I have a coldfusion solution
- Rust solution 1 takes 10 seconds instead of just 5 HOT 1
- PrimeJava counting small numbers as prime HOT 3
- would have been nice to include a list of the results for those who don't have the time to set this up. HOT 1
- Ruby solution takes > 4 hours to complete. HOT 9
- Question: Is inline assembly allowed?
- Thoughts on Prime Number Generation Challenge and a Possible Spin-Off HOT 1
- Request: more esoteric languages
- Odin/solution_1 doesn't compile with the current (dev-2024-02) version of Odin HOT 2
- OCaml solutions don't build with current version of OCaml HOT 2
- Pascal Parameters can use const word to be fastest HOT 1
- Benchmark Rules violation — not using bit per number? HOT 3
- Problem While compiling PrimeCPP/solution 2 HOT 1
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 primes.