Skip to content

Instantly share code, notes, and snippets.

@tgxworld
Created April 13, 2016 07:40
Show Gist options
  • Save tgxworld/85facac85993860c20b8873596a6446c to your computer and use it in GitHub Desktop.
Save tgxworld/85facac85993860c20b8873596a6446c to your computer and use it in GitHub Desktop.
Benchmark of Discourse on Rails 5 master vs Rails 4.2.6
Your Results: (note for timings- percentile is first, duration is second in millisecs)
---
categories_admin:
50: 53
75: 55
90: 58
99: 69
home_admin:
50: 50
75: 52
90: 56
99: 63
topic_admin:
50: 23
75: 24
90: 25
99: 33
categories:
50: 44
75: 46
90: 50
99: 59
home:
50: 32
75: 33
90: 37
99: 43
topic:
50: 8
75: 9
90: 9
99: 16
timings:
load_rails: 2405
ruby-version: 2.3.0-p0
rss_kb: 214580
pss_kb: 153709
architecture: amd64
virtual: physical
operatingsystem: Ubuntu
kernelversion: 4.2.0
physicalprocessorcount: 1
processor0: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
memorysize: 15.60 GB
rss_kb_29672: 271864
pss_kb_29672: 215141
rss_kb_29689: 270948
pss_kb_29689: 214076
rss_kb_29700: 271212
pss_kb_29700: 214388
gx-pc pid:29689 unicorn worker 1 c config/unicorn conf rb
GC STATS:
count: 96
heap_allocated_pages: 4199
heap_sorted_length: 4419
heap_allocatable_pages: 1047
heap_available_slots: 1711515
heap_live_slots: 821124
heap_free_slots: 890391
heap_final_slots: 0
heap_marked_slots: 821035
heap_swept_slots: 890725
heap_eden_pages: 3152
heap_tomb_pages: 1047
total_allocated_pages: 4235
total_freed_pages: 36
total_allocated_objects: 41476866
total_freed_objects: 40655742
malloc_increase_bytes: 15144
malloc_increase_bytes_limit: 22245543
minor_gc_count: 81
major_gc_count: 15
remembered_wb_unprotected_objects: 132372
remembered_wb_unprotected_objects_limit: 264744
old_objects: 671749
old_objects_limit: 1343498
oldmalloc_increase_bytes: 15592
oldmalloc_increase_bytes_limit: 37070207
Objects:
TOTAL: 1711515
FREE: 890259
T_STRING: 288301
T_ARRAY: 197255
T_HASH: 130710
T_IMEMO: 121529
T_OBJECT: 29267
T_DATA: 26987
T_CLASS: 10763
T_ICLASS: 4330
T_MODULE: 1471
T_RATIONAL: 737
T_NODE: 505
T_BIGNUM: 15
T_MATCH: 14
T_FLOAT: 11
T_FILE: 8
T_COMPLEX: 1
Process Info:
Name: ruby
State: R (running)
Tgid: 29689
Ngid: 0
Pid: 29689
PPid: 29481
TracerPid: 0
Uid: 1000 1000 1000 1000
Gid: 1000 1000 1000 1000
FDSize: 64
Groups: 4 24 27 30 46 113 128 999 1000
NStgid: 29689
NSpid: 29689
NSpgid: 28311
NSsid: 5941
VmPeak: 757128 kB
VmSize: 756100 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 270560 kB
VmRSS: 270560 kB
VmData: 532556 kB
VmStk: 8192 kB
VmExe: 2968 kB
VmLib: 25896 kB
VmPTE: 944 kB
VmPMD: 20 kB
VmSwap: 0 kB
Threads: 5
SigQ: 2/63235
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000008300801
SigCgt: 00000001c200764e
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000003fffffffff
Seccomp: 0
Cpus_allowed: ff
Cpus_allowed_list: 0-7
Mems_allowed: 00000000,00000001
Mems_allowed_list: 0
voluntary_ctxt_switches: 39350
nonvoluntary_ctxt_switches: 67
Classes:
Class report omitted use ?full=1 to include it
Your Results: (note for timings- percentile is first, duration is second in millisecs)
---
categories_admin:
50: 57
75: 60
90: 65
99: 77
home_admin:
50: 52
75: 54
90: 59
99: 70
topic_admin:
50: 25
75: 26
90: 27
99: 35
categories:
50: 51
75: 52
90: 61
99: 72
home:
50: 32
75: 34
90: 37
99: 42
topic:
50: 9
75: 9
90: 9
99: 17
timings:
load_rails: 3008
ruby-version: 2.3.0-p0
rss_kb: 219584
pss_kb: 160526
architecture: amd64
virtual: physical
operatingsystem: Ubuntu
kernelversion: 4.2.0
physicalprocessorcount: 1
processor0: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
memorysize: 15.60 GB
rss_kb_26725: 287216
pss_kb_26725: 232094
rss_kb_26741: 288540
pss_kb_26741: 233332
rss_kb_26752: 283008
pss_kb_26752: 227865
gx-pc pid:26725 unicorn worker c config/unicorn conf rb
GC STATS:
count: 105
heap_allocated_pages: 4149
heap_sorted_length: 4359
heap_allocatable_pages: 698
heap_available_slots: 1691111
heap_live_slots: 847016
heap_free_slots: 844095
heap_final_slots: 0
heap_marked_slots: 846882
heap_swept_slots: 844228
heap_eden_pages: 3451
heap_tomb_pages: 698
total_allocated_pages: 4153
total_freed_pages: 4
total_allocated_objects: 45619425
total_freed_objects: 44772409
malloc_increase_bytes: 9920
malloc_increase_bytes_limit: 18431659
minor_gc_count: 90
major_gc_count: 15
remembered_wb_unprotected_objects: 132475
remembered_wb_unprotected_objects_limit: 264950
old_objects: 696991
old_objects_limit: 1393982
oldmalloc_increase_bytes: 10368
oldmalloc_increase_bytes_limit: 30891839
Objects:
TOTAL: 1691111
FREE: 843937
T_STRING: 295108
T_ARRAY: 202430
T_HASH: 131389
T_IMEMO: 129601
T_OBJECT: 33786
T_DATA: 27273
T_CLASS: 11383
T_ICLASS: 4560
T_MODULE: 1567
T_RATIONAL: 737
T_NODE: 505
T_BIGNUM: 15
T_MATCH: 15
T_FLOAT: 11
T_FILE: 8
T_COMPLEX: 1
Process Info:
Name: ruby
State: R (running)
Tgid: 26725
Ngid: 0
Pid: 26725
PPid: 26529
TracerPid: 0
Uid: 1000 1000 1000 1000
Gid: 1000 1000 1000 1000
FDSize: 64
Groups: 4 24 27 30 46 113 128 999 1000
NStgid: 26725
NSpid: 26725
NSpgid: 24669
NSsid: 5941
VmPeak: 774744 kB
VmSize: 772500 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 286668 kB
VmRSS: 284820 kB
VmData: 546888 kB
VmStk: 8192 kB
VmExe: 2968 kB
VmLib: 25912 kB
VmPTE: 992 kB
VmPMD: 16 kB
VmSwap: 0 kB
Threads: 5
SigQ: 0/63235
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 0000000000000000
SigIgn: 0000000008300801
SigCgt: 00000001c200764e
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 0000003fffffffff
Seccomp: 0
Cpus_allowed: ff
Cpus_allowed_list: 0-7
Mems_allowed: 00000000,00000001
Mems_allowed_list: 0
voluntary_ctxt_switches: 43528
nonvoluntary_ctxt_switches: 146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment