aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* djb2 single threaded implementation (#308)Eve2024-01-112-0/+218
|
* First Version (#292)Samuel Yvon2024-01-113-0/+287
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First Version First draft; stole chunking but it's bad Forgot my changes No regex building Clean & optim I was not benchmarking myself T_T Faaaster First Version * Update calculate_average_samuelyvon.sh Co-authored-by: Gunnar Morling <gunnar.morling@googlemail.com> * Add prepare script * Fix rounding * Fix format * Fixing casing * Formats of sorts? * Rename --------- Co-authored-by: Gunnar Morling <gunnar.morling@googlemail.com>
* Entry into the contest, calculate_average_mtopolnik.sh (#246)Marko Topolnik2024-01-113-0/+570
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * calculate_average_mtopolnik * short hash (just first 8 bytes of name) * Remove unneeded checks * Remove archiving classes * 2x larger hashtable * Add "set" to setters * Simplify parsing temperature, remove newline search * Reduce the size of the name slot * Store name length and use to detect collision * Reduce memory loads in parseTemperature * Use short for min/max * Extract constant for semicolon * Fix script header * Explicit bash shell in shebang * Inline usage of broadcast semicolon * Try vectorization * Remove vectorization * Go Unsafe * Use SWAR temperature parsing by merykitty * Inline some things * Remove commented-out MemorySegment usage * Inline namesMem.asSlice() invocation * Try out JVM JIT flags * Implement strcmp * Remove unused instance variables * Optimize hashing * Put station name into hashtable * Reorder method * Remove usage of MemorySegment.getUtf8String Replace with UNSAFE.copyMemory() and new String() * Fix hashing bug * Remove outdated comments * Fix informative constants * Use broadcastByte() more * Improve method naming * More hashing * Revert more hashing * Add commented-out code to hash 16 bytes * Slight cleanup * Align hashtable at cacheline boundary * Add Graal Native image * Revert Graal Native image This reverts commit d916a42326d89bd1a841bbbecfae185adb8679d7. * Simplify shell script (no SDK selection) * Move a constant, zero out hashtable on start * Better name comparison * Add prepare_mtopolnik.sh * Cleaner idiom in name comparison * AND instead of MOD for hashtable indexing * Improve word masking code * Fix formatting * Reduce memory loads * Remove endianness checks * Avoid hash == 0 problem * Fix subtle bug * MergeSort of parellel results * Touch up perf * Touch up perf * Remove -Xmx256m * Extract result printing method * Print allocation details on OOME * Single mmap * Use global allocation arena
* First submission - CalculateAverage_JamalMulla.java - Jamal Mulla (#238)Jamal Mulla2024-01-113-0/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial chunked impl * Bytes instead of chars * Improved number parsing * Custom hashmap * Graal and some tuning * Fix segmenting * Fix casing * Unsafe * Inlining hash calc * Improved loop * Cleanup * Speeding up equals * Simplifying hash * Replace concurrenthashmap with lock * Small changes * Script reorg --------- Co-authored-by: Jamal Mulla <j.mulla@mwam.com>
* Fixed failing testsRoman Romanchuk2024-01-112-21/+55
|
* test_all.sh: configure fork test timeoutAlexander Yastrebov2024-01-111-3/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example output: ``` $ ./test_all.sh 2>/dev/null PASS abfrmblr PASS AbstractKamen PASS ags313 PASS alesj PASS algirdasrascius PASS anandmattikopp PASS arjenvaneerde FAIL armandino TIME artpar PASS artsiomkorzun PASS asun PASS baseline PASS berry120 PASS bjhara PASS charlibot PASS coolmineman PASS couragelee PASS criccomini PASS davecom PASS davery22 PASS ddimtirov PASS deemkeen PASS ebarlas PASS entangled90 FAIL fatroom PASS felix19350 PASS filiphr PASS flippingbits PASS fragmede PASS gabrielreid PASS gamlerhart PASS gnmathur PASS hchiorean FAIL hundredwatt PASS imrafaelmerino PASS isolgpus PASS itaske PASS iziamos PASS japplis PASS jgrateron PASS jotschi PASS kevinmcmurtrie PASS kgeri PASS khmarbaise PASS kuduwa-keshavram PASS kumarsaurav123 FAIL lawrey PASS maeda6uiui PASS MeanderingProgrammer PASS merykitty FAIL moysesb PASS mudit-saxena PASS obourgain PASS padreati PASS palmr PASS pedestrianlove PASS phd3 PASS raipc PASS rby PASS richardstartin FAIL roman-r-m PASS royvanrijn PASS rprabhu PASS santanu PASS seijikun PASS semotpan PASS spullara PASS thomaswue PASS truelive FAIL twobiers PASS Ujjwalbharti PASS yavuztas PASS yehwankim23 FAIL yemreinci PASS zerninv ```
* Update README.mdGunnar Morling2024-01-111-0/+3
|
* Update README - newline not allowed in station namesparkertimmins2024-01-111-2/+2
| | | | | Per https://github.com/gunnarmorling/1brc/discussions/311 station names will not contain newline characters.
* LeaderboardGunnar Morling2024-01-111-0/+5
|
* First version - roman_r_m (#193)Roman Musin2024-01-113-0/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * initial commit * - use loop - use mutable object to store results * get rid of regex * Do not allocate measurement objects * MMap + custom double parsing ~ 1:30 (down from ~ 2:05) * HashMap for accumulation and only sort at the end - 1:05 * MMap the whole file * Use graal * no GC * Store results in an array list to avoid double map lookup * Adjust max buf size * Manual parsing number to long * Add --enable-preview * remove buffer size check (has no effect on performance) * fix min & max initialization * do not check for \r * Revert "do not check for \r" This reverts commit 9da1f574bf6261ea49c353488d3b4673cad3ce6e. * Optimise parsing. Now completes in 31 sec down from ~43 * trying to parse numbers faster * use open address hash table instead of the standard HashMap * formatting * Rename the script to match github username (change underscores to slashes) Enable transparent huge pages, seems to improve by ~2 sec * Revert "formatting" This reverts commit 4e90797d2a729ed7385c9000c85cc7e87d935f96. * Revert "use open address hash table instead of the standard HashMap" This reverts commit c784b55f61e48f548b2623e5c8958c9b283cae14. * add prepare_roman-r-m.sh * SWAR tricks to find semicolon (-2 seconds ro run time) * remove time call * fix test * Parallel version (~6.5 seconds)
* Add multithreaded generation of measurements file with Gaussian distribution ↵Wladimir Schmidt2024-01-112-0/+556
| | | | | | | | | | (M2 AIR took 24 seconds for 1B items) (#175) * Add multithreaded variant to generate measurements * Add removing existing measurements.txt file in case exists (for usability reasons) Fix bug for number of lines generated * Fix also for less than assumed chunk size (10M entries) per thread
* First attempt from MeanderingProgrammerMeanderingProgrammer2024-01-113-0/+288
| | | | | | | | | | | | | #### Check List: - [x] Tests pass (`./test.sh MeanderingProgrammer` shows no differences between expected and actual outputs) - [x] All formatting changes by the build are committed - [x] Your launch script is named `calculate_average_MeanderingProgrammer.sh` (make sure to match casing of your GH user name) and is executable - [x] Output matches that of `calculate_average_baseline.sh` * Execution time: `00:04.668` * Execution time of reference implementation: `02:40.597` * System: Apple M2 Max, 12 cores, 64 GB
* Basic Implementation with Memory Mapped File, SIMD SearchRoman Stoffel2024-01-112-0/+289
| | | | By gamlerhart
* create fork hundredwatt (#279)Jason Nochlin2024-01-113-0/+378
| | | Co-authored-by: Jason Nochlin <hundredwatt@users.noreply.github.com>
* Add code by maeda6uiuimaeda6uiui2024-01-112-0/+508
|
* LeaderboardGunnar Morling2024-01-111-2/+2
|
* Fixing the off-by-one error and updating to native, redone layout of code. ↵Roy van Rijn2024-01-113-204/+188
| | | | (#307)
* Leaderboard, formattingGunnar Morling2024-01-116-27/+27
|
* Update davecom entry use ByteBuffer instead of String for Names and graal (#245)David Kopec2024-01-112-20/+47
| | | | | | | | | * my implementation about 19.5 seconds on M1 MacBook Air * final version * use ByteBuffer instead of String; use graal * add prepare_davecom script
* LeaderboardGunnar Morling2024-01-112-0/+3
|
* Charlibot submission (#249)Charlie Evans2024-01-112-0/+352
| | | | | | | * committing my ugly code * fulfil the brief wrt number of characters and the number of cities * prepare submission
* CalculateAverage_kumarsaurav123.java-> RAM 16 GB CPU 32 Core (#247)kumarsaurav1232024-01-112-0/+277
|
* Simple, slow but very short. :-) (#240)Aleš Justin2024-01-112-0/+69
| | | | | * Simple, slow but very short. :-) * Fix sync on DSS::accept.
* LoggingGunnar Morling2024-01-111-0/+2
|
* evaluate2.sh: Add Time Limit for Runs (#293)Jason Nochlin2024-01-111-3/+9
| | | | | | | | | * evaluate2.sh: Add Time Limit for Runs * check that bc is installed --------- Co-authored-by: Jason Nochlin <hundredwatt@users.noreply.github.com>
* Leaderboard update, better failure outputGunnar Morling2024-01-112-1/+3
|
* Remove additional_build_steps_*.sh support (#301)Alexander Yastrebov2024-01-114-40/+17
| | | There is no need to have it as preparation steps could be fit into prepare_*.sh
* improved artsiomkorzun solution (#176)Artsiom Korzun2024-01-112-196/+250
| | | | | | | improved artsiomkorzun solution improved artsiomkorzun solution Co-authored-by: Artsiom Korzun <akorzun@deltixlab.com>
* Leaderboard updateGunnar Morling2024-01-105-4/+7
|
* Implementation CalculateAverage_japplis of 1BRC from Anthony Goubard (#271)Anthony Goubard2024-01-103-0/+264
| | | | | | | | | | * Implementation CalculateAverage_japplis of 1BRC from Anthony Goubard (japplis). Local performance (7 years old desktop i7-6700K - 8 cores - 16GB) 26 seconds. For reference, Jamie Stansfield (isolgpus) is 23 seconds on my machine and 11s in your results. I've added the nbactions.xml to the .gitignore file. When you add in NetBeans options like --enable-preview to actions like debug file or run file, it creates this file. * Implementation CalculateAverage_japplis of 1BRC from Anthony Goubard (japplis). Local performance (7 years old desktop i7-6700K - 8 cores - 16GB) 26 seconds. For reference, Jamie Stansfield (isolgpus) is 23 seconds on my machine and 11s in your results. I've added the nbactions.xml to the .gitignore file. When you add in NetBeans options like --enable-preview to actions like debug file or run file, it creates this file. second commit: Removed BufferedInputStream and replaced Measurement with IntSummaryStatistics (thanks davecom): still 23" but cleaner code
* Add entries for pedestrianlove. (#265)pedestrianlove2024-01-102-0/+111
| | | Co-authored-by: jsl <s03851050@go.thu.edu.tw>
* first cut 1brc submission (#216)Pratham2024-01-102-0/+261
| | | | | | | | | | | | | * phd3 initial entry * Optimize parsing doubles * Remove redundant check * Update calculate_average_phd3.sh --------- Co-authored-by: Gunnar Morling <gunnar.morling@googlemail.com>
* Updating leaderboardGunnar Morling2024-01-104-0/+6
|
* Quick and dirty first version (#215)Algirdas Raščius2024-01-102-0/+291
| | | | | * Quick and dirty first version * Update script to new standard
* Initial solution by raipcAnton Rybochkin2024-01-103-0/+493
| | | | | | | | | | | | | | | * Initial solution by raipc * Implemented custom hash map with open addressing * Small optimizations to task splitting and range check disabling * Fixed off-by-one error in merge * Run with EpsilonGC. Borrowed VM params from Shipilev * Make script executable * Add a license
* Initial implementation (#158)Michael Berry2024-01-102-0/+288
| | | | | | | | | | | | | | | | | | | * Initial implementation * Make executable * Deal with collisions (but very slow) * Formatting * Remove superfluous time * Formatting * Fixes * Remove hard coded correction line * Integer parsing speedup
* Some optimizations arjenvaneerdearjenvaneerde2024-01-102-0/+368
| | | | | | | | | | | | | | | | | | | | | | | | | * First working version. * Small adjustments. * Correct number of threads. * Sync * Some fixes. To LF instead of CRLF. * Parallel reading and processing. * Update CreateMeasurements.java * Update CalculateAverage.java * Small fix for bug in switching buffers. * Update calculate_average_arjenvaneerde.sh --------- Co-authored-by: Gunnar Morling <gunnar.morling@googlemail.com>
* Implements CalculateAverage_zerninv.javazerninv2024-01-102-0/+218
| | | | | | | | | | | | | | | | | * initial attempt * adjust to new evaluation env * fix tests * fix typo * some numbers adjustments * Update calculate_average_zerninv.sh --------- Co-authored-by: Gunnar Morling <gunnar.morling@googlemail.com>
* CalculateAverage_AbstractKamenAbstractKamen2024-01-102-0/+243
| | | | | | | | | | | | | | | | | | | * initial commit * first attempt: segment the file and process it in parallel * remove commented stuff * custom parseDouble for this simple case * fixed some issues and improved parsing * format * Update calculate_average_AbstractKamen.sh --------- Co-authored-by: Gunnar Morling <gunnar.morling@googlemail.com>
* Leaderboard, clean-upGunnar Morling2024-01-104-1/+18
|
* gnmathur's solution (#202)Gaurav Mathur2024-01-102-0/+171
| | | Co-authored-by: Gaurav Mathur <gmathur@gurukul>
* Removing superfluous time callsGunnar Morling2024-01-102-2/+2
|
* Leaderboard updateGunnar Morling2024-01-101-2/+4
|
* Add CalculateAverage_couragelee Java class and shell scriptCourageLee2024-01-102-0/+355
| | | This commit introduces a new java class, CalculateAverage_couragelee, and a shell script for calculating averages. The java class utilizes NIO's memory-mapping and parallel computing techniques to perform calculations. These changes should improve the efficiency and speed of average calculations.
* Implementation by rprabhu Prabhu R2024-01-102-0/+157
| | | Co-authored-by: Prabhu R <prabhu.rengaswamy@outlook.com>
* gabrielreid take 2greid2024-01-101-162/+141
| | | | | Clear up some TODOS, simplify the code a bit, which appears to result in a 25% performance increase.
* Second submission by flippingbits - 50% performance improvementStefan Sprenger2024-01-101-92/+90
| | | | | | | | | | | * feat(flippingbits): Improve parsing of measurement and few cleanups * feat(flippingbits): Reduce chunk size to 10MB * feat(flippingbits): Improve parsing of station names * chore(flippingbits): Remove obsolete import * chore(flippingbits): Few cleanups
* merykitty's second attemptQuan Anh Mai2024-01-102-192/+139
|
* Leaderboard updateGunnar Morling2024-01-101-3/+3
|
* Consume four bytes at a time from buffer using getInt. Store key with unsafe ↵Elliot Barlas2024-01-102-84/+143
| | | | int array rather than byte array. Use custom equals rather than Arrays equals.