diff --git a/README.md b/README.md index d773bc7..8b82b95 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,19 @@ const parsedJSON = simdjson.parse(jsonString) // parsed JSON object ## Benchmarks +Requirements: git, npm, node, a linux-like system, a recent compiler (GCC,clang) + +To benchmark directly from the project: + +``` +git clone https://github.com/luizperes/simdjson_nodejs.git +cd simdjson_nodejs +npm install +cd benchmark +node benchmark +``` + + | filename | JSON file | simdjson file | | :---------------: | :------------: | :-------------: | | apache_builds.json | 0.0007187123801716652 | 0.00013120465355748363 | diff --git a/binding.gyp b/binding.gyp index 8cff39f..5d660e0 100644 --- a/binding.gyp +++ b/binding.gyp @@ -1,16 +1,18 @@ { "targets": [{ "target_name": "simdjson", + "default_configuration": "Release", "cflags!": [ "-fno-exceptions" ], - "cflags_cc!": [ "-fno-exceptions" ], - "sources": [ + "cflags_cc!": [ "-fno-exceptions", "-std=gnu++0x", "-std=gnu++1y" ], + "cflags_cc+": ["-march=native", "-std=c++17"], + "sources": [ "simdjson/main.cpp", "simdjson/bindings.cpp", + "simdjson/src/simdjson.cpp" ], 'include_dirs': [ "