time travel bench size

main
Ziyang Hu 2 years ago
parent 42f5946539
commit 5671df2411

@ -36,6 +36,15 @@ fn insert_data(db: &DbInstance) {
.collect_vec(), .collect_vec(),
}, },
); );
to_import.insert(
"tt10".to_string(),
NamedRows {
headers: vec!["k".to_string(), "vld".to_string(), "v".to_string()],
rows: (0..10000)
.flat_map(|i| (0..10).map(move |vld| vec![json!(i), json!([vld, true]), json!(i)]))
.collect_vec(),
},
);
to_import.insert( to_import.insert(
"tt100".to_string(), "tt100".to_string(),
@ -48,7 +57,7 @@ fn insert_data(db: &DbInstance) {
); );
to_import.insert( to_import.insert(
"tt10000".to_string(), "tt1000".to_string(),
NamedRows { NamedRows {
headers: vec!["k".to_string(), "vld".to_string(), "v".to_string()], headers: vec!["k".to_string(), "vld".to_string(), "v".to_string()],
rows: (0..10000) rows: (0..10000)
@ -71,8 +80,9 @@ lazy_static! {
r#" r#"
{:create plain {k: Int => v}} {:create plain {k: Int => v}}
{:create tt1 {k: Int, vld: Validity => v}} {:create tt1 {k: Int, vld: Validity => v}}
{:create tt10 {k: Int, vld: Validity => v}}
{:create tt100 {k: Int, vld: Validity => v}} {:create tt100 {k: Int, vld: Validity => v}}
{:create tt10000 {k: Int, vld: Validity => v}} {:create tt1000 {k: Int, vld: Validity => v}}
"#, "#,
Default::default(), Default::default(),
); );

Loading…
Cancel
Save