Git Product home page Git Product logo

grep-benchmarks's Introduction

file length 4,036,000 lines


NODE

node . frog ../poem.txt

matches: 403600 operation complete in 471.737ms

matches: 403600 operation complete in 468.603ms

matches: 403600 operation complete in 482.273ms

matches: 403600 operation complete in 473.751ms

matches: 403600 operation complete in 469.377ms


RUST

cargo build --release
./target/release/grep.exe frog ../poem.txt

matches: 403600 operation complete in 78.4785ms

matches: 403600 operation complete in 78.9137ms

matches: 403600 operation complete in 78.8427ms

matches: 403600 operation complete in 91.945ms

matches: 403600 operation complete in 78.504ms


PYTHON

python main.py frog ../poem.txt

matches: 403600 operation complete in 390.0 ms

matches: 403600 operation complete in 385.0 ms

matches: 403600 operation complete in 386.0 ms

matches: 403600 operation complete in 386.96 ms

matches: 403600 operation complete in 386.02 ms


CSHARP

dotnet publish
.\bin\Debug\net6.0\publish\chsarp.exe frog ../poem.txt

matches: 403600 operation complete in 262 ms

matches: 403600 operation complete in 265 ms

matches: 403600 operation complete in 273 ms

matches: 403600 operation complete in 276 ms

matches: 403600 operation complete in 278 ms


DENO

deno run --allow-read src/index.ts frog ../poem.txt

matches: 403600 operation complete in 1.684s

matches: 403600 operation complete in 1.646s

matches: 403600 operation complete in 1.666s

matches: 403600 operation complete in 1.654s

matches: 403600 operation complete in 1.634s


GO

go build
.\grep.exe frog ../poem.txt

matches: 403600 operation complete in: 124ms

matches: 403600 operation complete in: 126ms

matches: 403600 operation complete in: 124ms

matches: 403600 operation complete in: 122ms

matches: 403600 operation complete in: 127ms

grep-benchmarks's People

Contributors

judegiordano avatar

Watchers

James Cloos avatar  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.