Skip to content

Latest commit

 

History

History
45 lines (36 loc) · 1.35 KB

README.md

File metadata and controls

45 lines (36 loc) · 1.35 KB

GraFine

npm version Build Status Coverage Status Gitter

A tiny nodejs/javascript in memory graph database - used as a core component into the php-reflection project.

Statistics :

Create 100000 items	in	645ms 	96Mb	155039/sec
0. Deleted 10000 items	in	64ms 	99Mb	156250/sec
0. Create 10000 items	in	100ms 	104Mb	100000/sec
1. Deleted 10000 items	in	53ms 	106Mb	188679/sec
1. Create 10000 items	in	26ms 	112Mb	384615/sec
Found 6012 items	in	9ms 	112Mb	668000/sec
Export 100000 items	in	113ms 	125Mb	884956/sec
Import 100000 items	in	559ms 	164Mb	178891/sec
Found 6012 items	in	7ms 	164Mb	858857/sec
---------------------------
Estimated size 7.6 Mb

API :

npm install grafine --save

And next use it :

var grafine = require('grafine');
var db = new grafine.graph();
var a = db.create();
var b = db.create();
a.set('friend', b);
a.index('name', 'john');
// etc ...

@todo