article thumbnail

Mangling JSON numbers

TechEmpower

If we have a long (64-bit integer) that we serialize into JSON, we might be in trouble if JavaScript consumes that JSON. JavaScript has the equivalent of double (64-bit floating point) for its numbers, and double cannot represent the same set of numbers as long. The output of x.toString() in JavaScript is suspicious.

article thumbnail

Framework Benchmarks Round 11

TechEmpower

many Lua tests and several JavaScript tests). The new frameworks are: silicon (C++). aleph (clojure). pedestal (clojure). crystal-raw (crystal). moonshine (crystal). jawn (java). mangooio (java). sails (js). clancats (php). limonade (php). asyncio (python). cherrypy (python). webware (python). klein (python). turbogears (python). iron (rust).

Framework 200
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Frameworks Round 4

TechEmpower

This round adds Bottle (Python), Dancer (Perl), Kelp (Perl), MicroMVC (PHP), Mojolicious (Perl), Phalcon (PHP), RingoJS (JavaScript), Spark (Java), and Wai (Haskell). As with previous rounds, the developer community has contributed several additional frameworks for Round 4, bringing the total to 57!

Framework 552
article thumbnail

Framework Benchmarks

TechEmpower

For example, we used Sequelize for the JavaScript MySQL tests. JavaScript. Here, the programmers at TechEmpower share our thoughts and opinions. Caveat: when the data store provides data as JSON in situ (such as with the MongoDB tests), no transcoding is done; the string of JSON is sent as-is. Switched gigabit Ethernet.

Framework 560
article thumbnail

Frameworks Round 2

TechEmpower

JavaScript. Switched gigabit Ethernet. Load simulator. MySQL 5.5.29. MongoDB 2.0.5. Ruby 2.0.0-p0. Rack 1.5.1. JRuby 1.7.3. Resin 4.0.34 (for JRuby). Rails 3.2.11. Sinatra 1.3.4. Mongoose 3.5.5. Sequelize 1.6.0-beta4. Express 3.1. with APC, PHP-FPM, nginx. Cake 2.3.0. PHP ActiveRecord (Nightly 20121221). Operating system.

Framework 559
article thumbnail

Frameworks Round 1

TechEmpower

For example, we used Sequelize for the JavaScript MySQL tests. JavaScript. Caveat: when the data store provides data as JSON in situ (such as with the MongoDB tests), no transcoding is done; the string of JSON is sent as-is. As with JSON serialization, we''ve selected a best-of-breed ORM when the framework is agnostic. Load simulator.

Framework 544
article thumbnail

Everything about Java 8

TechEmpower

Nashorn JavaScript Engine. Summary of proposal: JEP 174: Nashorn JavaScript Engine. This JSR 308 website may be outdated at this point, but it does a better job of explaining the motivation for these changes than I could possibly do: "Type Annotations (JSR 308) and the Checker Framework". Short version: It's the successor to Rhino.

Java 560