Coder Social home page Coder Social logo

segment11 / photondb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from photondb/photondb

0.0 0.0 0.0 822 KB

A storage engine for modern hardware, built from scratch in Rust.

Home Page: https://photondb.io

License: MIT License

Rust 100.00%

photondb's Introduction

PhotonDB

A storage engine for modern hardware, built from scratch in Rust.

Design

Architecture

Progress

The in-memory part of the storage engine is almost done at the moment. We have published the photondb-engine crate v0.0.1.

Example:

[dependencies]
photondb-engine = "0.0.1"
use photondb_engine::tree::{Error, Map, Options};

fn main() -> Result<(), Error> {
    let map = Map::open(Options::default())?;
    map.put(b"hello", b"world")?;
    map.get(b"hello", |value| {
        assert_eq!(value.unwrap(), b"world");
    })?;
    map.delete(b"hello")?;
    map.get(b"hello", |value| assert_eq!(value, None))?;
    Ok(())
}

Benchmark

Some rough benchmarks on the in-memory storage engine with 100M keys:

#threads get put get:put = 4:1
1 638468 521065 444558
2 1245346 1010584 938936
4 2371893 1897404 1768171
6 3317791 2622060 2489307
8 4099652 3240738 3102952
10 4738312 3681498 3418918
12 5281951 4148568 3801134
14 5826484 4636580 4309976
16 6364404 5114875 4812409

References

photondb's People

Contributors

huachaohuang avatar w41ter avatar zojw avatar felixonmars 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.