Skip to content

Instantly share code, notes, and snippets.

@FRodrigues21
Last active January 15, 2020 11:31
Show Gist options
  • Save FRodrigues21/70b335bc7fb77bf78aaaa6b0eec77567 to your computer and use it in GitHub Desktop.
Save FRodrigues21/70b335bc7fb77bf78aaaa6b0eec77567 to your computer and use it in GitHub Desktop.
Data Archive Approach Comparison

Data Archive Approach Comparison

Conditions

  • Documents only
  • Limited to 5 documents

Benchmark

		user     system      total        real
jbuilder:   	1.501785   0.083033   1.584818 (  3.968501)
as_json:   	0.993441   0.054661   1.048102 (  3.359240)
data_to_json:   1.008851   0.047883   1.056734 (  3.372282)

Memory Profiler

jbuilder:
Total allocated: 66.64 MB (772040 objects)
Total retained:  476.40 kB (1 objects)

as_json:
Total allocated: 63.78 MB (733705 objects)
Total retained:  431.81 kB (1 objects)

data_to_json:
Total allocated: 59.10 MB (712748 objects)
Total retained:  431.81 kB (1 objects)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment