nodejs
1๏ธโฃ๐๐๏ธ The One Billion Row Challenge with Node.js -- A fun exploration of how quickly 1B rows from a text file can be aggregated with different languages.
ํ์ผ ํ์๊ธฐ
์ต์ข ๋ฒ์ ๋ค์ด๋ก๋ (.zip)- maven.yml
- pull_request_template.md
- maven-wrapper.jar
- maven-wrapper.properties
- weather_stations.csv
- eclipse-formatter-config.xml
- license.txt
- CalculateAverage.java
- CreateMeasurements.java
- CreateMeasurements2.java
- CreateMeasurements3.java
- CheaperCharBuffer.java
- FastRandom.java
- .gitignore
- index.js
- package-lock.json
- package.json
- tsconfig.json
- .gitignore
- index.js
- package-lock.json
- package.json
- README.md
- result.txt
- tsconfig.json
- .dontdelete
- measurements-1.out
- measurements-1.txt
- measurements-10.out
- measurements-10.txt
- measurements-10000-unique-keys.out
- measurements-10000-unique-keys.txt
- measurements-2.out
- measurements-2.txt
- measurements-20.out
- measurements-20.txt
- measurements-3.out
- measurements-3.txt
- measurements-boundaries.out
- measurements-boundaries.txt
- measurements-complex-utf8.out
- measurements-complex-utf8.txt
- .dontdelete
- .gitattributes
- .gitignore
- 1brc.png
- additional_build_step_thomaswue.sh
- calculate_average_baseline.sh
- calculate_average_Edgar-P-Yan.sh
- cleanup.sh
- create_measurements.sh
- create_measurements2.sh
- create_measurements3.sh
- eval.sh
- evaluate.sh
- LICENSE.txt
- mvnw
- mvnw.cmd
- pom.xml
- prepare.sh
- process.sh
- process_output.java
- README.md
- test.sh
- test_all.sh
- tocsv.sh
# ์ค์น ๊ฐ์ด๋
1. ์ฝ๋ ๋ด๋ ค๋ฐ๊ธฐ
git clone https://github.com/1brc/nodejs
๊นํ๋ธ์์ ํ๋ก์ ํธ ์ฝ๋ ์ ์ฒด๋ฅผ ๋ด ์ปดํจํฐ๋ก ๋ด๋ ค๋ฐ์ต๋๋ค.
cd nodejs
๋ฐฉ๊ธ ๋ด๋ ค๋ฐ์ ํ๋ก์ ํธ ํด๋ ์์ผ๋ก ์ด๋ํฉ๋๋ค.
2. Maven (Java)
๋ณดํต ์ถ์ฒ์ฌ์ ์ค๋น๋ฌผ
- Git GitHub์์ ํ๋ก์ ํธ ์ฝ๋๋ฅผ ๋ด๋ ค๋ฐ์ผ๋ ค๋ฉด ํ์ํฉ๋๋ค.
- JDK (Java) Java ํ๋ก์ ํธ๋ฅผ ๋น๋/์คํํ๋ ค๋ฉด ํ์ํฉ๋๋ค.
- Maven mvn ๋ช ๋ น์ด๋ฅผ ์ฐ๊ธฐ ์ํ ๋น๋ ๋๊ตฌ์ ๋๋ค.
mvn clean install
Maven์ผ๋ก ์์กด์ฑ ์ค์น์ ๋น๋๋ฅผ ์งํํฉ๋๋ค.
BUILD SUCCESS ๋ฉ์์ง๊ฐ ๋จ๋ฉด ์ฑ๊ณต์
๋๋ค. target/ ํด๋์ ๊ฒฐ๊ณผ๋ฌผ์ด ์์ฑ๋ฉ๋๋ค.
3. Node.js
์ฌ์์ฌ์ ์ค๋น๋ฌผ
โ ๏ธ ์ด ํ๋ก์ ํธ๋ ๊ท๋ชจ๊ฐ ํฐ ์ ์ฅ์๋ผ, ์ด ๋ฐฉ๋ฒ์ด ์ค์ ํต์ฌ ์ ํ์ด ์๋๋ผ ๋ด๋ถ ํ์ ํจํค์ง๋ฅผ ๊ฐ๋ฆฌํค๋ ๊ฒ์ผ ์ ์์ต๋๋ค. README ์ ์ฒด๋ฅผ ํจ๊ป ํ์ธํด๋ณด์ธ์.
cd src/main/nodejs/Edgar-P-yan
์ด ํ๋ก์ ํธ์ ๊ด๋ จ ํ์ผ์ด ํ์ ํด๋ ์์ ์์ด์, ๋จผ์ ๊ทธ ํด๋๋ก ์ด๋ํฉ๋๋ค.
npm install
package.json์ ๋ช ์๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ๋ด๋ ค๋ฐ์ ์ค์นํฉ๋๋ค.
npm start
๊ฐ๋ฐ/์คํ ์๋ฒ๋ฅผ ์ผญ๋๋ค.
๋ช
๋ น์ด ์คํ ํ ํฐ๋ฏธ๋์ ๋ํ๋๋ ์ฃผ์(๋ณดํต http://localhost:3000 ํํ)๋ฅผ ๋ธ๋ผ์ฐ์ ์์ ์ด์ด๋ณด์ธ์.
// repository documentation
Was this content helpful?
(0 ratings)
