toeverything / OctoBase

🐙 OctoBase is the open-source database behind AFFiNE, local-first, yet collaborative. A light-weight, scalable, data engine written in Rust.
https://octobase.dev
GNU Affero General Public License v3.0
1.38k stars 91 forks source link

feat: init jwst-node binding #469

Closed forehalo closed 1 year ago

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
octobase ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 15, 2023 9:54am
github-actions[bot] commented 1 year ago

Benchmark Results

Linux

group                                  master                                 pr
-----                                  ------                                 --
codec/jwst decode var_int (32 bit)     1.06    396.5±3.94µs        ? ?/sec    1.00    373.1±0.17µs        ? ?/sec
codec/jwst decode var_int (64 bit)     1.00    329.0±0.90µs        ? ?/sec    1.21    397.2±0.53µs        ? ?/sec
codec/jwst decode var_uint (32 bit)    1.00    411.8±0.18µs        ? ?/sec    1.00    412.0±0.14µs        ? ?/sec
codec/jwst decode var_uint (64 bit)    1.27    368.1±0.29µs        ? ?/sec    1.00    289.2±0.18µs        ? ?/sec
codec/jwst encode var_int (32 bit)     1.00    451.7±1.42µs        ? ?/sec    1.37    620.3±0.47µs        ? ?/sec
codec/jwst encode var_int (64 bit)     1.00    555.4±0.56µs        ? ?/sec    1.00    555.4±0.25µs        ? ?/sec
codec/jwst encode var_uint (32 bit)    1.30    463.3±3.18µs        ? ?/sec    1.00    356.9±2.84µs        ? ?/sec
codec/jwst encode var_uint (64 bit)    1.27    453.5±2.28µs        ? ?/sec    1.00    357.0±2.50µs        ? ?/sec
codec/lib0 decode var_int (64 bit)     1.08    426.8±0.27µs        ? ?/sec    1.00    394.6±5.76µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)    1.59    418.4±0.14µs        ? ?/sec    1.00    262.6±1.19µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)    1.00    357.1±0.12µs        ? ?/sec    1.08    385.1±0.27µs        ? ?/sec
codec/lib0 encode var_int (64 bit)     1.01    472.6±5.22µs        ? ?/sec    1.00    470.0±2.64µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)    1.02    403.2±1.94µs        ? ?/sec    1.00    396.3±0.92µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)    1.06    401.0±2.57µs        ? ?/sec    1.00    378.7±3.44µs        ? ?/sec
operations/jwst array insert           1.00    245.1±0.79µs        ? ?/sec    1.00    244.7±0.59µs        ? ?/sec
operations/jwst array insert range     1.02  472.8±189.07µs        ? ?/sec    1.00   463.0±42.38µs        ? ?/sec
operations/yrs array insert            1.00     88.2±0.59µs        ? ?/sec    1.00     88.2±0.50µs        ? ?/sec
operations/yrs array insert range      1.00    116.3±0.69µs        ? ?/sec    1.00    116.3±0.49µs        ? ?/sec
update/parse with jwst/basic.bin       1.00     75.0±0.17µs    72.8 MB/sec    1.01     75.5±0.12µs    72.3 MB/sec
update/parse with jwst/database.bin    1.00     51.8±0.29µs    64.0 MB/sec    1.01     52.3±0.11µs    63.4 MB/sec
update/parse with jwst/large.bin       1.00      4.0±0.02ms    57.6 MB/sec    1.01      4.0±0.01ms    57.3 MB/sec
update/parse with yrs/basic.bin        1.01     44.0±0.05µs   124.1 MB/sec    1.00     43.7±0.14µs   125.1 MB/sec
update/parse with yrs/database.bin     1.00     35.5±0.03µs    93.3 MB/sec    1.01     35.8±0.04µs    92.6 MB/sec
update/parse with yrs/large.bin        1.00      2.2±0.00ms   101.9 MB/sec    1.00      2.2±0.00ms   101.8 MB/sec

Windows

group                                  master                                 pr
-----                                  ------                                 --
codec/jwst decode var_int (32 bit)     1.16   538.9±31.50µs        ? ?/sec    1.00   465.1±22.60µs        ? ?/sec
codec/jwst decode var_int (64 bit)     1.00   497.3±37.54µs        ? ?/sec    1.16   579.2±25.58µs        ? ?/sec
codec/jwst decode var_uint (32 bit)    1.14   544.2±34.27µs        ? ?/sec    1.00   475.5±19.28µs        ? ?/sec
codec/jwst decode var_uint (64 bit)    1.49   595.3±25.24µs        ? ?/sec    1.00   398.9±16.84µs        ? ?/sec
codec/jwst encode var_int (32 bit)     1.22   669.0±36.20µs        ? ?/sec    1.00   549.7±30.49µs        ? ?/sec
codec/jwst encode var_int (64 bit)     1.33  889.2±408.83µs        ? ?/sec    1.00   670.5±29.98µs        ? ?/sec
codec/jwst encode var_uint (32 bit)    1.06   564.7±35.33µs        ? ?/sec    1.00   532.2±25.41µs        ? ?/sec
codec/jwst encode var_uint (64 bit)    1.05   552.4±34.38µs        ? ?/sec    1.00   524.6±24.49µs        ? ?/sec
codec/lib0 decode var_int (64 bit)     1.00   530.7±25.02µs        ? ?/sec    1.00   531.8±23.94µs        ? ?/sec
codec/lib0 decode var_uint (32 bit)    1.01   303.6±17.34µs        ? ?/sec    1.00   299.4±13.94µs        ? ?/sec
codec/lib0 decode var_uint (64 bit)    1.02   445.8±38.59µs        ? ?/sec    1.00   438.1±20.56µs        ? ?/sec
codec/lib0 encode var_int (64 bit)     1.00   703.6±33.79µs        ? ?/sec    1.02   718.0±31.83µs        ? ?/sec
codec/lib0 encode var_uint (32 bit)    1.00   474.7±23.07µs        ? ?/sec    1.02   484.2±20.24µs        ? ?/sec
codec/lib0 encode var_uint (64 bit)    1.02   480.1±19.46µs        ? ?/sec    1.00   471.6±16.07µs        ? ?/sec
operations/jwst array insert           1.08   378.5±20.13µs        ? ?/sec    1.00   350.4±13.02µs        ? ?/sec
operations/jwst array insert range     1.00   604.3±47.24µs        ? ?/sec  
operations/yrs array insert            1.00    127.1±5.26µs        ? ?/sec    1.01    127.9±4.89µs        ? ?/sec
operations/yrs array insert range      1.00    171.1±5.64µs        ? ?/sec  
update/parse with jwst/basic.bin       1.08    154.2±5.69µs    35.4 MB/sec    1.00    143.4±4.15µs    38.1 MB/sec
update/parse with jwst/database.bin    1.00    113.0±3.33µs    29.3 MB/sec    1.00    113.6±4.57µs    29.2 MB/sec
update/parse with jwst/large.bin       1.01      7.0±0.28ms    32.6 MB/sec    1.00      7.0±0.29ms    32.8 MB/sec
update/parse with yrs/basic.bin        1.00     85.5±2.97µs    63.8 MB/sec    1.01     86.7±4.25µs    63.0 MB/sec
update/parse with yrs/database.bin     1.00     64.9±2.12µs    51.0 MB/sec    1.02     66.3±2.31µs    50.0 MB/sec
update/parse with yrs/large.bin        1.00      3.8±0.21ms    60.3 MB/sec    1.06      4.0±0.25ms    56.9 MB/sec
forehalo commented 1 year ago

moved to AFFiNE