Giter Site home page Giter Site logo

mattkretz / utf_utils Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bobsteagall/utf_utils

1.0 3.0 0.0 2.58 MB

My work on high-speed conversion of UTF-8 to UTF-32/UTF-16

License: University of Illinois/NCSA Open Source License

CMake 0.10% Shell 0.19% C++ 83.01% C 6.89% Objective-C 1.08% Rich Text Format 8.33% Makefile 0.25% Gnuplot 0.15%

utf_utils's Introduction

Overview

This is a fork of BobSteagall/utf_utils, to add an implementation using std::experimental::simd instead of SSE intrinsics. This makes it portable and scalable.

Building and Testing

Just run make bench-native to create a build dir, run cmake, make, and execute the benchmark.

Note that you need GCC 9 and VcDevel/std-simd to compile the code.
Older GCC may also work, but does not optimize as good.

Results

-march=skylake on an Intel Core i7-6700 @ 3.40GHz

file\algo iconv llvm av std::codecvt Boost.Text Hoehrmann kewb-basic kewb-fast kewb-sse kewb-vir-simd
english_wiki.txt 605 722 365 849 276 642 271 166 88 38
chinese_wiki.txt 614 726 419 788 421 704 328 247 151 150
hindi_wiki.txt 691 754 466 784 492 752 381 302 215 230
japanese_wiki.txt 577 679 418 752 493 706 321 270 201 201
korean_wiki.txt 671 821 479 827 476 762 374 297 193 205
portuguese_wiki.txt 630 758 398 835 297 675 322 193 91 73
russian_wiki.txt 649 851 475 881 504 746 373 277 197 206
swedish_wiki.txt 636 770 404 820 298 681 336 198 94 74
stress_test_0.txt 601 721 359 761 277 634 239 159 35 33
stress_test_1.txt 440 472 396 517 558 633 238 240 239 232
stress_test_2.txt 480 538 359 544 468 634 237 230 405 246
hindi_wiki_in_english.txt 605 726 368 801 283 644 287 174 85 39
hindi_wiki_in_russian.txt 674 858 486 811 481 757 407 289 202 214
kermit.txt 639 781 431 786 380 708 374 226 136 94
z1_kosme.txt 742 807 376 1078 308 523 306 174 84 94
z1_ascii.txt 820 789 423 969 320 512 312 211 56 45

utf_utils's People

Contributors

bobsteagall avatar mattkretz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.