benchmark(function(){
gun.val(ok);
});
Looking at what the gun.val call does it seems to be more or less an identitiy/noop function (that simply returns its input). We're getting even better numbers on other devices:
Android phone, ~5M ops/sec.
Macbook Air, Chrome, ~30M ops/sec.
Macbook Pro, Chrome Canary, ~80M ops/sec.
Lenovo netbook, IE6, ~100K ops/sec
[...]
These numbers represent a breakthrough in performance not possible with other databases.
Care to share some details on this benchmark? What kind of operations were these? Your results don't really sound likely for any kind of non-trivial operation - is it possible that you were testing a routine that was optimized out (to a static return/noop) by the JIT?
For example, enforced const-ness/immutability, option types and automatic ressource management (RAII) are also already standard in modern/best-practice C++ code. In general I agree that there are a lot of nice languages features that rust currently has which would also be nice to have in the c-family languages.