should be it
This commit is contained in:
16
external/duckdb/benchmark/micro/string/inet_unescape_charrefs.benchmark
vendored
Normal file
16
external/duckdb/benchmark/micro/string/inet_unescape_charrefs.benchmark
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
# name: benchmark/micro/string/inet_unescape_charrefs.benchmark
|
||||
# description: inet's extension unescape function benchmark with character references
|
||||
# group: [string]
|
||||
|
||||
name html_unescape benchmark for character references
|
||||
group string
|
||||
require inet
|
||||
|
||||
load
|
||||
CREATE TABLE charrefs AS SELECT * FROM (VALUES ('&'), ('∷'), ('∳'), ('&;'), ('≷'), ('⇆'), ('↓'), ('not ¬in'), ('";'), ('&no charref'));
|
||||
INSERT INTO charrefs SELECT repeat('⪰̸', i%10) charref FROM range(1000) t(i);
|
||||
INSERT INTO charrefs SELECT repeat('𝔷', i%10) charref FROM range(1000) t(i);
|
||||
INSERT INTO charrefs SELECT repeat('É', i%7) html_text FROM range(997990) t(i);
|
||||
|
||||
run
|
||||
SELECT html_unescape(charrefs.col0) FROM charrefs;
|
||||
Reference in New Issue
Block a user