Code Monkey home page Code Monkey logo

access-log-bench's Introduction

Access Log Bench

Benchmarks of querying access log data using various different libraries.

See https://github.com/tustvold/access-log-gen/ for how to generate some example data

Supported Libraries

Disclaimer

As one of the DataFusion maintainers, I am necessarily more familiar with this project than the others. It is therefore possible that I have missed something when implementing the benchmarks for the other frameworks. Please feel free to file an issue if this is the case.

Results

Benchmarks run on a GCP c2-standard-16, containing a 16-core, Cascade Lake Intel Xeon

Rust code compiled in release mode with RUSTFLAGS="-C target-cpu=native"

DataFusion Polars DuckDB
select * from logs 0.700749459s 0.460665795 3.70185782s
select * from logs where service = 'frontend' 0.283448816s 0.563334824s 1.478420882s
select * from logs where service = 'frontend' and host = 'i-1ec3d9e2506434b2.ec2.internal' 0.026470119s 0.39868975s 0.093473218s
select * from logs where service = 'frontend' and host = 'i-1ec3d9e2506434b2.ec2.internal' and time > '1970-01-01 00:00:00.008000'::timestamp 0.0080433s 0.394838356s 0.017670706s
select request_duration_ns from logs 0.010579846s 0.010826365s 0.034813344s
select request_duration_ns from logs where service = 'frontend' 0.029740852s 0.035965889s 0.064686456s
select request_duration_ns from logs where service = 'frontend' and host = 'i-1ec3d9e2506434b2.ec2.internal' 0.007339517s 0.034294067s 0.026720655s
select request_duration_ns from logs where service = 'frontend' and host = 'i-1ec3d9e2506434b2.ec2.internal' and time > '1970-01-01 00:00:00.008000'::timestamp 0.006797571s 0.053213211s 0.027028755s
select client_addr from logs 0.067138065s 0.028622422s 0.429092272s
select client_addr from logs where service = 'frontend' 0.049909435s 0.035862489s 0.171640143s
select client_addr from logs where service = 'frontend' and host = 'i-1ec3d9e2506434b2.ec2.internal' 0.008447111s 0.041778316s 0.050099823s
select client_addr from logs where service = 'frontend' and host = 'i-1ec3d9e2506434b2.ec2.internal' and time > '1970-01-01 00:00:00.008000'::timestamp 0.006608244s 0.052782936s 0.026275229s

access-log-bench's People

Contributors

tustvold avatar alamb 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.