From 339de21f1cc199311f938ffb387d4bdbe89adf4c Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Wed, 9 Jul 2014 19:48:55 +0200 Subject: [PATCH] Updated code size --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index deeb3443..7eb11d10 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,14 @@ Feature comparison | Library | Memory allocation | Nested objects | Parser size | Encoder size | | ------------ | ----------------- | -------------- | ----------- | ------------- | -| Arduino JSON | static | yes | 2616 Bytes | 686 bytes | +| Arduino JSON | static | yes | 2616 Bytes | 628 bytes | | json-arduino | dynamic | no | 3348 (+28%) | not supported | -| aJson | dynamic | yes | 5088 (+94%) | 4678 (+578%) | +| aJson | dynamic | yes | 5088 (+94%) | 4678 (+640%) | -Parser size was measured with a program parsing `{"sensor":"outdoor","value":25.6}`. +"Parser size" was measured with a program parsing `{"sensor":"outdoor","value":25.6}`. For each library, I wrote a program that extracts a string and a float. I subtracted the size of a program doing the same without any JSON parsing involved. [Source files are here](https://gist.github.com/bblanchon/e8ba914a7109f3642c0f). -Encoder size was measured with a program generating `{"sensor":"outdoor","value":25.6}`. +"Encoder size" was measured with a program generating `{"sensor":"outdoor","value":25.6}`. [Source files are here](https://gist.github.com/bblanchon/60224e9dcfeab4ddc7e9). In each case the target platform was an Arduino Duemilanove and Arduino IDE 1.0.5 was used.