Skip to content

Commit 93536d9

Browse files
authored
Merge pull request intbio-ncl#8 from arunaengine/feat/rdfperformance
Improve RDF import/export performance and add RDF benchmarks
2 parents 8c6ad7d + a0e7140 commit 93536d9

13 files changed

Lines changed: 1241 additions & 564 deletions

File tree

Cargo.lock

Lines changed: 147 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ name = "rocraters"
4444
path = "src/lib.rs"
4545
doctest = false
4646

47+
[[bench]]
48+
name = "create_and_write"
49+
harness = false
50+
51+
[[bench]]
52+
name = "rdf_perf"
53+
harness = false
54+
required-features = ["rdf"]
55+
4756
[features]
4857
parquet = ["dep:polars"]
4958
rdf = ["dep:oxrdf", "dep:oxrdfio"]
@@ -81,3 +90,4 @@ oxrdfio = { workspace = true, optional = true }
8190
[dev-dependencies]
8291
tempfile = "3.24"
8392
mockito = "1.7.1"
93+
criterion = "0.5"

benches/create_and_write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use criterion::{criterion_group, criterion_main, Criterion};
1+
use criterion::{Criterion, criterion_group, criterion_main};
22

33
use rocraters::ro_crate::constraints::*;
44
use rocraters::ro_crate::contextual_entity::ContextualEntity;

0 commit comments

Comments
 (0)