From 5e4d77fa888620e18ecfbd3c2c3701ab953ffbc9 Mon Sep 17 00:00:00 2001 From: drh <> Date: Wed, 19 Jul 2023 19:23:30 +0000 Subject: [PATCH] Describe JSON parser performance testing procedure in test/json/README.md FossilOrigin-Name: c47056e158073ee746c233dd2729cf224ea9e38821b15aa71ebf97607e602281 --- manifest | 12 ++++++------ manifest.uuid | 2 +- test/json/README.md | 6 ++++++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/manifest b/manifest index 575934e4e2..c53b030eee 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Two\sminor\simprovements\sto\ssum(),\sone\sof\swhich\swas\sinspired\sby\n[forum:/forumpost/af5be98dbc|forum\spost\saf5be98dbc]. -D 2023-07-19T09:52:10.467 +C Describe\sJSON\sparser\sperformance\stesting\sprocedure\sin\stest/json/README.md +D 2023-07-19T19:23:30.391 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724 @@ -1222,7 +1222,7 @@ F test/journal3.test 7c3cf23ffc77db06601c1fcfc9743de8441cb77db9d1aa931863d94f5ff F test/jrnlmode.test 9b5bc01dac22223cb60ec2d5f97acf568d73820794386de5634dcadbea9e1946 F test/jrnlmode2.test 8759a1d4657c064637f8b079592651530db738419e1d649c6df7048cd724363d F test/jrnlmode3.test 556b447a05be0e0963f4311e95ab1632b11c9eaa -F test/json/README.md 506af1f54574b524106acb50d1a341ab5ddfa6d83fe25095007892b07e663e85 +F test/json/README.md e5a2fdbdf37612286fb07c6320cd88152a0d163c87c135b95ca4dce58a4fef7d F test/json/json-generator.tcl dc0dd0f393800c98658fc4c47eaa6af29d4e17527380cd28656fb261bddc8a3f F test/json/json-q1.txt 335a7c8ab291d354f33b7decc9559e99a2823d4142291c4be7aa339a631f3c2d F test/json/json-speed-check.sh 8b7babf530faa58bd59d6d362cec8e9036a68c5457ff46f3b1f1511d21af6737 x @@ -2043,8 +2043,8 @@ F vsixtest/vsixtest.tcl 6a9a6ab600c25a91a7acc6293828957a386a8a93 F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0 -P 76152ad2ffe56034f2fd93d9a1ce9358e1677a7e9cd3dcd9f3a34a5c956a463e -R 47d8d8ca9ec8151ad0210262a08ac711 +P a0d3e7571aded8d1e03908059d2d5aa5d62ec49bff099cb38f6f35df5e4b18b5 +R 9c85d46fcd15515aa3b030597dff0987 U drh -Z b98de7129167c58b9385610fbdec3119 +Z f1436c99b14877587c058fd4369d8d71 # Remove this line to create a well-formed Fossil manifest. diff --git a/manifest.uuid b/manifest.uuid index 4a5750f1d2..e37c386497 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -a0d3e7571aded8d1e03908059d2d5aa5d62ec49bff099cb38f6f35df5e4b18b5 \ No newline at end of file +c47056e158073ee746c233dd2729cf224ea9e38821b15aa71ebf97607e602281 \ No newline at end of file diff --git a/test/json/README.md b/test/json/README.md index 6a16114925..7e962418c3 100644 --- a/test/json/README.md +++ b/test/json/README.md @@ -25,3 +25,9 @@ of the SQLite JSON parser. 2. Run "`sh json-speed-check-1.sh x1`". The profile output will appear in jout-x1.txt. Substitute any label you want in place of "x1". + + 3. Run the query "`SELECT sum(json_valid(x)) FROM data1;`" on the + json100mb.db database file. Measure the + runtime. Divide 100 by the real elapse time of this test + to get an estimate for number of MB/s that the JSON parser is + able to process.