Comments (3)
I see two possibilities for each language:
- concurrency can be enabled with a cli-switch/subcommand/whatever, the code is the same
- the concurrent code is different from the single-threaded,
If we choose the Makefile structure you suggested, there could be a run and a run-parallel command (if it is implemented). What do you think?
from wordcount.
Sounds reasonable.
from wordcount.
the java implementation uses threading:
$ cat data/huwiki-latest-pages-meta-current.xml | /usr/bin/time -v java -Xms2G -Xmx8G -classpath java:java/zah-0.6.jar WordCountOptimized >out-java.txt
[...]
Percent of CPU this job got: 141%
[...]
$ java --version
openjdk 21.0.2 2024-01-16
OpenJDK Runtime Environment (build 21.0.2+13)
OpenJDK 64-Bit Server VM (build 21.0.2+13, mixed mode, sharing)
[...]
from wordcount.
Related Issues (20)
- Both Java versions fail on the first two tests HOT 2
- Python 3 version is not working HOT 3
- no g++ in the created docker image HOT 1
- Use unambiguous docker base image HOT 1
- Needs a better dataset for comparison with large data size HOT 19
- Reorganize setup HOT 7
- Rename solutions HOT 1
- Delete wordcount2.js HOT 2
- Replace build script with Makefile HOT 5
- Tidy up Dockerfile
- AWS test environment + automated test/benchmark in Jenkins HOT 8
- Memory usage of Bash isn't comparable to rest HOT 1
- Outdated results HOT 3
- Typescript fails test9 HOT 2
- Is this project still alive? HOT 7
- JVM: -XX:+UseG1GC -XX:+UseStringDeduplication HOT 4
- Simple vs. optimized versions HOT 1
- The project is looking for a new owner HOT 9
- java implementation bug
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 wordcount.