flier / gohs

GoLang Binding of HyperScan https://www.hyperscan.io/
Other
280 stars 51 forks source link

how to write libhs.pc in windows #60

Closed Nyx2022 closed 11 months ago

Nyx2022 commented 1 year ago

hello , i wanna use gohs in windows,but i donot know how to write libhs.pc ,and all demo on internet are for linux,so i cant not use it,can you provide a libhs.pc demo for windows?thank you

LucaPericoIT commented 11 months ago

Here is an example that I used in the past.

I put all libraries (static and dynamic) in one folder

libdir="C:\<folder-with-your-libs>"
includedir="C:\<folder-with-your-libs"

Name: libhs
Description: Intel(R) Hyperscan Library
Version: 5.4.0
Libs: -L${libdir} -lhs
Cflags: -I${includedir}
Nyx2022 commented 11 months ago

Here is an example that I used in the past.

I put all libraries (static and dynamic) in one folder

libdir="C:\<folder-with-your-libs>"
includedir="C:\<folder-with-your-libs"

Name: libhs
Description: Intel(R) Hyperscan Library
Version: 5.4.0
Libs: -L${libdir} -lhs
Cflags: -I${includedir}

ok,thank you,by the way, do you know what's the performance of hyperscan?

LucaPericoIT commented 11 months ago

This is the result of a test I did with hsbench a few months ago

image

I took the corpus from https://www.intel.com/content/www/us/en/collections/libraries/hyperscan/performance-analysis-hyperscan-hsbench.html

Nyx2022 commented 11 months ago

This is the result of a test I did with hsbench a few months ago这是我几个月前用 hsbench 进行的测试的结果

image

I took the corpus from https://www.intel.com/content/www/us/en/collections/libraries/hyperscan/performance-analysis-hyperscan-hsbench.html我从 https://www.intel.com/content/www/us/en/collections/libraries/hyperscan/performance-analysis-hyperscan-hsbench.html 获取语料库

This is the result of a test I did with hsbench a few months ago

image

I took the corpus from https://www.intel.com/content/www/us/en/collections/libraries/hyperscan/performance-analysis-hyperscan-hsbench.html

thank you very much