Giter Club home page Giter Club logo

longest-word-test's Introduction

Longest Word Test

The Rules

  1. Solution may be in any language and use any implementation or algorithm
  2. Solution must find the longest word in a corpus. Words are only considered to be space and newline delimited text.
  3. Solution is timed from first loading/reading of the corpus to the return of the longest word and/or length of the word.
  • Parsing arguments is not counted
  • Runtime initialization is not counted
  • Time should be measured in MS

Note: Solutions are currently divided into two categories: single-threaded and concurrent.

How to participate

Write your solution, add your name to the top, and send a pull request. It would be super awesome if you also updated the Dockerfile and the run_tests.sh to include your submission, but that's not necessary.

Leaderboard

Single-Threaded

Name Language Time (ms) Notes
@dnesbitt03qub C++ 319 Striding implementation
@pard68 Rust 1041
@pard68 Rust 1083 HashTable
Jeffrey Corcoran C# 2275
@bbriggs Go 2849
@zombeej JavaScript 3941
@drewpearce Cython 6581 Loop w/ longest
@specs Python 12245 Comprehensions
@specs Python 14444 Loop and sort
@specs Python 16257 Loop w/ longest
@pard68 Bash ~5543 Native speed - Not running in Docker

Concurrent

Name Language Time (ms) Notes
@dnesbitt03qub C++ 59 Striding
@pard68 Rust 164 HashTable
Jeffrey Corcoran C# 716

Methodology

longest-word-test's People

Contributors

plusuncold avatar ispringle avatar basking2 avatar bbriggs avatar drewpearce avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.