# Termsfacet performance: 0.20.6 vs 0.90.2

**URL:** <https://discuss.elastic.co/t/termsfacet-performance-0-20-6-vs-0-90-2/13194>\
**Category:** Elasticsearch\
**Created:** [August 13, 2013, 7:14am UTC](https://discuss.elastic.co/t/termsfacet-performance-0-20-6-vs-0-90-2/13194 "2013-08-13T07:14:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerocoolys](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zerocoolys/32/44918_2.png) [@zerocoolys](https://discuss.elastic.co/u/zerocoolys)\
**Post date:** [August 13, 2013, 7:14am UTC](https://discuss.elastic.co/t/termsfacet-performance-0-20-6-vs-0-90-2/13194/1 "2013-08-13T07:14:50Z")

</div>

Hi all ,  
I just ran the benchmark(TermsFacetSearchBenchmark) from elasticsearch source code, both version 0.20.6 and 0.90.2. I cleared the index data before each benchmark.

The output shows 0.20.6 is much faster than 0.90.2 on terms facet.

------------------ SUMMARY 0.90.2 -------------------------------  
name took millis  
terms\_s 12.4s 62  
terms\_map\_s 54.7s 273  
terms\_l 38.8s 194  
terms\_map\_l 35.8s 179  
terms\_sm 51.8s 259  
terms\_map\_sm 6.3m 1914  
terms\_lm 3.1m 942  
terms\_map\_lm 3.1m 956  
terms\_stats\_s\_l 1.4m 441  
terms\_stats\_s\_lm 3.2m 984  
terms\_stats\_sm\_l 12.5m 3774  
------------------ SUMMARY -------------------------------

------------------ SUMMARY 0.20. 6-------------------------------  
name took millis  
terms\_s 9.8s 49  
terms\_map\_s 23.6s 118  
terms\_l 9.7s 48  
terms\_map\_l 19.3s 96  
terms\_sm 41.1s 205  
terms\_map\_sm 3.1m 938  
terms\_lm 39.9s 199  
terms\_map\_lm 2.2m 689  
terms\_stats\_s\_l 28.9s 144  
terms\_stats\_s\_lm 1.3m 415  
terms\_stats\_sm\_l 3.8m 1160  
------------------ SUMMARY -------------------------------

And I used Jmeter to do a simple json terms facet benchmark on a 20 nodes cluster with 200gb data to get a average throughput , the result shows 0.20.6 is also better than 0.90.2.

So my question is can I come to a conclusion that 0.20.6 is better than 0.90.2 on terms facet from these two benchmarks? or what I did wrong?  
From my side , I think 0.90.2 performance should be better than 0.20.6 because latest lucene version.

Thanks,

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:21am UTC](https://discuss.elastic.co/t/termsfacet-performance-0-20-6-vs-0-90-2/13194/2 "2017-07-06T02:21:25Z")

</div>

Closed on July 6, 2017, 2:21am UTC


