]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Revise the new JSON parser performance test to make the test run 25 times
authordrh <>
Wed, 19 Jul 2023 20:23:34 +0000 (20:23 +0000)
committerdrh <>
Wed, 19 Jul 2023 20:23:34 +0000 (20:23 +0000)
longer, and thus provide a more repeatable number.

FossilOrigin-Name: bee9e403ae47103938aabb9a7a7e120dfa741b464875965e58788a51fa56a8fe

manifest
manifest.uuid
test/json/README.md

index c53b030eee983a2a025a414c926791839f94889d..20ecbfc77d5bfabf7eb10f7e22b2c97a4cd4c0e8 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Describe\sJSON\sparser\sperformance\stesting\sprocedure\sin\stest/json/README.md
-D 2023-07-19T19:23:30.391
+C Revise\sthe\snew\sJSON\sparser\sperformance\stest\sto\smake\sthe\stest\srun\s25\stimes\nlonger,\sand\sthus\sprovide\sa\smore\srepeatable\snumber.
+D 2023-07-19T20:23:34.703
 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 e5a2fdbdf37612286fb07c6320cd88152a0d163c87c135b95ca4dce58a4fef7d
+F test/json/README.md 0992b8ccbecd8424b84c1173f9ac56bcc0ae96d49912fd2d86c04eb1f3cba7af
 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 a0d3e7571aded8d1e03908059d2d5aa5d62ec49bff099cb38f6f35df5e4b18b5
-R 9c85d46fcd15515aa3b030597dff0987
+P c47056e158073ee746c233dd2729cf224ea9e38821b15aa71ebf97607e602281
+R f95aec1d730e7f651d5bd3177562e93c
 U drh
-Z f1436c99b14877587c058fd4369d8d71
+Z 755b9a0ce058340b12e7687869554354
 # Remove this line to create a well-formed Fossil manifest.
index e37c386497b4eaf79303697818b61cdbe2cf123a..82949b4ca5f8dbc067f208cde15ca76efb42b983 100644 (file)
@@ -1 +1 @@
-c47056e158073ee746c233dd2729cf224ea9e38821b15aa71ebf97607e602281
\ No newline at end of file
+bee9e403ae47103938aabb9a7a7e120dfa741b464875965e58788a51fa56a8fe
\ No newline at end of file
index 7e962418c3baad31599742f1533647ab2c60e018..a100287b050bfac8aaf8c6b4d58e58a63f654e24 100644 (file)
@@ -26,8 +26,14 @@ 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
+  3.  Run the script shown below in the CLI.
+      Divide 2500 by the real elapse time from this test
       to get an estimate for number of MB/s that the JSON parser is
       able to process.
+
+> ~~~~
+.open json100mb.db
+.timer on
+WITH RECURSIVE c(n) AS (VALUES(1) UNION ALL SELECT n+1 FROM c WHERE n<25)
+SELECT sum(json_valid(x)) FROM c, data1;
+~~~~