Skip to content

Instantly share code, notes, and snippets.

@ianwjhalliday
Last active July 18, 2016 22:43
Show Gist options
  • Save ianwjhalliday/236bdb53448a372536793580c0882197 to your computer and use it in GitHub Desktop.
Save ianwjhalliday/236bdb53448a372536793580c0882197 to your computer and use it in GitHub Desktop.
Raw V8 vs NAPI LevelDOWN performance results
leveldown-napi x64 release tests
Creation time: 12:25:58 PM 7/15/2016
Exit time: 12:27:04 PM 7/15/2016
Elapsed: 01:06.005
Kernel elapsed: 1.968
User elapsed: 3.203
Creation time: 12:27:23 PM 7/15/2016
Exit time: 12:28:29 PM 7/15/2016
Elapsed: 01:06.198
Kernel elapsed: 1.875
User elapsed: 3.281
Creation time: 12:28:50 PM 7/15/2016
Exit time: 12:29:56 PM 7/15/2016
Elapsed: 01:05.858
Kernel elapsed: 2.171
User elapsed: 3.156
leveldown-v8 x64 release tests
Creation time: 12:22:39 PM 7/15/2016
Exit time: 12:23:06 PM 7/15/2016
Elapsed: 26.841
Kernel elapsed: 1.234
User elapsed: 2.765
Creation time: 12:23:29 PM 7/15/2016
Exit time: 12:24:05 PM 7/15/2016
Elapsed: 36.185
Kernel elapsed: 1.578
User elapsed: 2.984
Creation time: 12:24:30 PM 7/15/2016
Exit time: 12:24:57 PM 7/15/2016
Elapsed: 26.740
Kernel elapsed: 1.125
User elapsed: 2.921
leveldown-napi x64 debug tests
Creation time: 3:38:23 PM 7/15/2016
Exit time: 3:39:34 PM 7/15/2016
Elapsed: 01:11.092
Kernel elapsed: 1.765
User elapsed: 8.375
Creation time: 3:40:00 PM 7/15/2016
Exit time: 3:41:12 PM 7/15/2016
Elapsed: 01:11.659
Kernel elapsed: 1.984
User elapsed: 8.687
Creation time: 3:41:37 PM 7/15/2016
Exit time: 3:42:49 PM 7/15/2016
Elapsed: 01:11.898
Kernel elapsed: 1.843
User elapsed: 8.703
leveldown-v8 x64 debug tests
Creation time: 3:44:32 PM 7/15/2016
Exit time: 3:45:05 PM 7/15/2016
Elapsed: 32.361
Kernel elapsed: 1.234
User elapsed: 8.437
Creation time: 3:45:28 PM 7/15/2016
Exit time: 3:46:01 PM 7/15/2016
Elapsed: 32.979
Kernel elapsed: 1.281
User elapsed: 8.265
Creation time: 3:46:21 PM 7/15/2016
Exit time: 3:47:03 PM 7/15/2016
Elapsed: 42.140
Kernel elapsed: 1.593
User elapsed: 8.125
leveldown-v8 x64 debug bench
db-bench.js
Wrote 1000000 entries in 136s, 110.62MB
Database size: 112M
write-random.js
Wrote 10000000 in 1060s
Database size: 387M
write-sorted.js
Wrote 10000000 in 149s
Database size: 195M
leveldown-napi x64 release bench
db-bench.js
Wrote 1000000 entries in 62s, 110.62MB
Database size: 100M
Wrote 1000000 entries in 61s, 110.62MB
Database size: 100M
Wrote 1000000 entries in 62s, 110.62MB
Database size: 100M
write-random.js
Wrote 10000000 in 171s
Database size: 396M
Wrote 10000000 in 171s
Database size: 383M
Wrote 10000000 in 169s
Database size: 387M
write-sorted.js
Wrote 10000000 in 99s
Database size: 195M
Wrote 10000000 in 100s
Database size: 195M
Wrote 10000000 in 101s
Database size: 195M
leveldown-v8 x64 release bench
db-bench.js
Wrote 1000000 entries in 62s, 110.62MB
Database size: 99M
Wrote 1000000 entries in 61s, 110.62MB
Database size: 99M
Wrote 1000000 entries in 61s, 110.62MB
Database size: 99M
write-random.js
Wrote 10000000 in 173s
Database size: 381M
Wrote 10000000 in 172s
Database size: 375M
Wrote 10000000 in 166s
Database size: 377M
write-sorted.js
Wrote 10000000 in 96s
Database size: 195M
Wrote 10000000 in 93s
Database size: 196M
Wrote 10000000 in 96s
Database size: 195M
leveldown-napi with napi_create_constructor_for_wrap_with_methods API
leveldown-napi x64 release tests
Creation time: 2:19:20 PM 7/18/2016
Exit time: 2:19:57 PM 7/18/2016
Elapsed: 37.300
Kernel elapsed: 1.859
User elapsed: 2.812
Creation time: 3:19:30 PM 7/18/2016
Exit time: 3:20:08 PM 7/18/2016
Elapsed: 38.004
Kernel elapsed: 1.437
User elapsed: 2.750
Creation time: 3:20:55 PM 7/18/2016
Exit time: 3:21:30 PM 7/18/2016
Elapsed: 35.704
Kernel elapsed: 1.359
User elapsed: 2.859
leveldown-napi x64 release bench
db-bench.js
Wrote 1000000 entries in 62s, 110.62MB
Database size: 101M
write-random.js
Wrote 10000000 in 169s
Database size: 381M
write-sorted.js
Wrote 10000000 in 100s
Database size: 195M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment