<commit_before>---
layout: post
title: Hasql benchmarks
tags: [haskell, postgresql, postgres, database, sql, benchmarks, performance, hasql]
description: 
comments: true

---

This post is all about the performance of [the "hasql" library](http://hackage.haskell.org/package/hasql) and particularly [its PostgreSQL back end](http://hackage.haskell.org/package/hasql-postgres) in comparison to its popular direct competitors: "HDBC" and "postgresql-simple".

<section id="table-of-contents" class="toc">
  <header>
    <h3>Contents</h3>
  </header>
  <div id="drawer" markdown="1"> 
  *  Auto generated table of contents
  {:toc}
  </div>
</section><!-- /#table-of-contents -->

## Benchmarks
<commit_msg>Update 2014-11-10-hasql-benchmarks.md<commit_after>---
layout: post
title: Hasql benchmarks
tags: [haskell, postgresql, postgres, database, sql, benchmarks, performance, hasql]
description: 
comments: true

---

This post is all about the performance of [the "hasql" library](https://github.com/nikita-volkov/hasql) and particularly [its PostgreSQL back end](https://github.com/nikita-volkov/hasql-postgres) in comparison to its popular direct competitors: "HDBC" and "postgresql-simple".

<section id="table-of-contents" class="toc">
  <header>
    <h3>Contents</h3>
  </header>
  <div id="drawer" markdown="1"> 
  *  Auto generated table of contents
  {:toc}
  </div>
</section><!-- /#table-of-contents -->

## Benchmarks

{'fraction_non_alphanumeric': 0.15196078431372548, 'fraction_numerical': 0.00980392156862745, 'mean_word_length': 4.560311284046692, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7541396', 'n_tokens_mistral': 492, 'n_tokens_neox': 465, 'n_words': 129}