diff --git a/README.md b/README.md index faebc6ac..f0d0ff98 100644 --- a/README.md +++ b/README.md @@ -128,9 +128,17 @@ or simply: ## Code size +Theses tables has been created by analyzing the map file generated by AVR-GCC after adding `-Wl,-Map,foo.map` to the command line. + +As you'll see the code size if between 1680 and 3528 bytes, depending on the features you use. + ### Minimum setup + + + + @@ -176,7 +184,119 @@ or simply: - - + + + +
FunctionSize in bytes
strcmp(char*,char*) 1818
TOTAL1680TOTAL1680
+ +### Additional space to parse nested objects + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionSize in bytes
JsonArray::getArray(int)42
JsonArray::getHashTable(int)64
JsonHashTable::getArray(char*)64
JsonHashTable::getHashTable(char*)42
TOTAL212
+ +### Additional space to parse `bool` values + + + + + + + + + + + + + + + + + + + + + + +
FunctionSize in bytes
JsonObjectBase::getBoolFromToken(jsmntok_t*)82
JsonArray::getBool(int)18
JsonHashTable::getBool(char*)18
TOTAL130
+ +### Additional space to parse `double` values + + + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionSize in bytes
strtod(char*,int)704
JsonObjectBase::getDoubleFromToken(jsmntok_t*)44
JsonArray::getDouble(int)18
JsonHashTable::getDouble(char*)18
TOTAL796
+ +### Additional space to parse `long` values + + + + + + + + + + + + + + + + + + + + + + + + +
FunctionSize in bytes
strtol(char*,char**,int)606
JsonObjectBase::getLongFromToken(jsmntok_t*)56
JsonArray::getLong(int)18
JsonHashTable::getLong(char*)18
TOTAL710
\ No newline at end of file