Add csv parsing benchmark #1403

This commit is contained in:
infogulch
2023-11-13 15:41:06 -06:00
parent 40608dc8d4
commit 98d8b00d7a
2 changed files with 48 additions and 0 deletions

41
benches/csv.pl Normal file

File diff suppressed because one or more lines are too long

View File

@@ -29,6 +29,13 @@ pub fn prolog_benches() -> BTreeMap<&'static str, PrologBenchmark> {
Strategy::Reuse,
btreemap! { "Head" => Value::try_from("1".to_string()).unwrap()},
),
(
"csv_codename",
"benches/csv.pl",
"get_codename(\"0020\",Name).",
Strategy::Reuse,
btreemap! { "Name" => Value::try_from("SPACE".to_string()).unwrap()},
),
]
.map(|b| {
(