Kraken Info: Difference between revisions

Line 61: Line 61:
A ''microbenchmark''.  Calls JSON.stringify() 1000 times on an object that takes up over 450,000 chars to express in a file.
A ''microbenchmark''.  Calls JSON.stringify() 1000 times on an object that takes up over 450,000 chars to express in a file.


'''Key features.'''  The result of the call to JSON.stringify() is never used, so this benchmark is susceptible to gaming -- an implementation could detect that the result isn't used and call a faster version of JSON.stringify() that doesn't build the result (ie. an empty function).
'''Key features.'''  The result of the call to JSON.stringify() is never used, so this benchmark is susceptible to gaming -- an implementation could detect that the result isn't used and call a faster version of JSON.stringify() that doesn't build the result (ie. an empty function).  [https://bugzilla.mozilla.org/show_bug.cgi?id=603838 Bug 603838] is open for this.


== stanford-crypto-aes ==
== stanford-crypto-aes ==
Confirmed users
1,345

edits