John Keiser
db314bc381
Make fuzzing work without exceptions
2020-04-21 17:33:47 -07:00
John Keiser
fbf274a42b
Merge pull request #727 from simdjson/jkeiser/cmake-checkperf
...
Add checkperf to cmake
2020-04-20 19:45:45 -07:00
Daniel Lemire
d94cd65dfd
We used to have a requirements section which went away. I think it is required. ( #749 )
2020-04-20 19:03:26 -04:00
Daniel Lemire
3c1b403c4e
Fixing typo.
2020-04-20 18:19:38 -04:00
John Keiser
75564453b3
Don't checkperf sanitize, don't do sanitize-gcc7
2020-04-20 11:23:19 -07:00
John Keiser
3091e2dc0e
Add fallback, westmere and unthreaded checkperf
2020-04-20 11:18:40 -07:00
John Keiser
fc50a36cc5
Make checkperf build master with the same options
2020-04-20 11:14:46 -07:00
John Keiser
9bf9fba2ec
Add checkperf to cmake
2020-04-20 11:14:46 -07:00
John Keiser
121615da70
Merge pull request #753 from simdjson/jkeiser/fix-cmake-error
...
Fix cmake error when SIMDJSON_COMPETITION=OFF
2020-04-20 11:11:57 -07:00
John Keiser
53d28a713c
Fix cmake error when SIMDJSON_COMPETITION=OFF
2020-04-20 10:49:40 -07:00
John Keiser
cf37704193
Merge pull request #737 from simdjson/jkeiser/sanitize-gcc-9
...
Run sanitize using gcc 9
2020-04-20 10:20:57 -07:00
Daniel Lemire
38289fe381
Tweaking a sentence ( #747 )
2020-04-20 11:46:02 -04:00
John Keiser
f9337a1111
Update amalgamated headers
2020-04-19 11:38:02 -07:00
John Keiser
6d059b479f
Add sanitize-gcc9 test
2020-04-19 10:55:50 -07:00
John Keiser
b6e23b2d3e
Compile and run tests in parallel (-j)
2020-04-19 10:55:23 -07:00
John Keiser
e5e6a46c37
Consolidate multi-implementation tests
...
Uses SIMDJSON_FORCE_IMPLEMENTATION to switch the implementation at test
time.
2020-04-19 09:59:49 -07:00
John Keiser
22b9a53bef
Add SIMDJSON_FORCE_IMPLEMENTATION
2020-04-18 18:21:56 -07:00
John Keiser
3be81e3206
Merge pull request #720 from simdjson/jkeiser/prune-circle-tests
...
Run fewer redundant steps and configs in CircleCI
2020-04-17 13:02:54 -07:00
John Keiser
ff09b6c824
Run fewer redundant steps and configs in CI
2020-04-17 12:23:05 -07:00
John Keiser
a8e892ba90
Merge pull request #718 from simdjson/jkeiser/cmake-werror
...
Treat warnings as errors
2020-04-16 17:48:34 -07:00
John Keiser
289cc3e7a0
Treat warnings as errors during compilation
2020-04-15 19:59:38 -07:00
John Keiser
7480b87e07
Merge pull request #693 from simdjson/jkeiser/cmake-quickstartcpp
...
Add C++11 tests to cmake
2020-04-15 19:53:14 -07:00
Daniel Lemire
befa6423be
This massively improves the performance of tight loops relying on a type() call. ( #721 )
...
* This massively improves the performance of tight loops relying on a type() call.
* Adding a few more benchmarks
2020-04-15 20:45:40 -04:00
John Keiser
fd418f568c
Fix c++11 warnings on clang
...
- namespace x::y is C++17
- static_assert requires message in C++11
2020-04-15 17:27:48 -07:00
John Keiser
09cf18a646
Add C++11 tests to cmake
...
- Add simdjson-flags target so callers don't have flags forced on them
2020-04-15 17:26:25 -07:00
Daniel Lemire
326c175dcb
Massive performance boost for get<double>. ( #719 )
...
* Massive performance boost for get<double>.
2020-04-15 20:09:45 -04:00
Daniel Lemire
6d7c77ddc1
Let us try to check with the exceptions disabled. ( #707 )
...
* Tweaking code so that we can run all tests with exceptions off.
* Removing SIMDJSON_DISABLE_EXCEPTIONS
2020-04-15 16:45:36 -04:00
Daniel Lemire
efd706528b
Minor tweaks to the CMake.
2020-04-15 10:19:05 -04:00
Daniel Lemire
b523c43927
Can we provide a size() function to arrays and objects? (eager approach) [TO BE MERGED] ( #690 )
...
* This is an implementation of "size()" for arrays and objects.
* Adding benchmark
* Adding a size() remark in the documentation.
* Extending size() to result types.
2020-04-15 10:15:48 -04:00
Paul Dreik
75545ff70d
ref qualify parser methods to avoid use of dangling objects ( #703 )
...
To avoid using data belonging to a temporary, the parse functions are ref qualified to get a compile error if used on an rvalue. See https://github.com/simdjson/simdjson/issues/696
Compilation tests are also added, to make sure bad usage fails to compile.
Reviewed by jkeiser.
2020-04-15 09:57:52 +02:00
Daniel Lemire
3c6ef83046
Trying to correct the documentation so that it actually describes how the code behaves. (Attempt two) ( #712 )
...
* Trying to correct the documentation so that it actually describes how the code behaves.
* tweaking the wording.
* Improving.
* Removing confusing sentence.
* Fixing formatting.
* Now with working example, tested.
* Added a smaller piece of code
2020-04-14 22:31:21 -04:00
John Keiser
b9ac0a79f1
Merge pull request #715 from simdjson/jkeiser/thorough-type-tests
...
Test more variants of cast, get, etc.
2020-04-14 16:08:36 -07:00
Daniel Lemire
8539896f3d
It is inconvenient to be unable to print a padded_string. ( #713 )
...
* It is inconvenient to be unable to print a padded_string.
* Allows us to print the padded_string even when it is embedded in result object when exceptions are enabled.
2020-04-14 19:07:32 -04:00
John Keiser
a3b508ceff
Test get<>(), exception vs. no exception, explicit vs. implicit cast
2020-04-14 13:18:42 -07:00
Daniel Lemire
334a486737
Tweaking the doxygen. ( #700 )
...
* Tweaking the doxygen.
* Fixing typo.
2020-04-14 11:31:46 -04:00
Daniel Lemire
d7370cc916
Let us document the relationship between a parser instance and the parsed document. ( #699 )
2020-04-14 08:30:06 -04:00
Paul Dreik
92c34f7f38
do not use deprecated apis in the fuzzers ( #705 )
...
* move from deprecated interface in fuzz dump raw tape
* update fuzz_dump to the non deprecated replacement
* replace use of deprecated api
* hopefully fix windows build
2020-04-14 07:45:30 +02:00
Paul Dreik
93328c8d6d
improve the fuzzer documentation, refresh links ( #697 )
2020-04-12 17:49:40 -04:00
Paul Dreik
5710ec13d4
switch to clang 9 in the github action ( #695 )
...
The upstream convenience script from llvm does not support installing clang 8 anymore.
2020-04-12 20:02:45 +02:00
Paul Dreik
fa637fcecb
Enable the minifier fuzzer ( fixes #530 ) ( #694 )
...
This enables the minify fuzzer, which has been disabled because it did not pass the oss-fuzz instrumentation test. Now it does, after changes in simdjson (https://github.com/lemire/simdjson/issues/186 ).
* get minify running (api change)
* disable benchmarks when compiling fuzzers
* catch exceptions from the minify fuzzer
* enable repeated corpus creation without recursive inclusion of zip
* remove leftover comment
2020-04-12 18:47:24 +02:00
Daniel Lemire
4af7d6f108
Disabling threads on apple's hardware when optimizer is turned off ( #692 )
...
* Disabling threads on apple's hardware.
* Turns out that you can have your bread, your butter and you cake too!
2020-04-10 18:41:05 -04:00
John Keiser
0fd159dadb
Merge pull request #689 from simdjson/jkeiser/cmake-test
...
Add most CI tests to cmake
2020-04-09 16:12:32 -07:00
John Keiser
1ff22c78b3
Add quickstart to cmake
2020-04-09 14:56:54 -07:00
John Keiser
ceb1def55c
Add quicktests, slowtests to cmake
...
- Also add testjson2json.sh
- Move test scripts to tests directory to consolidate concerns
2020-04-09 14:21:45 -07:00
John Keiser
893a1d8306
Merge pull request #685 from simdjson/jkeiser/cmake-competition
...
Add parsing competitions to cmake
2020-04-09 11:25:12 -07:00
John Keiser
3c91690e55
Don't run parsing competitions on Windows
...
(They currently use linux-specific stuff.)
2020-04-09 08:52:29 -07:00
John Keiser
6835dd73bc
Only apply compile flags to simdjson
2020-04-09 08:52:29 -07:00
John Keiser
7317fe1440
Don't reinitialize submodules
...
Add ability to turn competitive benchmarks off (no need for submodules)
2020-04-09 08:52:29 -07:00
John Keiser
7b58fea911
Add benchmark competitions to cmake
2020-04-09 08:52:29 -07:00
John Keiser
c1ff74c9a6
Add issue150 test
2020-04-09 08:52:29 -07:00